tracker issue : CF-3818459

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

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

Attachments:

  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

Comments:

From the error log: 09/03 09:05:07 error Error while reading header AGENTFULLNAME java.io.EOFException at jrun.servlet.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java:583) at jrun.servlet.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java:573) at jrun.servlet.jrpp.ProxyEndpoint.readInt(ProxyEndpoint.java:591) at jrun.servlet.jrpp.ProxyEndpoint.readString(ProxyEndpoint.java:620) at jrun.servlet.jrpp.ProxyEndpoint.getHeader(ProxyEndpoint.java:762) at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:124) at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:124) at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:124) at coldfusion.thread.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:295) at coldfusion.runtime.CgiScope.resolve(CgiScope.java:221) at coldfusion.runtime.CgiScope.containsName(CgiScope.java:301) at coldfusion.runtime.CgiScope.search(CgiScope.java:334) at coldfusion.runtime.NeoPageContext.searchScopes(NeoPageContext.java:766) at coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:638) at coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:622) at coldfusion.runtime.PageScope.resolveName(PageScope.java:52) at coldfusion.runtime.PageScope.containsName(PageScope.java:57) at coldfusion.runtime.Scope.containsKey(Scope.java:105) at coldfusion.runtime.Scope.put(Scope.java:72) at coldfusion.runtime.CfJspPage._arrayset(CfJspPage.java:1080) at coldfusion.runtime.NeoPageContext.SymTab_setSplitNameInMap(NeoPageContext.java:1385) at coldfusion.runtime.CfJspPage._structSetAt(CfJspPage.java:2233) at cf_agentBranding2ecfm878175305.runPage(A:\inetpub\wwwroot\Clients\UNO4\wwwNew\backend\_agentBranding.cfm:88) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:271) at cf_emailReturnConfToCustomer2ecfm782310041.runPage(A:\inetpub\wwwroot\Clients\UNO4\wwwNew\backend\return\_emailReturnConfToCustomer.cfm:23) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:271) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) 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(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.UDFMethod.invokeCFThread(UDFMethod.java:201) at coldfusion.thread.Task.invokeFunction(Task.java:287) at coldfusion.thread.Task.run(Task.java:140) at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:211) at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)
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... https://help.marklogic.com/Knowledgebase/Article/View/75/0/explaining-and-preventing-premature-eof-errors-when-loading-content-via-xcc "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: http://www.talkingtree.com/blog/index.cfm/2007/8/29/CF8-Performance-64-bit http://www.coldfusionmuse.com/index.cfm/2007/11/29/Coldfusion.Multiple.Garbage.Collection
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