tracker issue : CF-4204027

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

Error when returning the result of QueryExecute from a function in CFC.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): / ()

Created: 02/15/2019

Components: Core Runtime, Parser/Compiler

Versions: 2016,11.0

Failure Type: Others

Found In Build/Fixed In Build: 11.0.16.313933 / 314058

Priority/Frequency: Critical /

Locale/System: /

Vote Count: 1

Problem:

Error when returning the result of QueryExecute from a function in CFC.

Method:

see attached test case.

 

Result:

 Issue on CF2016:
Exception #1:
"Error","http-nio-8503-exec-9","02/14/19","10:30:04","","(class: cfq2ecfc1993741597$funcGETROLES, method: runFunction signature: (Lcoldfusion/runtime/LocalScope;Ljava/lang/Object;Lcoldfusion/runtime/CFPage;Lcoldfusion/runtime/ArgumentCollection;)Ljava/lang/Object;) Unable to pop operand off an empty stack The specific sequence of files included or processed is: C:\ColdFusion12\cfusion\wwwroot\cf2016\testing\Bugs\queryexecute\repro\q.cfm'' "
java.lang.VerifyError: (class: cfq2ecfc1993741597$funcGETROLES, method: runFunction signature: (Lcoldfusion/runtime/LocalScope;Ljava/lang/Object;Lcoldfusion/runtime/CFPage;Lcoldfusion/runtime/ArgumentCollection;)Ljava/lang/Object;) Unable to pop operand off an empty stack
at cfq2ecfc1993741597.<clinit>(C:\ColdFusion12\cfusion\wwwroot\cf2016\testing\Bugs\queryexecute\repro\q.cfc)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at coldfusion.runtime.TemplateClassLoader.newInstance(TemplateClassLoader.java:616)
at coldfusion.runtime.TemplateClassLoader.newInstance(TemplateClassLoader.java:587)
at coldfusion.runtime.TemplateProxyFactory.getCFCInstance(TemplateProxyFactory.java:284)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:177)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:162)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:152)
at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:57)
at coldfusion.runtime.CFPage.___createObjectInternal(CFPage.java:11830)
at coldfusion.runtime.CFPage._createObject(CFPage.java:11815)
at cfq2ecfm1993741587.runPage(C:\ColdFusion12\cfusion\wwwroot\cf2016\testing\Bugs\queryexecute\repro\q.cfm:1)

Exception #2:
"Error","http-nio-8503-exec-7","02/14/19","10:30:04","","Could not initialize class cfq2ecfc1993741597 The specific sequence of files included or processed is: C:\ColdFusion12\cfusion\wwwroot\cf2016\testing\Bugs\queryexecute\repro\q.cfm, line: 1 "
java.lang.NoClassDefFoundError: Could not initialize class cfq2ecfc1993741597
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at coldfusion.runtime.TemplateClassLoader.newInstance(TemplateClassLoader.java:616)
at coldfusion.runtime.TemplateClassLoader.newInstance(TemplateClassLoader.java:587)
at coldfusion.runtime.TemplateProxyFactory.getCFCInstance(TemplateProxyFactory.java:284)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:177)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:162)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:152)
at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:57)
at coldfusion.runtime.CFPage.___createObjectInternal(CFPage.java:11830)
at coldfusion.runtime.CFPage._createObject(CFPage.java:11815)
at cfq2ecfm1993741587.runPage(C:\ColdFusion12\cfusion\wwwroot\cf2016\testing\Bugs\queryexecute\repro\q.cfm:1)

Attachments:

Comments:

Folks, the bug report says "see attached test case", but I am not finding that anywhere here. Is it that it was missed? or might the be referring to something internal (that we on the outside don't see)? It's important to see a test case of this problem, to understand where and how the bug can happen (because from other discussions in recent days, it seems to be a very specific circumstance, as opposed to ALL uses, that cause queryexecute to fail. If you may correct something about this, please do add a comment so we know when it's done. Thanks.
Comment by Charlie A.
30318 | February 18, 2019 02:11:05 PM GMT
I will add that since making my comment earlier, I have found another bug report about queryexecute (posted since the Feb 2019 CF updates), and with more detail on the problem. I can't tell if what's offered there (test case code, and an offer of a short-term patch from Adobe) may really apply to this bug here, but if it is then this can be marked as a dupe. The other is bug https://tracker.adobe.com/#/view/CF-4204019
Comment by Charlie A.
30321 | February 18, 2019 10:55:11 PM GMT
Also, as that other bug report shows, this is not quite as it was characterized in the title here, as "returning the result from a function in a CFC". That may be how the failed code was being used by whoever filed the bug (I see no indication of who that was), but as I show in cffiddle demo code in that other bug report, it definitely has nothing really to do with CFCs in paticular.
Comment by Charlie A.
30331 | February 19, 2019 06:30:14 PM GMT
This issue is fixed now. The fix for this issue will be available as part of ColdFusion 2018 Update 3, ColdFusion 2016 Update 9 and ColdFusion 11 Update 17. -Nimit
Comment by Nimit S.
30547 | March 21, 2019 05:54:13 AM GMT