由NullPointerException引起的一般错误[50000-175]

时间:2014-02-12 10:14:23

标签: java h2

我在客户端 - 服务器模式下使用H2数据库。服务器的版本为1.3.175,客户端的版本为1.3.168。

一切似乎都运行良好,但我在执行某些查询时遇到异常:

  

org.h2.jdbc.JdbcSQLException:一般错误:“java.lang.NullPointerException”[50000-175]       at org.h2.message.DbException.getJdbcSQLException(DbException.java:332)       在org.h2.message.DbException.get(DbException.java:161)       at org.h2.message.DbException.convert(DbException.java:284)       at org.h2.server.TcpServerThread.sendError(TcpServerThread.java:218)       在org.h2.server.TcpServerThread.run(TcpServerThread.java:158)       在java.lang.Thread.run(未知来源)

     

引起:java.lang.NullPointerException       在org.h2.expression.Function.getCost(Function.java:2391)       在org.h2.expression.CompareLike.getCost(CompareLike.java:417)       at org.h2.expression.ConditionAndOr.optimize(ConditionAndOr.java:133)       在org.h2.command.dml.Select.prepare(Select.java:813)       在org.h2.command.Parser.prepareCommand(Parser.java:240)       在org.h2.engine.Session.prepareLocal(Session.java:436)       在org.h2.server.TcpServerThread.process(TcpServerThread.java:260)       在org.h2.server.TcpServerThread.run(TcpServerThread.java:156)       ......还有1个

at org.h2.engine.SessionRemote.done(SessionRemote.java:567)
at org.h2.command.CommandRemote.prepare(CommandRemote.java:67)
at org.h2.command.CommandRemote.<init>(CommandRemote.java:46)
at org.h2.engine.SessionRemote.prepareCommand(SessionRemote.java:439)
at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1109)
at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:74)
at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:264)

感谢您的帮助。

1 个答案:

答案 0 :(得分:2)

这是此版本数据库引擎中的错误,已在revision 5437 of the trunk中修复。

你可以: