java.lang.NullPointerException Error

Description

I have been getting java.lang.NullPointerException Error for the past 1 week with no trace and no clue of what is causing it

I even upgrade to 5.2.2.71-RC thinking that will solve it, it did not.

The error comes up randomly and goes away by itself

Environment

Linux (3.16.0-4-amd64) 64bit
Lucee 5.2.7.63

Attachments

7
  • 05 Aug 2018, 04:36 pm
  • 24 Jul 2018, 03:01 pm
  • 02 Aug 2017, 06:45 pm
  • 02 Aug 2017, 04:13 pm
  • 02 Aug 2017, 04:11 pm
  • 02 Aug 2017, 04:07 pm
  • 02 Aug 2017, 02:03 pm

Activity

Show:

Michael Offner 6 April 2020 at 17:55

is the problem solved for you, the NPE pointed out in the ticket are all solved. We will close the ticket within a week, in case we get no negative feedback.

Michael Offner 7 August 2018 at 11:48

Michael Offner 7 August 2018 at 11:35

addressed the SpoolerEngine NPE
https://github.com/lucee/Lucee/commit/22a570e12bb20e4b24891b7c4ec4275c8e0f55a1

but it is not sure if it addressed the original issue of the ticket, because it is still not clear what the original issue is.

Ionut Ivan 6 August 2018 at 08:26

Hi ,
I'm not sure either, but this is the error I found inside BugLogHQ:

lucee.runtime.exp.NativeException: java.lang.NullPointerException at lucee.runtime.type.QueryImpl.getCurrentrow(QueryImpl.java:1082) at includes.inc_landing_home_cfm$cf.call(/includes/inc_landing_home.cfm:32) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:933) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823) at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:805) at index_cfm$cf.call(/index.cfm:55) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:933) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823) at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:218) at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2464) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2454) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2427) at lucee.runtime.engine.Request.exe(Request.java:44) at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1090) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1038) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:676) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException ... 39 more

Also, I do not use email functions (cfmail).

P.S. no errors have occurred today (and I have not made any changes or reboots...)

Brad Wood 6 August 2018 at 04:23

The fact that your catalina out file is so big might be a problem of its own. I'd inspect errors are making the file so large in the first place and work on eliminating those. Who knows, but perhaps that will affect your NPE error.

Are you able to reproduce this NPE error on demand, or at least with enough frequency to experiment in a test environment? Does it happen on more than one server? Does it happen under load. Does it happen on certain pages? Perhaps you can add in some basic logging to your catalina file like so:

systemOutput( 'Starting menu for request #cgi.script_name#', true );

to narrow down what pages are causing this error and what part of the code is the commonality. Just be careful logging on production as you can get a lot of data quickly.

Cannot Reproduce

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

Affects versions

Created 2 August 2017 at 14:06
Updated 27 April 2020 at 18:54
Resolved 20 April 2020 at 08:34

Flag notifications