Has anyone encountered this exception before and have a solution?

I'm trying read and write into a BINARY(1000) column:


preparedStatement.setBinaryStream(4, new ByteArrayInputStream(buffer, 
bufferOffset, bufferLen));


This only occurs after about 60K updates.


thanks,

pat



2015-06-24 23:36:06,202 ERROR 

org.h2.jdbc.JdbcSQLException: General error: 
"java.lang.NullPointerException" [50000-187]

at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)

at org.h2.message.DbException.get(DbException.java:168)

at org.h2.message.DbException.convert(DbException.java:295)

at org.h2.message.DbException.toSQLException(DbException.java:268)

at org.h2.message.TraceObject.logAndConvert(TraceObject.java:352)

at 
org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:148)

at com.gondola.impl.H2dbStorage.appendLogEntry(H2dbStorage.java:211)

at 
com.gondola.core.SaveQueue$MyMessageHandler.appendEntryRequest(SaveQueue.java:286)

at com.gondola.core.Message.handle(Message.java:346)

at com.gondola.core.SaveQueue$Worker.run(SaveQueue.java:220)

Caused by: java.lang.NullPointerException

at org.h2.engine.Session.removeTemporaryLobs(Session.java:550)

at org.h2.engine.Session.commit(Session.java:515)

at org.h2.command.Command.stop(Command.java:152)

at org.h2.command.Command.executeUpdate(Command.java:284)

at 
org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:157)

at 
org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:143)

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to