I have an app that creates a database if not present by copying a blank database, running a set of create table statements and then running a set of inserts to add the data. This has been running successfully for about a year using build 1.4.198. I have recently upgraded to 1.4.200 and I get a nullpointerexception with a JdbcSQLNonTransientException. The log is:
org.h2.jdbc.JdbcSQLNonTransientException: General error: "java.lang.NullPointerException" [50000-200]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
at org.h2.message.DbException.get(DbException.java:194)
at org.h2.message.DbException.convert(DbException.java:347)
at org.h2.server.TcpServerThread.sendError(TcpServerThread.java:234)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:185)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException
at org.h2.command.dml.TableValueConstructor.isEverything(TableValueConstructor.java:262)
at org.h2.command.dml.Query.collectDependencies(Query.java:935)
at org.h2.command.CommandList.getDependencies(CommandList.java:123)
at org.h2.engine.Session.startStatementWithinTransaction(Session.java:1819)
at org.h2.command.Command.executeUpdate(Command.java:245)
at org.h2.server.TcpServerThread.process(TcpServerThread.java:406)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:183)
... 1 more
at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
at org.h2.engine.SessionRemote.done(SessionRemote.java:611)
at org.h2.command.CommandRemote.executeUpdate(CommandRemote.java:237)
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:228)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:201)
at application.DatabaseManager.createDatabase(DatabaseManager.java:153)
at application.Main.start(Main.java:35)