NPE switching modes

Description

lucee.runtime.exp.NativeException: java.lang.NullPointerException
  at lucee.runtime.tag.Admin.doGetContexts(Admin.java:1245)
  at lucee.runtime.tag.Admin._doStartTag(Admin.java:829)
  at lucee.runtime.tag.Admin.doStartTag(Admin.java:364)
  at overview_cfm$cf.call(/admin/overview.cfm:351)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1058)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:950)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:931)
  at web_cfm$cf.call(/admin/web.cfm:509)

these are both due to config.getScheduler() returning null

"ERROR","Thread-221","06/18/2023","17:20:59","controler","java.lang.NullPointerException;java.lang.NullPointerException
at lucee.runtime.engine.Controler.control(Controler.java:335)
at lucee.runtime.engine.Controler.control(Controler.java:257)
at lucee.runtime.engine.Controler.access$000(Controler.java:61)
at lucee.runtime.engine.Controler$ControlerThread.run(Controler.java:116)
"
"INFO","Thread-223","06/18/2023","17:21:05","startup","Reset CFML Engine"
"ERROR","Thread-223","06/18/2023","17:21:05","controller","java.lang.NullPointerException;java.lang.NullPointerException
at lucee.runtime.engine.CFMLEngineImpl.reset(CFMLEngineImpl.java:1349)
at lucee.runtime.engine.CFMLEngineImpl.reset(CFMLEngineImpl.java:1314)
at lucee.runtime.engine.listener.CFMLServletContextListener.contextDestroyed(CFMLServletContextListener.java:22)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4540)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5179)

Environment

None

Attachments

4

Activity

Show:

Zac Spitzer 21 June 2023 at 14:15

^^^^ that’s due to

Pothys - MitrahSoft 21 June 2023 at 06:49

Now I didn't face the NPE when switching single mode to multi-mode with lucee version 6.0.0.480-SNAPSHOT. But when trying to switch the mode repeatedly, the single mode switch option was not worked, and can't able to switch to the multimode. After the refresh, it works fine.

Michael Offner 20 June 2023 at 10:44

i found that the ResourceAppender (used by log4j to write to files) not closes the stream when stop is called.

i have a good feeling that this resolves the issue, for sure it is an improvement.

Michael Offner 20 June 2023 at 10:11

issue is for sure releasing the log, so most likely in only hapening when you switch from multi to single and back to multi. because only then you try to aquire the web log that was already aquired before.

the config object never really had to release unless you do a restart of Lucee.

Zac Spitzer 20 June 2023 at 10:07

Just gave .478 another whirl, no NPE either for me

Fixed

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

Sprint

Affects versions

Created 18 June 2023 at 15:53
Updated 26 June 2023 at 06:53
Resolved 26 June 2023 at 06:53