tracker issue : CF-3818459

select a category, or use search below
(searches all categories and all time range)

Java bug in CF

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Daniel Gordon / Daniel Gordon (TeddyI43)

Created: 09/04/2014

Components: Scheduler

Versions: 9.0.1

Failure Type: Crash

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description:
We are experiencing strange Java bug in ColdFusion. Please find more details about ColdFusion version and serial number in the attachment. 
All involved scripts have been added as attachment. 

According to the log, it seems to be searching for the variable AGENTFULLNAME in the CGI scope, which is weird.

The truth is, this is not the only such error and this error has happened before with one of the other variables in the following code block:
_agentBranding.cfm – line 87:
<cfset CALLER.agentName = agentName>
<cfset CALLER.agentFullName = agentFullName>
<cfset CALLER.agentIsBranded = agentIsBranded>
<cfset CALLER.agentLogo = agentLogo>
<cfset CALLER.agentCorrBccEmail = agentCorrBccEmail>
<cfset CALLER.agentCorrUserEmail = agentCorrUserEmail>
<cfset CALLER.agentCorrColumns = agentCorrColumns>
<cfset CALLER.agentPhoneNumber = agentPhoneNumber>
<cfset CALLER.agentData = agentData>

Steps to Reproduce:

Actual Result:

Expected Result:

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3818459

External Customer Info:
External Company:  
External Customer Name: TeddyI43
External Customer Email:  
External Test Config: My Hardware and Environment details:  Version: 9,0,2,282541


  1. September 05, 2014 00:00:00: 1_scripts.txt
  2. September 05, 2014 00:00:00: 2_response_to_Jamo_note_2-24-41pm.txt


From the error log: 09/03 09:05:07 error Error while reading header AGENTFULLNAME at jrun.servlet.jrpp.ProxyEndpoint.readFully( at jrun.servlet.jrpp.ProxyEndpoint.readFully( at jrun.servlet.jrpp.ProxyEndpoint.readInt( at jrun.servlet.jrpp.ProxyEndpoint.readString( at jrun.servlet.jrpp.ProxyEndpoint.getHeader( at javax.servlet.http.HttpServletRequestWrapper.getHeader( at javax.servlet.http.HttpServletRequestWrapper.getHeader( at javax.servlet.http.HttpServletRequestWrapper.getHeader( at coldfusion.thread.HttpServletRequestWrapper.getHeader( at coldfusion.runtime.CgiScope.resolve( at coldfusion.runtime.CgiScope.containsName( at at coldfusion.runtime.NeoPageContext.searchScopes( at coldfusion.runtime.NeoPageContext.findAttribute( at coldfusion.runtime.NeoPageContext.findAttribute( at coldfusion.runtime.PageScope.resolveName( at coldfusion.runtime.PageScope.containsName( at coldfusion.runtime.Scope.containsKey( at coldfusion.runtime.Scope.put( at coldfusion.runtime.CfJspPage._arrayset( at coldfusion.runtime.NeoPageContext.SymTab_setSplitNameInMap( at coldfusion.runtime.CfJspPage._structSetAt( at cf_agentBranding2ecfm878175305.runPage(A:\inetpub\wwwroot\Clients\UNO4\wwwNew\backend\_agentBranding.cfm:88) at coldfusion.runtime.CfJspPage.invoke( at coldfusion.filter.CFVariablesScopeFilter.invoke( at coldfusion.tagext.lang.ModuleTag.doStartTag( at cf_emailReturnConfToCustomer2ecfm782310041.runPage(A:\inetpub\wwwroot\Clients\UNO4\wwwNew\backend\return\_emailReturnConfToCustomer.cfm:23) at coldfusion.runtime.CfJspPage.invoke( at coldfusion.filter.CFVariablesScopeFilter.invoke( at coldfusion.tagext.lang.ModuleTag.doStartTag( at coldfusion.runtime.CfJspPage._emptyTcfTag( at cfreturn_process2ecfm248875279$func_CFFUNCCFTHREAD_CFRETURN_PROCESS2ECFM2488752795.runFunction(A:\inetpub\wwwroot\Clients\UNO4\wwwNew\backend\return\return_process.cfm:1129) at coldfusion.runtime.UDFMethod.invoke( at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke( at coldfusion.filter.FunctionAccessFilter.invoke( at coldfusion.runtime.UDFMethod.runFilterChain( at coldfusion.runtime.UDFMethod.invoke( at coldfusion.runtime.UDFMethod.invokeCFThread( at coldfusion.thread.Task.invokeFunction( at at at
Comment by External U.
11149 | September 04, 2014 07:27:03 AM GMT
There doesn't appear to be any any attachment with this bug. Could you upload it? This script appears to be accessing and creating many unscoped variables. (I'm not sure without viewing all CF9 source.) When returning multiple values like this, you could generate a single struct and return it. It's a lot easier to troubleshoot as you can dump the entire struct for inspection without having to provide every unique variable name. This would also avoid potential undocumented reserved name conflicts.
Comment by External U.
11150 | September 04, 2014 11:06:54 AM GMT
I recommend removing the serial # from the attachment. It's not necessary to troubleshoot the issue. I'm running 9.0.1, so I can't test this. I also don't have same database configuration. Do you have a smaller proof-of-concept test? Something that doesn't involved database. I called a module that returned these variables and didn't encounter any problems regarding the unscoped "Agentfullname" variable name. I highly recommend using CFQueryParam around every value (especially FORM & URL) used in a database query otherwise it could easily be susceptible to SQL injection. I also recommend using a variable scope when referencing your variables... even if it's just the local "variables" scope. This would allow you to move away from evaluate() and use notation variables["VariableName"] and StructKeyExists(Variables, "VariableName").
Comment by External U.
11151 | September 04, 2014 03:54:41 PM GMT
Here is a similar post regarding this java error... "A possible cause of errors like this may be due to the JVM starting garbage collection and this process taking long enough as to exceed the server timeout setting. If this is the case, try adding the -XX:+UseConcMarkSweepGC java option" We run a somewhat similar process to personalize data for real estate agents. Our garbage collection is configured with "UseConcMarkSweepGC" (it's not the default, but you can enable it on the server.) Here are some other ColdFusion-related articles regarding this setting:
Comment by External U.
11152 | September 05, 2014 12:18:04 PM GMT
Adobe, Can you please remove the ColdFusion serial number from the description above? Thanks!, -Aaron
Comment by External U.
11153 | November 24, 2014 02:00:28 AM GMT
We don't have the rights to edit the test config the user has given. I guess only the person who logged this bug can do it.
Comment by Rupesh K.
11154 | November 24, 2014 02:10:24 AM GMT
@itisdesign, we have taken care of the serial number issue. Thanks!
Comment by Vamseekrishna N.
11155 | November 24, 2014 06:09:27 AM GMT
Hi Vamseekrishna and Rupesh, You're welcome and thanks! -Aaron
Comment by External U.
11156 | November 24, 2014 06:20:17 PM GMT
Hi, The code you have attached has lot of database references and include some files that are missing. Can you send a small repro code so that we can verify the bug. Thanks , Suchika.
Comment by Suchika S.
11157 | December 02, 2014 03:33:11 AM GMT
There is no response from the customer hence closing the bug. If you have any additional information about the bug ,we will re open the bug. Thanks, Suchika
Comment by Suchika S.
11158 | May 07, 2015 12:46:25 AM GMT