It appears that Derby is throwing the NullPointerException when an SQL Exception is raised. You may want to consider getting a newer version of Derby or switching to another database.
--Gordon
[Message sent by forum member 'gyorke']
http://forums.java.net/jive/thread.jspa?messageID=470466