Regression - null pointer exception sometimes when calling systemCacheClear( "all" )

Description

I received this error in CommandBox when calling systemCacheClear( "all" ) after updating to 5.3.5.92.

lucee.runtime.exp.NativeException: java.lang.NullPointerException at lucee.runtime.PageSourcePool.clearPages(PageSourcePool.java:218) at lucee.runtime.functions.system.PagePoolClear.clear(PagePoolClear.java:95) at lucee.runtime.functions.system.PagePoolClear.clear(PagePoolClear.java:87) at lucee.runtime.functions.system.PagePoolClear.clear(PagePoolClear.java:60) at lucee.runtime.functions.system.PagePoolClear.call(PagePoolClear.java:46) at lucee.runtime.functions.system.SystemCacheClear.call(SystemCacheClear.java:49) at _command_box334.cfml.system.bootstrap_cfm$cf.call(/__commandbox_root/.Command Box/cfml/system/Bootstrap.cfm:170) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:944) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:836) at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:818) at 8bkpusz9nmjp.call(Unknown Source) at lucee.runtime.compiler.Renderer.tag(Renderer.java:108) at lucee.runtime.compiler.Renderer.script(Renderer.java:98) at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:63) at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:194) at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:328) at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:153) at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:552) Caused by: java.lang.NullPointerException ... 18 more

The error doesn't happen all the time, but there must be some scenario where the NPE happens. I've never seen this error prior to 5.3.5

Environment

None

Activity

Show:

Brad Wood 1 April 2020 at 17:22

Can someone update the fix version for this?

Brad Wood 31 March 2020 at 15:55

Thanks guys!

Michael Offner 31 March 2020 at 14:14

Problem was with the move of using SofReferences and we missed to check if they exist or not, we did check ALL uses of SoftReference for this.

Michael Offner 31 March 2020 at 14:13

this is fixed as part of this ticket

https://luceeserver.atlassian.net/browse/LDEV-2774

Duplicate

Details

Assignee

Reporter

Priority

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

Affects versions

Created 31 March 2020 at 02:13
Updated 9 April 2020 at 18:28
Resolved 31 March 2020 at 14:15

Flag notifications