Skip to main content
nak33
Known Participant
January 17, 2022
Question

500 Error initializing CFC

  • January 17, 2022
  • 2 replies
  • 1459 views

Over the weekend I ran into an issue with initializing a CFC; when cfcomponent is called a 500 error is thrown.  When reveiwing the exception.log file I see the following:

java.lang.StackOverflowError
	at java.base/java.util.HashMap.putVal(HashMap.java:624)
	at java.base/java.util.HashMap.put(HashMap.java:607)
	at coldfusion.runtime.LocalScope._bindInternal(LocalScope.java:538)
	at coldfusion.runtime.NeoPageContext.setVariableScope(NeoPageContext.java:2047)
	at coldfusion.runtime.NeoPageContext.SymTab_initializeForPage(NeoPageContext.java:1254)
	at coldfusion.runtime.NeoPageContext.<init>(NeoPageContext.java:256)
	at coldfusion.runtime.CfJspPage.initialize(CfJspPage.java:163)
	at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:555)
	at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:286)
	at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:412)
	at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:286)
	at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:412)
	at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:272)
	at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:164)
	at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:154)
	at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:81)
	at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:56)
	at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:101)
	at coldfusion.runtime.ProxyFactory.getProxy(ProxyFactory.java:91)
	at coldfusion.runtime.CFPage._createObjectProxy(CFPage.java:10714)
	at coldfusion.runtime.CFPage.createObjectProxy(CFPage.java:10670)
	at coldfusion.tagext.lang.ObjectTag.doStartTag(ObjectTag.java:535)
	at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:5201)
	at cfloan2ecfc904776707._factor35(D:\Websites\ycWeb\trunk\yc\cfc_files\system\builder\loan.cfc:3)
	at cfloan2ecfc904776707.runPage(D:\Websites\ycWeb\trunk\yc\cfc_files\system\builder\loan.cfc:1)
	at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:257)

 

This began after updating our CF2021 server to Updater 3. 

 

I've reviewed this post and I've seen Charlies fix, but why would this be occurring to begin with?

https://community.adobe.com/t5/coldfusion-discussions/cf2018-http-500-error-upon-startup-cache-issue/m-p/11767290

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    January 18, 2022

     

    java.lang.StackOverflowError
    	at java.base/java.util.HashMap.putVal(HashMap.java:624)
    	at java.base/java.util.HashMap.put(HashMap.java:607)
    	at coldfusion.runtime.LocalScope._bindInternal(LocalScope.java:538)
    	at coldfusion.runtime.NeoPageContext.setVariableScope(NeoPageContext.java:2047)
    	...
    	at cfloan2ecfc904776707._factor35(D:\Websites\ycWeb\trunk\yc\cfc_files\system\builder\loan.cfc:3)
    	at cfloan2ecfc904776707.runPage(D:\Websites\ycWeb\trunk\yc\cfc_files\system\builder\loan.cfc:1)
    	at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:257)

     

     

    By @nak33

     

    Those lines of stacktrace suggest your code might have generated a recursive loop or an excessively large array. Could you please share the following:

    1.  the code of loan.cfc (Make sure you obfuscate all private or sensitive information with ***);
    2.  the code you use for initializing the CFC.
    nak33
    nak33Author
    Known Participant
    January 19, 2022

    What in the stacktrace suggests that there is a recusive loop or large array?

    BKBK
    Community Expert
    Community Expert
    January 19, 2022

     

    What in the stacktrace suggests that there is a recusive loop or large array?


    By @nak33

     

    StackOverflowError 
    at java.base/java.util.HashMap.putVal()
    at cfloan2ecfc904776707._factor35()

     

     

    Charlie Arehart
    Community Expert
    Community Expert
    January 18, 2022

    Well, I'd say first that it's not clear that the issue in that other thread is the same as what you see here. 🙂 There's no indication of a stackoverflow error there, like you show here. Also, in that thread they say the problem happens only at startup. Are you saying that's the case here?

     

    Also, you refer to my "fix" but I discussed several over the entire thread. Which did you do?

     

    Finally, you mention having done update 3. First, what update were you on before? Second, did you check the install log in the update folder, to confim all "successes" and 0 fatalerrors. Last, are you confirming you really did NOTHING else? No change of the jvm also, perhaps? What jvm and update are you on, per the cf admin settings summary page? 

    /Charlie (troubleshooter, carehart. org)
    Charlie Arehart
    Community Expert
    Community Expert
    January 21, 2022

    Nak? 

    /Charlie (troubleshooter, carehart. org)