『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
I have been struggling with this issue for the majority of the day now, I am basically trying to figure out how to use a variable to specify a function name dynamically while using chaining in order to load and run a function from within a CFC.Some background:I designed a simple function which takes 2 arguments and has 1 hard-coded variable:<cfargument name="cfcname" required="yes"><cfargument name="args"><cfset local.dir = "cfc">if(isdefined("arguments.args")){ if(isstruct(arguments.args)){ REQUEST[cfcname] = new '#local.dir#.#cfcname#'(argumentcollection=arguments.args); } else { REQUEST[cfcname] = new '#local.dir#.#cfcname#'(arguments.args); }} else { REQUEST[cfcname] = new '#local.dir#.#cfcname#'();}return REQUEST[cfcname];I call the function "run" and then put it
Hello,I'm running ColdFusion 2016 on Windows Server 2012 R2 and am having problems getting CFM files to work through an IIS virtual directory that points to my Azure File storage account.I followed the instructions here: David So's Blog - IIS and Azure Files , minus the Shared Configuration stuff because it doesn't apply to me, and can access test TXT files that are in the virtual directory that point to my Azure files storage account. The problem I'm having is with browsing CFM files. For some reason I get a 404 even though the file exists and IIS is able to show it via Content View.Here is the error I'm seeing in the exception log: "Error","ajp-nio-8016-exec-1","03/14/18","14:13:31","","File not found: /atest/heartbeat.cfm The specific sequence of files included or processed is: \\xxxxx.file.core.windows.net\jmsandbox\heartbeat.cfm'' "coldfusion.runtime.TemplateNotFoundException: File not found: /atest/heartbeat.cfmat coldfusion.filter.PathFilter.invoke(PathFilter.java:156)at c
We are working to cluster our CF2016 instance. However, we have an application that uses application variables and there are times when specific ones need to be refreshed. When calling the cluster to refresh them there is no way to guarantee you will get both boxes refreshed. Any suggestions on a methodology or process to ensure both cluster members get refreshed without having to restart them individually?thank you
Hello, all,I've worked with mail() in cfscript, before, but I've always used it as such:newMail = new mail();newMail.setTo("user@domain.com");newMail.setFrom("anotheruser@anotherdomain.com");newMail.setType("html");I'm trying to use setAttributes(), but the Adobe docs don't mention anything about how the name/value pairs are formatted.Is it like newMail.setAttributes(to="user@domain.com", from="another@another.com", type="html"); ???Or do I need to use {} around the name and values?Please provide an example.V/r,^ _ ^
Hello,I have an issue. When using web sockets over https with firefox and IE i'll get a message saying that connection is insecure. However with chrome or safari the websocket is connected reguardless. I think it has to do with one protocol being ws and the other being wss. Is the wss websocket supported? Any work-arounds (aside from redirecting the user away from https) on the pages i want to use websockets. Thanks for all your help
I've been running cf8 on a windows webserver 2008 with IIS7.5 and have just installed cf11. The install completed successfully to the point of opening cfadmin and then failed. On looking in the web root directory as set in IIS, the old CFIDE folder had not been updated, so cf11 was attempting to use the cf8 version.I renamed the old cfide folder to cfide08, uninstalled cf11 and tried reinstalling it again - but still no cfide folder was created for cf11, and I couldn't open cfadmin. The cfide folder does get created in c:\ColdFusion11\cfusion\wwwroot\cfideHas anyone else experienced this, or know how to fix it?
We’re experiencing an important issue on our CF11 server: when we try to resize an image, it changes its appearance to a negative/posterized image (e.g. see attached images). We tried both with ImageResize/ImageScaleToFit functions and cfimage tag, and we also made several tests by changing the interpolation and the other options value.Further more, we have 4 different CF instances on the same server, with pretty similar configurations and with exactly the same Java version (1.8) and libraries, but we have this issue only on one of them and it start to appear few weeks after the previous reboot, so we need to restart again the instance to avoid the problem.Can you please provide a solution or suggest any other way to solve this issue?
Hi, i'm working on getting some email delivered and am being told i need to sign my emails with DKIM. I have a DKIM key from my hosting provider, but am unsure how to do this in CFMAIL and I cannot find anything on the internet either (or this forum). Can someone share an example of how I would do this?Thank you!Dave
Is it possible to get this to work? This works fine in CF8 but in 2016 it gives me the following error:Connection verification failed for data source: xxxxxxxxxxxxjava.sql.SQLException: [Macromedia][SequeLink JDBC Driver][SequeLink Server]The specified data source is not defined.The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][SequeLink Server]The specified data source is not defined.This is the process I am using:1. Create 64-bit ODBC data source (in Administrative tools).2. In CF Admin, add the datasource using ODBC Socket. The data source I created shows up in CF admin but gives the error above when trying to add it to the admin page.Any help is greatly appreciated.Thanks.
I have system that I built and for this project I used Ajax with JQuery. On back end I use ColdFusion and session management to handle users session variables. There is two situations (actually three if we consider closing the browser) where users session will end. One situation is if they click Logoutthen I have function that will clear SESSION scope with all information in it but session is not ended. Also CFID and CFTOKEN are still the same. Here is example of Logout function:<cffunction name="LogOut" access="remote" output="yes" returnformat="JSON" hint="Used in session timeout handling"> <cfset fnResults = structNew()> <cfset dt = createODBCDateTime(now())> <cfif structKeyExists(SESSION,"LoggedIn")> <cfset temp = structClear(SESSION)> <cfset fnResults.status = "200"> <cfelse> <cfset fnResults.status = "400"> <cfset fnResults.message = "Error!"> </cfif> <cfreturn fnResults> </cffunction>Second scena
I am trying to use the <CFHTMLTOPDF> tag to generate PDF output but radio groups that have no option selected is appearing in the PDF output with the first option selected. If I wrap the same HTML around the <CFDOCUMENT format="PDF"> tag, the radio group in the PDF output is rendered correctly (no radio buttons are selected in the group).Is this a bug with the <CFHTMLTOPDF> tag? Is there any workaround for this issue?Thanks for your help.
When preforming a query of query I am losing the sort order of the cached query.The column that the cached query is sorting by is not one I could use in the new query. Is there any way to keep the sorting the same through both queries?Thanks
I am using window 10, 64bit on a PC. I am also using Coldfusion 2016. I did a Coldfusion query output that displays a history of reading input of water usage for an apartment from an electronic submeter. I am able to output the date of the meter reading and the gallons of water that was used. What I'm having difficulty with is creating two additional columns that dynamically calculate within the same query output the days lapse between each meter reading and the difference in the water used since the last read. Any insights. I've listed my code. <!--- query of submeter reading. ---> <cfquery name="list_water_usage" datasource="submeter">select * from readsubmeter where reasubid = '#choose_submeterID.subid#' Order by reasubreaddate DESC</cfquery>
Hi,Saw an old issue from 2012 (https://forums.adobe.com/message/4560283#4560283) answered in the forums for this same error happening in Coldfusion 10 (it was a bug that was fixed in an update).However, I am running Coldfusion 2016 Standard and I cannot find any answers about this issue for this version.If it matters, I am calling cfschedule via script as follows:cfschedule( action="update", task="Task1", interval="60", mode="application", starttime=timeFormat(dateAdd("s", 30, now()), "HH:mm:ss"), URL="<MY URL>", eventHandler="com.SearchTaskHandler" );Any help is appreciated.
Sorry for the vague title, but ColdFusion is not something I understand well. I'm trying to replicate a Coldfusion report in ASP.net, but I'm at a lose of where the data is coming from. I've conferred with a few developers here and we believe its the below line (in bold). Thing is....I have no idea what 'cf_act_get_remaincourses' is or comes from. I've done a search through the entire site and find no other references to it. I don't see anything in the database with a similar name.So, what is this object? (Its not a cf try, or cf it....)Where can it possibly be pulling data from.<cftry> <cf_act_get_remaincourses userid=#GetGroupStudents.userid# datacheck=#ODBC_DataSource#> <cfset Count = result> <td align="center">#val(Count)#</td>
So I have an image loader that before it uploads the file to Amazon S3 it optimises the image by using this code:<cfset ImageScaleToFit(myImage,1260,"")><cfset imageWrite(myimage,"newImagelocation", 0.9)>The odd thing is that if I upload an image that is already 1260 wide and 24k in size, then optimise it using the above code, the image becomes 34k in size.Why would optimizing an image make it bigger?
I followed the migration guide to upgrade an existing CF 10 server to CF 2016 - on Windows 2012 R2. The upgrade seemed to go fine and I am able to get to the new CF admin to confirm migrated settings through the built in webserver. When I try to call .cfm files directly I get 500 errors. It is similar behavior to when the mapping is missing, but I have confirmed they are there. I have done this on a few servers and 2 of them upgraded fine and I can call .cfm files, 2 others do not work properly.Even when browsing to the CF admin page, if there is no cfm file in the URL it comes up, then after logging in, it tried to go to 'enter.cfm' and I get a 500 error.Has anyone else had this issue after upgrading?
Hey - I recently upgraded our ColdFusion10 to ColdFusion 2016 Upgrade 3. After the initial upgrade, I opened CF Admin as local host in my browser and completed the migration settings as their instructions stated in the coldfusion-2016-lockdown-guide. After that was complete, I logged in and Server Upgrade stated I needed to upgrade to version 4. Followed the instructions, and rebooted the server to be certain the services would start, but 1 of the three services do not start. - ColdFusion 2016 Application Server service. The error is below:I typically have the service running as a service account (which has full permissions to my ColdFusion 2016 server on my E:\) I thought that my be my original issue, but when I switched it back to running as the Local System, it still will not start. Event Viewer isn't much help stating "The ColdFusion 2016 Application Server service could not be started. Check the server "cfusion" log files for more information." Not really sure what log files
Installed CF 2016 on Unbuntu running Apache and I cannot get CF and Apache to see one another. I've searched everywhere to find how to install these "Tomcat Connectors" but all the locations the "config files are supposed to "exist" there not in my files.I found this at apache.orgYou should first have mod_jk.so (unix) or mod_jk.dll (Windows) installed in your Apache module directory (see your Apache documentation to locate it).Usual locations for modules directory on Unix:/usr/lib/apache//usr/lib/apache2//usr/local/apache/libexec//usr/local/apache/modules/but nothing ...All the documentation doesnt seem to speak to CF 2016. I found where my connectors are I just dont know the correct location is to install them...If anyone else has had this issue with this your advice and guidance would be much appreciated ...In addition.... where is my httpd file? Do I still need one ? I cant find it anywhere...
Do you have any ideas about fixing the coldfusion.runtime.SessionTracker exception? Have you encountered it before? We have, unfortunately.Our system consists of ColdFusion 11 Update 13 and IIS."Error","ajp-bio-8012-exec-4","12/15/17","06:45:30","educationLive","Could not initialize class coldfusion.runtime.SessionTracker The specific sequence of files included or processed is: E:\wwwroot\www_education_nl\htdocs\education\Facade.cfc, line: 493 "coldfusion.runtime.CustomException: Could not initialize class coldfusion.runtime.SessionTrackerat coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142)at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3000)at cfApplication2ecfc1126640006$funcONERROR.runFunction(E:\wwwroot\www_education_nl\htdocs\Application.cfc:493)at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)at coldfusion.runtim
Hi everyone,We currently have Coldfusion 11 running on Ubuntu 16.04 on all of our application servers. When I came to install Coldfusion 2016 I noticed the installer failed on the Apache connector part and checked the Coldfusion 2016 support matrix here:https://helpx.adobe.com/pdf/coldfusion2016-support-matrix.pdf Which states it does not support Ubuntu 16.04 which I found odd because I've seen several posts and even this image of Coldfusion 2016 running on Ubuntu 16.04:AWS Marketplace: ColdFusion (2016 release) I'm guessing these people installing on 14.04 and then updated to 16.04.Does anyone have an tips of getting the installer to run on Ubuntu 16.04?Kind Regards,Chris
Hello,I can't seem to get CSS to work in CFHTMLtoPDF. All I need is font and font size. Is there a simple way to accomplish this task?Thanks in advance!Gary
I've been working on transforming an old CF9 form into a CF 2016 version and have everything working except . . . I have a form that folks can select various search criteria off a record (i.e. userid, sequenceNumber, PayCode, PaymentDate, ABSdollar, MinDollar, MaxDollar, etc).As the values get selected the arguments get built (some are just the value, and some are phrases - i.e. "AND abs(payment_amount) = #client.gdabsamount#") and then these values get sent serializeJSON before they go to the CFC where executed.This is where the value gets set:<CFIF LTRIM(RTRIM(client.gdabsamount)) is ""> <cfset client.gdabsamount = ""> <cfelse> <cfset client.gdabsamount = "AND abs(payment_amount) = #client.gdabsamount# "> </cfif> <cfset AP = serializeJSON(#client.gdabsamount#)><cfgrid format="html" name="grid" pagesize=18 sort="yes" selectMode="row" selectColor="##e6e6ff" height="500" width="1400"
I recently spoke to an agent from technical support about CF licensing and he said he will connect me to someone from sales team but I never got a call back so I will try to get an answer here.I don’t know which edition of CF I need to buy, standard or enterprise. I was informed licenses are issued on a Core basis. So if I’m using 2 VMs with 4 cores each, which edition do I need? And how many licenses? Can you send me a full description on how the licensing works? I can’t seem to find anything that helps on the website.
I am setting up a new site and getting this cryptic error message. 500 errorElement NAME is undefined in a Java object of type class coldfusion.runtime.StructBean. The specific sequence of files included or processed is: I cant get any pages to run. It looks like the session vars aren't getting set. Any idea what this is? Maybe some server settings arent correct?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.