I saw one blog post from March that this was going to be fixed. Has there been any progress?
cfhtmltopdf work on linux?
Free barcode generator?
CF?
CF 10 errors show Error 500 instead of normal error message
Hi,
Strangely, our CF 10 server has started to show "500 - Internal server error" whenever a CF error occurs, instead of the normal error message. The error is logged, but the front end shows the error 500 and nothing else. Normally, we'd see the error message and stack trace etc.
How would I troubleshoot that?
EDIT: This is a CF10 on IIS 8 Windows 2012 server, with update 11.
Regards,
Mark
Message was edited by: tribule
What do you think of the future of Coldfusion?
Let me start by saying I LOVE COLDFUSION.
When I first learned Coldfusion I couldn't believe how dramatically smooth and easy it was.
Now when I'm looking around for developer jobs, everyone is only hiring PHP and .NET developers....
Does anyone have a full time Coldfusion job here?
Did Coldfusion die while I was asleep?
CGI.PATH_INFO is blank in CF 10
I know this was an issue that was supposedly fixed in the first update, but I applied that and I'm still experiencing the error. Any ideas?
Version says ColdFusion 10,283649
Multiple Checkbox Insert as Multiple Records
However, I need to be able to insert multiple selections from checkboxes as multiple records in a table, and I'm running into problems. I'm guessing this sort of thing is the basic premise of pretty much any shopping cart out there, but I can't seem to find any good information on this in either my "Developing with CFMX Manual" or my "CFMX Web App. Construction Kit" book, or the web for that matter. (The only examples shown for either the form page or the action page are for one, static checkbox!!!)
The basic premise of what I'm trying to achieve:
User is able to select various items from multiple checkboxes. (ITEM_ID)
This selection is associated with the user. (CUSTOMER_ID)
The selection is associated with a point in time such as a year. (INSTANCE_ID)
These IDs all need to be inserted into a 3 column table expecting integers for ITEM_ID, CUSTOMER_ID, and INSTANCE_ID
Example of FORM Values that would be passed: ( 147,148,149 , 23445 , 4 ) = (3 ITEM_IDs, CUSTOMER_ID, and INSTANCE_ID)
Typical Error upon submission to insert action page: Count of read-write columns does not equal count of values (Which is to be expected, I'm gathering multiple values via the checkboxes).
How can I insert each checkbox selection as a separate record in the table???
Such as:
( 147 , 23445 , 4 )
( 148 , 23445 , 4 )
( 149 , 23445 , 4 )
My Code:
Form:
<form method="post" name="form2" action="process_form_action_page.cfm">
<table>
<cfoutput query="Stored_Procedure1">
<tr>
<td><input type="checkbox" name="ITEM_ID" value="#Stored_Procedure1.ITEM_ID#"></td>
<td>#Stored_Procedure1.ITEM_TITLE#</td>
</tr>
</cfoutput>
</table>
<input type="hidden" name="CUSTOMER_ID" value="#CUSTOMERS.CUSTOMER_ID#">
<input type="hidden" name="INSTANCE_ID" value="#INSTANCE.INSTANCE_ID#">
<input type="submit" value="Insert record">
</form>
Action Page:
<cfquery datasource="ORDERS">
INSERT INTO PRODUCT_CUSTOMER (ITEM_ID, CUSTOMER_ID, INSTANCE_ID) VALUES (
<cfif IsDefined("FORM.ITEM_ID") AND #FORM.ITEM_ID# NEQ "">
#FORM.ITEM_ID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.CUSTOMER_ID") AND #FORM.CUSTOMER_ID# NEQ "">
#FORM.CUSTOMER_ID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.INSTANCE_ID") AND #FORM.INSTANCE_ID# NEQ "">
#FORM.INSTANCE_ID#
<cfelse>
NULL
</cfif>
)
</cfquery>
</cfif>
Thanks!
post parameters exceeds the maximum limit specified in the server
After ColdFusion security hotfix APSV12-06 was installed, we got this error "500...post parameters exceeds the maximum limit specified in the server..." on our dev and test areas. We changed parameter limit from 100 to 200 in CF Administrators and everything was ok. The error returned on the test machine but not the dev. The parameter limits are still 200.
What can be causing this problem ?
Object Instantiation Exception. Creating Java Object
Hi,
I am trying to implement CyberSource Simple Order API and I am getting an error on CFobject
Object Instantiation Exception. | |
An exception occurred when instantiating a Java object. The class must not be an interface or an abstract class. Error: com/cybersource/ws/client/ClientException. |
So far I've placed the .jar file into :\ColdFusion8\wwwroot\WEB-INF\lib directory and on my cfpage I got:
<cfobject action="create" type="Java" class="CyberSource" name="auth">
Does anyone have any experience with CyberSource or the source of the error code?
Thanks in advance!
ColdFusion writing to shared folder on different computer
I have a process that has ColdFusion write to a shared folder on a computer that is not processing the request. When I attempt to refer to the share using the UNC name '\\SERVERNAME\FOLDERNAME\test.txt', ColdFusion throws the following error:
Error occured while performing write: java.io.FileNotFoundException: \\SERVERNAME\FOLDERNAME\test.txt (Access is denied)
ColdFusion has full access to this folder. However, when I refer to the folder/file locally 'c:/temp/test.txt', ColdFusion has no problem with creating/writing the file.
Is there an issue writing to shared with ColdFusion?
ColdFusion version: 9.0.1
OS: Windows Server 2008 R2
CFID and CFTOKEN still set when using J2EE sessions
I'm using CF10 and "Use J2EE session variables" is selected in the CF admin.
When I visit an application, I get the JSESSIONID cookie, but I also get the CFID and CFTOKEN persistent cookies. The app I'm working with is older and uses Application.cfm instead of Application.cfc, but the clientmanagement and setclientcookies application attributes are set to false.
I'm not sure why CFID and CFTOKEN are still set. Are they set regardless of the client and session management settings?
HTTP Error 401.3 - Unauthorized You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
Hi,
I got this 401.3 error when running the http://127.0.0.1/CFIDE/administrator/index.cfm configuration page after installation of coldfusion 8 standard on win 2008 32bit server which has IIS7. Coldfusion 8 files are located on D drive instead of the default C drive. I already duplicate right access from C to D but still get the error. The IIS 7 error page shows that the logon account is Anomymous. I traced default web site authentication and it poited to NT Authority\IUSR account so I added this account full access to D:\inetpub\wwwroot but that didn't help either. Does anybody come across this problem? Any help is greatly appreciated.
Please Help - Randomly HTTP 503 Internal server error
Hi all,
I have a Coldfusion 10 standard Edition installation with MSSQL 2005 on Windows Server 2008 R2 server about 2 week old.
It is one of my live server and it is dealing with medium to high volume of traffic.
Since deploying this server, it has been getting random HTTP 503 internal server errors,
which require the entire server restart (as coldfusion application server, IIS restart will not able
to resolve the problem). Within this two weeks, sometimes it can last for couple of days without problem,
and sometimes it require 4-5 times server restart within one day.
I can't replicate the error on demand, but I could paste one of the windows server event log here:
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7afa2
Faulting module name: isapi_redirect.dll, version: 1.2.32.0, time stamp: 0x4f745a78
Exception code: 0xc0000005
Fault offset: 0x000000000000cd68
Faulting process id: 0xfd4
Faulting application start time: 0x01cd745ad58e3393
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll
Report Id: 144b3231-e04e-11e1-8e6d-00505687001e
And I started suspecting the problem is because the connector comes with coldfusion 10, based on one of the bug reports from apache
https://issues.apache.org/bugzilla/show_bug.cgi?id=48826.
Based on the information in log file, they are pretty similar.
Any suggestions on how to fix this random server error would be greatly appreciated!
Many thanks
Ryan
"Java heap space" error and coldfusion crashes
I have a coldfusion scheduled task that takes about two hours to run (about 4000 lines of code). It does a number of cfquery, cffile, cfexecute with cffunction, cfloop, and cfif. If works perfectly in the fifteen minute version that works with a subset of the data, but it frequently runs coldfusion out of java heap in the full record set run. This then sometimes causes our public webserver to go down or malfunction until the coldfusion process is restarted.
When I posted about getting this to work initially last year, the solution was to put output="no" in every cffunction as apparently the whitespace generated by the code in all the cfloops was eventually enough to crash the server after a couple hours.
Recently, it has started to crash again as the record count has grown over the past year. I put everything in a number of cfsilent tags, and it ran for one night, but now it is crashing again.
I'm not sure what to do next. The cfexecutes log to a file not to a variable. The variables are in cffunction with var keyword with output="no" on the cffunction with coldfusion debugging checkboxes unchecked in the admin so in theory the fifteenth step/cffunction in the process should have the same memory available after garbage collection if needed as the first. But obviously it doesn't as each step can run by itself but not sequentially unless limited in record count.
Any ideas? Any known coldfusion memory leaks in 8,0,0,176276 Standard? Any way to prevent coldfusion server from malfunctioning if one page runs it out of memory?
cffile MIME types
One of my users was trying to upload a Microsoft Word document using CFFILE. The document was created in Office 2007, but was saved in Office 2003 format (.doc). The upload is done with this code, which has worked in the past with PDF's:
<cftry>
<cffile action="UPLOAD"
filefield="file_upload"
destination="files\temp"
nameconflict="OVERWRITE"
accept="application/unknown,application/pdf,application/msword,text/html,text/plain,appli cation/rtf,text/richtext,text/xml">
<cfset accepted="true">
<cfcatch type="any">
<cfset accepted="false">
</cfcatch>
</cftry>
When I cfdump the cfcatch structure after this fails, it shows the MIME type of the file that I was attempting to upload as "application/x-tika-msoffice"
When I add this MIME type to the accept parameter of cffile and try the upload again, it gives this error:
The MIME type or the Extension of the uploaded file application/x-tika-msoffice was not accepted by the server.
What can I do to allow this file to be uploaded?
I am using CF10 Standard on IIS 7.5 on Windows Server 2008R2.
Thanks.
Random but Regular CF9 503 Error - CF-out.log Jrun errors
Environment
- ColdFusion version: CF9 32-bit (NOT the 9.01 Patch yet)
- Hotfix version None
- server OS : Windows 2003 Server 64 Bit
- webserver: Apache/2.2.14 (W32) 32 bit
- database: MSSQL 2008 Express with Advanced Services 32 bit
Background
1. Porting an old cold fusion code base from 2002-2006 to CF9
2. I am randomly but quite frequently getting 503 errors in the browser on the above environment AND a development environment running WinXP, Apache 2.2 32 bit, CF9 32 bit, MSSQL 2008 Express with Advanced Services 32 bit.
The 503 errors seem random and they are frequent.
These 503 errors are happening on both the application and on the CFIDE/Administrator (though not as often).
No one is using this application but me. It is under test and development. Obviously, can't go to production with this problem.
3. The 503 errors are showing up in the apache access and error log.
Access Log
70.125.50.86 - - [12/Jan/2011:06:02:55 +0000] "GET /generalsignup.cfm HTTP/1.1" 503 222 "http://www.debitelite.com/index.cfm" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.634.0 Safari/534.16"
Error Log
[Wed Jan 12 06:02:55 2011] [notice] jrApache[34056: 53266] returning error page for JRun too busy or out of memory
4. Here is my JVM config from CF9 CFIDE/Administrator
-server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib
5. I have NOT made any real modifications or tuning changes to this server. I just installed CF9 tonight.
6. I have run the Code Analyzer and it has not found anything wrong with the code.
7. Here is what ends up in the coldfusion-out.log file.
01/12 06:02:53 error ROOT CAUSE:
java.lang.NullPointerException
at coldfusion.runtime.Cast._double(Cast.java:833)
at coldfusion.runtime.Cast._int(Cast.java:456)
at coldfusion.runtime.Cast._int(Cast.java:461)
at coldfusion.runtime.ClientScope.UpdateGlobals(ClientScope.java:127)
at coldfusion.runtime.ClientScopeServiceImpl.PersistClientVariablesForRequest(ClientScopeSer viceImpl.java:323)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:3 3)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
at coldfusion.CfmServlet.service(CfmServlet.java:200)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
javax.servlet.ServletException: ROOT CAUSE:
java.lang.NullPointerException
at coldfusion.runtime.Cast._double(Cast.java:833)
at coldfusion.runtime.Cast._int(Cast.java:456)
at coldfusion.runtime.Cast._int(Cast.java:461)
at coldfusion.runtime.ClientScope.UpdateGlobals(ClientScope.java:127)
at coldfusion.runtime.ClientScopeServiceImpl.PersistClientVariablesForRequest(ClientScopeSer viceImpl.java:323)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:3 3)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
at coldfusion.CfmServlet.service(CfmServlet.java:200)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70 )
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
01/12 06:02:53 error (JRun Service: ProxyService [jrun.servlet.jrpp.JRunProxyService@1da1a47]) JRunPRoxyServer.invokeRunnable:
java.lang.IllegalStateException
at jrun.servlet.JRunResponse.getWriter(JRunResponse.java:205)
at jrun.servlet.JRunResponse.sendError(JRunResponse.java:597)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:328)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
java.lang.IllegalStateException
at jrun.servlet.JRunResponse.getWriter(JRunResponse.java:205)
at jrun.servlet.JRunResponse.sendError(JRunResponse.java:597)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:328)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
8. This is NOT isolated to a single page or the same page every time. It happens on pages where very little and/or no processing is taking place.
Anyone have some insights?
Thanks
Stephen Cannon
How do I populate PDF Image from ColdFusion?
I created a simple LiveCycle PDF that has 1 image and 3 textfields. Using the ColdFusion code below, I was able to pass data from ColdFusion into the form. However, I can't figure out how to dynamically populate the image. When I run the code, the image is always empty.
Does anyone know how to do this? All of my image paths are stored in a database and need to be dynamic.
ColdFusion Code
---------------------------------------------------------------------
<cfpdfform source="c:\webs\testpdf.pdf" destination="c:\webs\result.pdf" action="populate" overwrite="true"> <cfpdfsubform name="form1"> <cfpdfformparam name="img1" value="C:\webs\jellyfish.jpg"/> <cfpdfformparam name="txt1" value="Swatch 1"/> <cfpdfformparam name="txt2" value="Orange"/> <cfpdfformparam name="txt3" value="Summer 13"/> </cfpdfsubform></cfpdfform>
Note: Using ColdFusion 9
Coldfusion does not recognize IE11 - Flash forms not working.
This is a problem that has me banging my head on my desk. We have a web application that still uses Flash based web forms. (Before anyone says it, I know we need to get away from the flash forms, but we cannot do this overnight.) The problem is that because IE11 no longer passes MSIE in the USER AGENT string, ColdFusion is placing an <Embed> tag instead of an <Object> tag to load the flash. I know that we could add our site to the Compatibility List, however we have too many users to guide this through. We need a solution that we can perform on our side, either modifying code, ColdFusion, or IIS. First has anyone else run into this problem? Does anyone have any potential solutions?
Thanks in advance for your help.
CF11 is crashing ( application pool suffered a fatal communication error with the Windows Process Activation Service)
I have a cluster of 2 IIS web servers on Windows Server 2008 R2. They had been running on CF10 for over a year (if not two) with no problems. I upgraded one server to CF11 and now that server is crashing while the CF10 servers is still running fine.
In the Windows event log I'm seeing 4 instances of this error:
"A process serving application pool '******' suffered a fatal communication error with the Windows Process Activation Service. The process id was '4652'. The data field contains the error number."
Then finally:
"Application pool '******' is being automatically disabled due to a series of failures in the process(es) serving that application pool.".
Looking at the application pool in the IIS admin it is stopped. Restarting will resolve but it will eventually crash.
What could be the issue?
-Phil
How to kill a coldfusion cookie??
I set cookies like this:
<cfcookie name="ckwhatever" value="hello">
I try to kill the cookie like this:
<cfcookie name="ckwhatever" expires="now">
This does NOT work. the cookie remains.
I've tested on mozilla and IE
I don't get it.
CFID and CFTOKEN still set when using J2EE sessions
I'm using CF10 and "Use J2EE session variables" is selected in the CF admin.
When I visit an application, I get the JSESSIONID cookie, but I also get the CFID and CFTOKEN persistent cookies. The app I'm working with is older and uses Application.cfm instead of Application.cfc, but the clientmanagement and setclientcookies application attributes are set to false.
I'm not sure why CFID and CFTOKEN are still set. Are they set regardless of the client and session management settings?