The official community for ColdFusion.
Recently active
I have installed ColdFusion 2021 Update 2 throught the admin UI on two systems now. One development and one testing. In both cases, after installing the update I was greeted with the following message... After reinstalling the administrator UI as sugguested by the message, I login and can see that none of the other packages I had previously installed were still installed. I then had to manually install each of the packages again. These systems were built using the 32-bit zip installer on Windows Server 2019. The server was installed into C:\ColdFusion and the instance is C:\ColdFusion\cfusion. Once installed, the packages were all installed using the cfpm.bat file and restoring the contents of an export taken previously. The settings were then all restored using the cfsetup.bat file. Maybe something with the install location of C:\ColdFusion or me using the cfsetup.bat or cfpm.bat to configure the systems originally cause the update to do it? In any case. After the packa
Hello everyone, I have a cfm file that I use to upload a csv document every morning to a database. Recently I came across a problem when it was using the first name column A instead of the prefered name column F. The output file looks like this: <cffile action="write" file="#export_file#" output="First Name,Last Name,Email Id,Mailbox Id,Internal ID,Joint A/C holder,Company/Department,Address1,Address2,City,State,Postal code/ Zip Code,Country(ISO Code),Phone Number,Mobile,Recipient Type,Email Notification ?,SMS Notification ?,Active,Notes"/> My question is since I already have the csv set up with First Name A, Last name B etc is it possible for me to just change the code to this and it should apply that edit to show the joint AC first instead of the frist name during the upload?<cffile action="write" file="#export_file#" output="Joint A/C holder,Last Name,Email Id,Mailbox Id,Internal ID,First Name,Company/Department,Address1,Address2,City,State,Postal code/ Zip C
Hey Folks, We store timezone IDs from java.util.TimeZone, and now we want to use them with SQL Server (2019)'s AT TIMEZONE function. The problem is, the Java name for the timezone is not the same as the name SQL server wants. For example, we store the timezone ID from Java 'Australia/Adelaide'. We can get the full name via java.util.TimeZone.getTimeZone('Australia/Adelaide').getDisplayName(), which returns 'Australian Central Standard Time (South Australia)'. But.... SQL Server wants 'Australian Central Standard Time' and throws an error when using the string returned from Java. --- this works select datetime AT TIME ZONE 'Pacific Standard Time' AT TIME ZONE 'Australian Central Standard' AS datetime_TimeZone -- this fails select datetime AT TIME ZONE 'Pacific Standard Time' AT TIME ZONE 'Australian Central Standard Time (South Australia)' AS datetime_TimeZone Note, our dates are stored in PST and there is no way to easily change that now.
We run a website on a subdomain (mysite.abc.com) while other parties within our company operate various other websites on the main domain and other subdomains (www.abc.com, anothersite.abc.com, etc.). Our site is ColdFusion-based, as are a few of (but not all of) the other abc.com websites.We started to encounter recently a problem in which our users key their log in information into our log in page and click submit only to have the page refresh. No failed log in attempt, just a page refresh. I have seen the issue primarily in Firefox, but I believe this is just because our users perfer that browser. I am unable to recreate the problem on my end, but then again I rarely use Firefox and don't often visit the abc.com websites outside of our own.The only fix that seems to work is to clear the browser's cookies entirely, or if the user objects to that, just the cookies for "abc.com". Doing so lets the user log back into our website (again, at mysite.abc.com) fine. I do not have to clear th
I need to programmatically flatten AEM pdf's. I've searched the other posts here and do not see a solution to my need. Per the other responses though, I want to add that I am NOT trying to lock down or protect the documents from editing by flattening them. We maintain a local master copy of the documents, so integrity is not the goal. My need is simply to insure that the live data, watermarks, and signature images in the documents are visible in my end result when the user views the pdf in Chrome's built in pdf reader for example. I can achieve this manually by opening the pdf in Adobe Reader and printing to a pdf (going thru a print to pdf printer driver), but I need a programmatic solution do do this on the fly after my webpage has constructed the document and filled it with data and signatures that I capture. cfpdf flatten function does not support LiveCycle and AEM documents... Thanks in advance!
Hello Team, I stepped through CF2021 installation and per log and status looks to have been installed successfully.When I try to continue keep saying Configuring Server click link to refresh. I took default port 8500, not sure if this has anything to do? I am installing Windows 2019 Server. attaching SS. Any ideas on what to check. All CF windows services running fine. Many txs Jose
Bonjour,Alors que je l'ai fait de nombreuses fois dans d'autres programmes, cette fois-ci j'ai une erreur :<cfset DIR=#db_dir# & "#session.site#" & "/" & "_Ouvrages" & "/" & "APED" & "/" & "Auteurs" & "/" & "MOSTARAN"> <cfset DIRB=#DIR# & "/" & "hello"> <CFIF not DirectoryExists(#DIRB#)> <CFDIRECTORY action="CREATE" directory="#verifdirb#"> </CFIF>Voici le message d'erreur : An error occurred when performing a file operation create on file http://localhost:8500/SoLivres/_Ouvrages/APED/Auteurs/MOSTARAN/hello. The cause of this exception was: org.apache.commons.vfs2.FileSystemException: Invalid absolute URI "http://localhost:8500/SoLivres/_Ouvrages/APED/Auteurs/MOSTARAN/hello".. Merci d'avance pour votre aide !Cordialement
Hi all,So I have data with numeric values and also alphabets (mix of both) to diplay on the barchart X-axis. Like 1 2 3 4 5 6 7 8 9 A B C D E F G H I J ... etc...The problem is - The numeric values on X-axis data on Bar chart is being converted to Alphabets, and displaying all alpabets..Looks like the datatype I need to specify it somewhere so that It reads it right. Please help wit a solution if you have ran in to this issue and fixed. Thanks,
Hello Team, I stepped through CF2021 installation and per log and status looks to have been installed successfully.When I try to continue keep saying Configuring Server click link to refresh. I took default port 8500, not sure if this has anything to do? I am installing Windows 2019 Server. attaching SS. Any ideas on what to check. All CF windows services running fine. Many txs Jose Removed picture. ColdFusion has been successfully installed. This wizard will guideyou through the remaining server configuration steps and, if applicable,migrate settings from a previous version of ColdFusion.To guarantee the security of your server, please enter your ColdFusion Administrator password.
Hello everyone, I am trying to exchange data, via a REST service I wrote with a 3rd party. We are using AES Symmetric encryption, which means I need to get an IV and a SALT from a large hexadecimal encoded string, and use that SALT (with a shared password) to generate the apprpriate key to decrypt the message part of the hexadecimal string. My problem is coming with converting the hexadecimal string into a readable SALT.Here is my current code designed to read the hexadecimal string. You will notice that I am merely taking pieces of the string off (as the representative characters of the bytes represented) using Left and Mid. I then attempt to binaryEncode the strings as hex, and then I binaryDecode them as base64. While this produces a SALT that is of the same character lenght as the correct SALT, it does not produce the correct SALT.What would be the correct way to decode a hexadecimal string to extract an IV + SALT + Message in a way that I can con
Adobe ColdFusion 1-day workshopGet all the right tools to createamazing web applications! Damien BruyndonckxSeptember 22, 20219.00 AM - 4.30 PM CET12.30 PM - 8.00 PM IST Hi,Will this be recorded and available later for viewing? I have some meetings that day I cannot miss.Thank you
Hello Team, I stepped through CF2021 installation and per log and status looks to have been installed successfully.When I try to continue keep saying Configuring Server click link to refresh. I took default port 8500, not sure if this has anything to do? I am installing Windows 2019 Server. attaching SS. Any ideas on what to check. All CF windows services running fine. Many txs Jose
Hello Team, I stepped through CF2021 installation and per log and status looks to have been installed successfully.When I try to continue keep saying Configuring Server click link to refresh. I took default port 8500, not sure if this has anything to do? I am installing Windows 2019 Server. attaching SS. Any ideas on what to check. All CF windows services running fine. Configuration and Settings Migration WizardColdFusion has been successfully installed. This wizard will guideyou through the remaining server configuration steps and, if applicable,migrate settings from a previous version of ColdFusion.To guarantee the security of your server, please enter your ColdFusion Administrator password.
I write a lot of apps that interact with external APIs. Often times the data returned by 3rd parties is a deeply nested structure of data - and occasionally the 3rd party isn't reliable enough to send consistent response structures so I need to check for the existence of structure keys to avoid errors (frustrating, I know). Here's an example of what several response objects might look like from the same API { // Response sample 1: apiResponse: { data: { errors: [ "surname is invalid" ] } } // Response sample 2: apiResponse: { error: "The system is currently offline" } // Response sample 3: apiResponse: { data: { name: [ "john smith" ] } } } When I digest the data, I check the `apiResponse` for the existence of keys and sub keys before processing. However, it can be pretty tedious from a coding perspective to write out expressions that check for the existence of every single sub-key like this: 
Hello,We are trying to upgrade from ColdFusion 11 to ColdFusion 2016. During the migration, we had two errors:"Error","Could not import your ColdFusion Runtime settings. - The current user is not authorized to invoke this method.""Error","Could not import your ColdFusion Scheduled Tasks. - Advance Scheduling support is not available in this edition of ColdFusion serverI'm not too concerned about the Scheduled Tasks because we only have one that was a 'one time' task and now it's in the past. However, I'm not sure what is included in 'Runtime settings' so I am hesitant to just try and start using the new ColdFusion without knowing what did not get migrated correctly.We tried running as administrator and that did not solve the problem. How can we resolve the 'Runtime settings' error?Thanks in advance for any help.
Hello, Has anyone tried connecting a CF 2018 application to an Oracle 19c database? It doesn't list 19c as being compatible in the support matrix, but was hoping they're still compatible. Thank you.
I don't see a windows install file for coldfusion 2021, but supported platforms says "All"
I need to build an electronically signed PDF application to replace a Docusign type product that we currently use. I know starting with CF10 that with CF10+ that I could create an electronically signed PDF. Have there been any updates to CF that have come after CF10 that would make creating ann electronically signed PDF application easier to build and maintain? Can anyone point me to where someone has done work on something like this?
Hello, Just wondering whats the best way to handle an unsupported locale. We cater for a number of locales which are all supported but we now have need for Urdu but this isn't in the list of supported locales on our server. Has anyone ran into similair issues and how did they solve it? We're passing the locale to lsDateFormat and similar functions around the system, how can we get these working without errors? Thanks
Hi,I've been using ColdFusion 2018 for a few months. After updating my window, I can't access scheduled task tab in CF administrator.I got an error as below:Therefore I can't access the cfschedule tag in my application. Have someone experienced the same issue? Is there any way to solve this issue?Please let me know if you need more information. Thank you.Kind Regards,Raquel Septiane
Centos 7.9ColdFusion 2021 w/ Update1Apache 2.4.6Connector version:321158 I have noticed that when using Apache via the connector to serve ColdFusion pages that over time the server quits responding. Looking in the mod_jk.log I see:[info] ajp_connection_tcp_get_message::jk_ajp_common.c (1443) : (cfusion) can't receive the response header message from tomcat, tomcat (127.0.0.1:8020) has forced a connection close for socket 13[error] ajp_get_reply:: jk_ajp_common.c (2420) : (cfusion) Tomcat is down or refused connection. No response has been sent to the client (yet)[info] ajp_service::jk_ajp_common.c (3000) : (cfusion) sending request to tomcat failed (recoverable), (attempt=1) Checking netstat I see thousands of connections in the CLOSE_WAIT state. Restarting Apache does not clear the hung socketsRestarting ColdFusion does clear them Using the built-in Tomcat server on port 8500 I do not see this issue.Is this an Apache problem or a connector pr
Our applications make a good number of external API calls using <cfhttp>. I noticed that EVERY http call is logged in ColdFusion-out.log and based on how many calls we make the log files are in the GB range. Our ColdFusion-out.log is filled with millions of records that nobody looks at and I would like to stoplogging this data and creating enourmous log files. Any help would be greatly appreciated.
I am using CF REST Services and we would like to send back a detailed error struct when a requestor submits data that does not pass our internal validation check. I am using setRestResponse to manipulate the status code (which works fine on all accounts). However when someone fails validation I would like to send a struct back to the user with a 400 or a 401. My research lead me to putting the struct in the "content" part of my return struct to setRestResponse however when I do that, I get the correct statuscode but not the JSON struct of the error detail.One thing Im observing is my api seems to be returning HTML, even though I have set the "produces" attribute of my function to "application/json". I have also set the function to void since we are using setRestResponse. Can you help me figure out how to send back an error detail struct with a 400 error? What exactly needs to happen to make the API respond with JSON beyond what Ive done already? Ive included a snippet of my code.
Hi, Can we use Query of Queries to insert into database. For example: Here email value is obtained from an array. <cfquery name="chkexistingrecord" datasource="#DSN#"> select * from records where email = #arrDat[3]# </cfquery> <cfif chkexistingrecord.recordcount gte 1> <cfquery name="insertduplicate" dbtype="query"> INSERT INTO [Duplicate_Records] ( [record created] ,[record updated] ,[email] values #chkexistingrecord['record created'][1]# ,#chkexistingrecord['record updated'][1]# ,#chkexistingrecord['email'][1]# ) </cfquery> Both records and the Duplicate records tables are in the same database. When I tried doing this I g
Hi folks - I was wondering has anybody been successful in implementing CFDOCUMENT with PDF and a web page using CSS 1 or CSS 2? When I display my web page in my browser (IE 6), it renders completely perfect. When I pushed it through CFDOCUMENT, it gets messed up when it is rendered. I am open to ideas, suggestions, and other creative solutions. I have already tried CFHTTP, and it won't work because of the tight environment we have in the office. I can post my code if requested. Thanks, Doug
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.