I responded to this but there was no feedback from
Stephen.
The NPE can happen only if the process to reopen the database
during shutdown compact fails. Such a failure should not happen, but in any case
you can patch the code for clearStructures() in Database.java to avoid the NPE
(see below). The program will then throw the exception that caused the reopen
process to fail and you can report it. In recent weeks, unexpected
programs have been traced to failure to upgrade the old databases fully. So if
you are using an old database, follow the updated instructions in the
Advanced Topics chapter of the new Guide in RC6c package. Once you have done
these, please report the results.
Fred
void clearStructures() {
if (tTable !=
null){
for (int i = 0; i < tTable.size(); i++) { Table table = (Table) tTable.get(i);
table.dropTriggers();
} }
|
Title: NullPointerException during shutdown compact
- [Hsqldb-developers] NullPointerException during shutdown c... Stephen Chen
- RE: [Hsqldb-developers] NullPointerException during s... Andrew Chandler
- fredt