I am working on a Java application that will use some Hibernate (annotated by JPA) classes, backed by a HSQLDB datasource (DBCP BasicDataSource). I am trying to manually tweak the HSQLDB ".script" file (which I can't for the life of me find the authoritative name for by web searching/reading the docs; it's only mentioned in passing) to rapidly add some new in-memory tables for testing. The problem is, any errors that occur when HSQLDB is running this script don't seem to be reported or logged anywhere. For instance, if I have an INSERT statement within that .script (a very common usage scenario to set up an initial dataset), and there is a problem with it (like incorrect date format, incorrect number of columns, etc.), nothing is ever reported, and there is no exception. I only notice later on when the HQL query I construct in the test case throws an exception due to a NULL result, which the program is not expecting since the data set should be initialized properly at that point.
The only reason I even figured out there was a problem with the INSERT statement was by performing them on a raw SQLConnection on the HSQLDB datasource, rather than doing them in the .script file, and observing the SQLExceptions that were thrown at that point.
Logging in general seems to be working and HSQLDB is logging tons of other messages of all thresholds very frequently during startup to stdout. So I'm flummoxed as to why those don't include obvious SQLExceptions that must be getting thrown at some point.
Any ideas on what to try? Some configuration I'm missing, perhaps? I tried searching all through the HSQLDB docs to no avail, but that doesn't necessarily mean the answer isn't there. In case it matters, the usage scenario I'm trying to get this working for is a Spring application context initialized within a JUnit test case (via a FileSystemXmlApplicationContext object). Thanks for any help.