NPE in CFMLFactoryImpl.getPageContextImpl

Description

When hitting the cfm page using Jmeter with 100 threads, rarely its throws the HTTP status 500 - internal server error.

StackTrace from console

22-Aug-2022 13:04:43.396 SEVERE [ajp-nio-8009-exec-62] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [CFMLServlet] in context with path [] threw exception java.lang.NullPointerException at lucee.runtime.CFMLFactoryImpl.getPageContextImpl(CFMLFactoryImpl.java:182) at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1185) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1163) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Environment

None

Attachments

1
  • 22 Aug 2022, 12:24 pm

Activity

Adam Cameron 
1 November 2022 at 17:04

Our servers aren’t under any sort of load, and we’re getting a few of these an hour.

But anyhoo… we’re due to upgrade from 160 to 166 shortly, so I’ll check if that helps.

Cheers.

Zac Spitzer 
1 November 2022 at 17:01

just some concurrency issues, under load the request being checked may no longer exist

Adam Cameron 
1 November 2022 at 16:30

What’s the actual cause of this?

Fixed

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 22 August 2022 at 12:24
Updated 11 November 2022 at 09:41
Resolved 29 August 2022 at 12:56