EasyBeans is an open source implementation by ObjectWeb of the EJB3 container specification. 
X Wiki
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: EZB-118
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Florent BENOIT
Reporter: Florent BENOIT
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
EasyBeans

NPE when stopping HSQL database within Tomcat

Created: 06/Oct/06 01:21 PM   Updated: 18/Sep/08 04:14 AM
Component/s: Core
Affects Version/s: EasyBeans 1.0 M3
Fix Version/s: EasyBeans 1.0 M4


 Description  « Hide
The following exception may happen when stopping HSQL :
Exception in thread "HSQLDB Timer @a97f68" java.lang.NullPointerException
        at org.hsqldb.lib.HsqlTimer.nextTask(Unknown Source)
        at org.hsqldb.lib.HsqlTimer$TaskRunner.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:595)

The fact is that these threads are not stopped by HSQL and Tomcat classloader will set to null some static field in order to make GCC free some references.
Then, HSQL thread throw a NPE with this static null reference.

DatabaseManager.getTimer().shutDown(); can be called to stop this timer thread.

 All   Comments   Change History   Related Builds      Sort Order:
Florent BENOIT - 10/Oct/06 04:20 PM
fixed

Florent BENOIT - 01/May/08 08:11 PM
Was fixed in a previous version


Copyright © 2006-2007 EasyBeans / ObjectWeb consortium

http://www.easybeans.org