NPE lucee.commons.io.log.log4j2.Log4j2Engine.layoutClassDefintion

Description

lucee.runtime.exp.NativeException: java.lang.NullPointerException at lucee.commons.io.log.log4j2.Log4j2Engine.layoutClassDefintion(Log4j2Engine.java:142) at lucee.runtime.listener.ApplicationContextSupport.initLog(ApplicationContextSupport.java:335) at lucee.runtime.listener.ModernApplicationContext.initLog(ModernApplicationContext.java:1757) at lucee.runtime.listener.ModernApplicationContext.getLog(ModernApplicationContext.java:1731) at lucee.runtime.PageContextImpl.getLog(PageContextImpl.java:3754) at lucee.runtime.tag.Log.doStartTag(Log.java:217)

Environment

None

Activity

Show:

Pothys - MitrahSoft 17 August 2022 at 14:27
Edited

I've checked this ticket and replicated the issue in my local.

In 5.3.10.54-SNAPSHOT, Using the this.logs in Application.cfc throws NullPointerException.
Stacktrace from 5.3.10.54-SNAPSHOT

 

But In 5.3.10.56-SNAPSHOT, Using this.logs in Application.cfc always returns a blank page with status code 500.
But I can see there are NPE logs in lucee-server\context\logs\application.log with a different stacktrace

The log from lucee-server\context\logs\application.log in 5.3.10.56-SNAPSHOT

Details

Assignee

Reporter

Priority

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

Created 17 August 2022 at 10:22
Updated 7 September 2022 at 07:18