EasyBeans

NPE when stopping HSQL database within Tomcat

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: EasyBeans 1.0 M3
  • Fix Version/s: EasyBeans 1.0 M4
  • Component/s: Core
  • 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.
    Show
    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.

Activity

Hide
Florent BENOIT added a comment - 10/Oct/06 4:20 PM
fixed
Show
Florent BENOIT added a comment - 10/Oct/06 4:20 PM fixed
Hide
Florent BENOIT added a comment - 01/May/08 8:11 PM
Was fixed in a previous version
Show
Florent BENOIT added a comment - 01/May/08 8:11 PM Was fixed in a previous version

People

Dates

  • Created:
    06/Oct/06 1:21 PM
    Updated:
    18/Sep/08 4:14 AM
    Resolved:
    10/Oct/06 4:20 PM