NPE with CallStackGet
Description
Environment
Activity
Pothys - MitrahSoft 20 December 2022 at 07:03
I've checked this ticket with both the lucee versions 5.4.0.20-SNAPSHOT and 6.0.0.315-SNAPSHOT. Now the NPE issue was solved
Zac Spitzer 19 December 2022 at 14:53
Zac Spitzer 21 November 2022 at 16:38
getting this here too
https://github.com/lucee/extension-hibernate/actions/runs/3516259588/jobs/5892584939#step:10:261
https://github.com/lucee/Lucee/blob/6.0/test/orm/events/eventHandler.cfc#L65
[java] [script] Errored: java.lang.NullPointerException
240 [java] [script] /eventHandler.cfc:65
241 [java] [script] /eventHandler.cfc:28
242 [java] [script] /home/runner/work/extension-hibernate/extension-hibernate/lucee/test/orm/events/index.cfm:7
243 [java] [script] /home/runner/work/extension-hibernate/extension-hibernate/lucee/test/orm/Hibernate.cfc:59
244 [java] [script] /home/runner/work/extension-hibernate/extension-hibernate/lucee/test/_testRunner.cfc:399
245 [java] [script] /home/runner/work/extension-hibernate/extension-hibernate/lucee/test/run-tests.cfm:203
246 [java] [script] /bootstrap-tests.cfm:108
247 [java] [script]
248 [java] [script]
249 [java] [script] java.lang.NullPointerException
250 [java] [script] lucee.runtime.exp.NativeException: java.lang.NullPointerException
251 [java] [script] at lucee.commons.io.res.ResourcesImpl.getResource(ResourcesImpl.java:163)
252 [java] [script] at lucee.runtime.config.ConfigImpl.getResource(ConfigImpl.java:2043)
253 [java] [script] at lucee.runtime.config.SingleContextConfigWeb.getResource(SingleContextConfigWeb.java:634)
254 [java] [script] at lucee.runtime.functions.system.CallStackGet.abs(CallStackGet.java:174)
255 [java] [script] at lucee.runtime.functions.system.CallStackGet._getTagContext(CallStackGet.java:159)
256 [java] [script] at lucee.runtime.functions.system.CallStackGet.call(CallStackGet.java:56)
257 [java] [script] at lucee.runtime.functions.system.CallStackGet.call(CallStackGet.java:69)
258 [java] [script] at lucee.runtime.functions.system.CallStackGet.call(CallStackGet.java:61)
259 [java] [script] at eventhandler_cfc$cf.udfCall2(/eventHandler.cfc:65)
Pothys - MitrahSoft 2 August 2021 at 11:10
Stacktrace from 5.3.8.197-SNAPSHOT
lucee.runtime.exp.NativeException: java.lang.NullPointerException
at lucee.commons.io.res.ResourcesImpl.getResource(ResourcesImpl.java:163)
at lucee.runtime.config.ConfigImpl.getResource(ConfigImpl.java:2307)
at lucee.runtime.functions.system.CallStackGet.abs(CallStackGet.java:158)
at lucee.runtime.functions.system.CallStackGet._getTagContext(CallStackGet.java:143)
at lucee.runtime.functions.system.GetCurrentContext.call(GetCurrentContext.java:34)
at dump_cfc$cf.udfCall1(/Dump.cfc:74)
at dump_cfc$cf.udfCall(/Dump.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:207)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:681)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1917)
at lucee.runtime.tag.CFTag.cfcStartTag(CFTag.java:384)
at lucee.runtime.tag.CFTag.doStartTag(CFTag.java:178)
at test.testcase.test_cfm$cf$b.call(/test/testcase/test.cfm:1)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:945)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:837)
Pothys - MitrahSoft 2 August 2021 at 11:03
I also got the same error in lucee latest version 5.3.8.197-SNAPSHOT too. If invalid mappings with virtual / were defines in an application.cfc means the cfdump tag and dump(), writeDump() throws the same NPE.
Application.cfc
this.name="test";
this.mappings["/"] ={"/test":"D:\test"};
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
Zac SpitzerZac SpitzerPriority
NewLabels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Details
Details
Assignee
Reporter
Priority
Labels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
running the GHA tests for the image extension
https://github.com/lucee/extension-image/runs/3068147066?check_suite_focus=true#step:9:214
[java] [script] lucee.runtime.exp.NativeException: java.lang.NullPointerException [java] [script] at lucee.commons.io.res.ResourcesImpl.getResource(ResourcesImpl.java:163) [java] [script] at lucee.runtime.config.ConfigImpl.getResource(ConfigImpl.java:2040) [java] [script] at lucee.runtime.config.SingleContextConfigWeb.getResource(SingleContextConfigWeb.java:634) [java] [script] at lucee.runtime.functions.system.CallStackGet.abs(CallStackGet.java:174) [java] [script] at lucee.runtime.functions.system.CallStackGet._getTagContext(CallStackGet.java:159) [java] [script] at lucee.runtime.functions.system.GetCurrentContext.call(GetCurrentContext.java:34) [java] [script] at dump_cfc$cf.udfCall1(/Dump.cfc:78) [java] [script] at dump_cfc$cf.udfCall(/Dump.cfc) [java] [script] at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) [java] [script] at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344) [java] [script] at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:207) [java] [script] at lucee.runtime.ComponentImpl._call(ComponentImpl.java:685) [java] [script] at lucee.runtime.ComponentImpl._call(ComponentImpl.java:572) [java] [script] at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1952) [java] [script] at lucee.runtime.tag.CFTag.cfcStartTag(CFTag.java:384) [java] [script] at lucee.runtime.tag.CFTag.doStartTag(CFTag.java:178) [java] [script] at writedump_cfm$cf.udfCall(/writeDump.cfm:25) [java] [script] at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) [java] [script] at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344) [java] [script] at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217) [java] [script] at lucee.runtime.functions.system.CFFunction.call(CFFunction.java:106) [java] [script] at functions.imagedrawpoint_cfc$cf.udfCall(/test/functions/ImageDrawPoint.cfc:5)
https://github.com/lucee/Lucee/blob/6.0/core/src/main/java/lucee/runtime/functions/system/CallStackGet.java#L174
`res = config.getResource(ps.getDisplayPath());` is causing the error
I'm not sure if this is caused by the bug with the extension updates requiring Lucee to be restarted, as the script runner currently installs the extension after lucee starts, rather than deploying on start