cancel
Showing results for 
Search instead for 
Did you mean: 

Exception in thread "Background Batch Spiller 0"

Former Member
0 Kudos

Hi,

Is there a way to close background threads when using backend report engine components? We have a Domino Java agent that accesses a Crystal Reports report and exports data to pdf. The agent runs successfully and the report is created without any issues but we are seeing a bunch of exceptions in the Domino server console when the agent runs:

[11E4:0010-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error: Exception in thread "Background Batch Spiller 0"

[11E4:0011-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error: java.lang.IllegalMonitorStateException

[11E4:0013-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:138)

[11E4:0015-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1250)

[11E4:0017-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:442)

[11E4:0019-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:417)

[11E4:001B-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at com.crystaldecisions.reports.saveddata.saveddata.Batch$d.if(SourceFile:943)

[11E4:001D-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at com.crystaldecisions.reports.saveddata.saveddata.Batch$d.a(SourceFile:957)

[11E4:001F-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at com.crystaldecisions.reports.saveddata.saveddata.Batch$d.run(SourceFile:991)

[11E4:0021-14D8] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.lang.Thread.run(Thread.java:761)

[11E4:0023-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error: Exception in thread "Background Batch Spiller 1"

[11E4:0024-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error: java.lang.IllegalMonitorStateException

[11E4:0026-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error: Exception in thread "Background Batch Spiller 2"

[11E4:0027-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:138)

[11E4:0028-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error: java.lang.IllegalMonitorStateException

[11E4:002B-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1250)

[11E4:002C-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:138)

[11E4:002F-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:442)

[11E4:0030-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1250)

[11E4:0033-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:417)

[11E4:0034-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:442)

[11E4:0037-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at com.crystaldecisions.reports.saveddata.saveddata.Batch$d.if(SourceFile:943)

[11E4:0038-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:417)

[11E4:003B-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at com.crystaldecisions.reports.saveddata.saveddata.Batch$d.a(SourceFile:957)

[11E4:003C-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at com.crystaldecisions.reports.saveddata.saveddata.Batch$d.if(SourceFile:943)

[11E4:003F-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at com.crystaldecisions.reports.saveddata.saveddata.Batch$d.run(SourceFile:991)

[11E4:0040-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at com.crystaldecisions.reports.saveddata.saveddata.Batch$d.a(SourceFile:957)

[11E4:0043-1B74] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.lang.Thread.run(Thread.java:761)

[11E4:0044-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at com.crystaldecisions.reports.saveddata.saveddata.Batch$d.run(SourceFile:991)

[11E4:0047-1708] 03/31/2015 11:08:04 AM  Agent Manager: Agent  error:  at java.lang.Thread.run(Thread.java:761)

The agent calls reportClientDoc.close(); as needed. Is there anything else needed? Our client is concerned that these background threads might cause their Domino server to crash unexpectedly. Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I'm hoping that someone from SAP can provide some direction on how to resolve this issue. Our client is trying to upgrade their server to Windows Server 2012 and the application that utilizes Crystal Reports is the last thing holding them up. They have to keep one of their old servers up and running until we can resolve this issue, which is costing them additional money.

The above errors are intermittent and it appears that even after we see these errors, the report is still generating a report correctly (which makes sense since the above errors seem to deal with stubborn threads that won't close after all the agent processing is complete). The client is hesitant to deploy the new version of their application on a production server because we've found that after running the agent 2-3 times (within the course of 1 hour), it will eventually never complete execution. This will result in a need to restart the Domino server (which is a bad circumstance for a production server). Now in a real life scenario, this agent would only run once a day on schedule, and the Crystal Reports processing would only occur once a month (The agent contains logic that determines when the CR reports should run) but they are still concerned about the background threads not terminating.

Any assistance is greatly appreciated! Thanks!