From: Jack Park <jackpark@th...> - 2002-01-04 19:10:48
I just committed to CVS changes based on a move from the old HypersonicSQL
hsql.jar to the latest hsqldb.1.6.jar
Even that jar is soon to be upgraded to fix a bug where it gets a null
pointer exception when shutting down. In any case, required import
statements were changed, as was the url to open the database.
I made one further change:
nexDB-template.script and nexDB.script now go in a "data" directory, which
is also the directory used by SimpleGrove. That means you now put the
scripts there and kill all old database scripts in the root (install)
For hsql to work at all, the nexDB.script must be where it can find it. If
it doesn't find the script, you will likely think you must build an sql
table builder of your own. That should never be necessary. hsqldb creates
the tables the very first time you open a connection to a given script --
which, presently, is hardwired in HsqlCommander. On subsequent connections,
it doesn't need to create tables. In all cases, hsqldb uses nexDB.script as
its log file.
I made another important change:
The database is now self initializing. modified the code in
XTMElementBuilder so that it now detects if the number table is
initialized. If now, it does so itself.
I therefore removed the InitializeDB file menu item. It's not necessary now.
There exists one interesting bug, at least when you import discovery.xtm --
the sample topic map.
At the end of the import, everything is fine and the system begins to ship
information back to client, but is halted because the parse thread has
crashed. I modified the source code to print a stack trace now. Somewhere
down in xerces, a null pointer was detected. The system stops.
I have no idea why, given that discovery.xtm has loaded fine in the past.
However, all is not lost. Just make a New TopicMap or reboot the client and
the topic map will be displayed.
I am thinking that this bug, whatever it is, is not a show stopper, but
must be ironed out. It could be something as simple as a buggy xerces.
Final therapy to be determined.