NPE at lucee.runtime.spooler.SpoolerEngineImpl.getFile()

Description

After upgrading to Lucee 5.2.4.37, we started receiving hundreds of these errors in lucee-stderr.XXXX-XX-XX.log:

Exception in thread "Thread-NNNNN" java.lang.NullPointerException
at lucee.runtime.spooler.SpoolerEngineImpl.getFile(SpoolerEngineImpl.java:254)
at lucee.runtime.spooler.SpoolerEngineImpl.store(SpoolerEngineImpl.java:223)
at lucee.runtime.spooler.SpoolerEngineImpl.execute(SpoolerEngineImpl.java:625)
at lucee.runtime.spooler.SpoolerEngineImpl$TaskThread.run(SpoolerEngineImpl.java:536)

The servers this is happening on eahc send out ~50k emails/day (CFMAIL), and while most emails are still being delivered, a great many are falling through the cracks.

Environment

Windows Server 2016 64-bit
Tomcat/8.5.23
Java 1.8.0_152

Activity

Pothys - MitrahSoft 4 May 2018 at 14:35

Hi ,

I run the above code I'm getting NPE as well.

Casey Yancey 11 April 2018 at 21:19
Edited

fyi, to replicate (5.2.6.35-SNAPSHOT):

i ran one of your tests to create a "bad email" that shows up in the scheduler https://github.com/lucee/Lucee/blob/9d9aff960e6f3eb68ac8d817291c00bc1015b51d/test/tickets/LDEV1537/test2.cfm

then attempted to execute the "failed" mail task, to which I get this exact same NPE exception
pseudo code:

Michael Offner 6 November 2017 at 09:58

most likely a concurrency issue that is hard to reproduce, could only happen in a certain JVM implementation.
ATM there are 2 objects that could cause the issue, with 5.2.6.16-SNAPSHOT we will change the code, so the stacktrace will show us which object exatly causes this.
Will inform here asap version is avialble for testing.

Pothys - MitrahSoft 6 November 2017 at 08:20

Hi ,

I've analyzed this ticket & I couldn't able to reproduce the issue. Mails were working fine for me. Please add detailed description to reproduce the issue it helps me to find out the issue

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 6 November 2017 at 01:38
Updated 4 May 2018 at 21:03
Resolved 4 May 2018 at 21:03