I'm getting an error, org.h2.jdbc.JdbcSQLNonTransientException: General 
error: "java.lang.NullPointerException", when trying to run an integration 
test that uses an H2 in-memory DB. The error only occurs with H2, not when 
running the same query against a Postgres instance. Any thoughts on 
resolving this issue?


 Caused by: java.lang.NullPointerException    at 
org.h2.command.query.Query.getParameterValues(Query.java:449)    at 
org.h2.command.query.Query.exists(Query.java:523)    at 
org.h2.expression.condition.ExistsPredicate.getValue(ExistsPredicate.java:25) 
   at 
org.h2.expression.condition.ConditionAndOrN.getValue(ConditionAndOrN.java:128) 
   at 
org.h2.expression.condition.ConditionAndOr.getValue(ConditionAndOr.java:106) 
   at 
org.h2.expression.condition.ConditionAndOr.getValue(ConditionAndOr.java:110) 
   at org.h2.expression.Expression.getBooleanValue(Expression.java:332)   
 at org.h2.table.TableFilter.isOk(TableFilter.java:505)    at 
org.h2.table.TableFilter.next(TableFilter.java:451)    at 
org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1825) 
   at org.h2.result.LazyResult.hasNext(LazyResult.java:78)    at 
org.h2.result.FetchedResult.next(FetchedResult.java:34)    at 
org.h2.command.query.Select.queryFlat(Select.java:728)    at 
org.h2.command.query.Select.queryWithoutCache(Select.java:833)    at 
org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:197)    at 
org.h2.command.query.Query.query(Query.java:494)    at 
org.h2.command.query.Query.query(Query.java:457)    at 
org.h2.index.ViewIndex.find(ViewIndex.java:270)    at 
org.h2.index.ViewIndex.find(ViewIndex.java:153)    at 
org.h2.index.IndexCursor.find(IndexCursor.java:161)    at 
org.h2.table.TableFilter.next(TableFilter.java:394)    at 
org.h2.command.query.Select.gatherGroup(Select.java:517)    at 
org.h2.command.query.Select.queryGroup(Select.java:488)    at 
org.h2.command.query.Select.queryWithoutCache(Select.java:828)    at 
org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:197)    at 
org.h2.command.query.Query.query(Query.java:494)    at 
org.h2.command.query.Query.query(Query.java:457)    at 
org.h2.command.CommandContainer.query(CommandContainer.java:256)    at 
org.h2.command.Command.executeQuery(Command.java:190)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/d71d0dbc-1c06-4931-8edb-48e115609fe6n%40googlegroups.com.

Reply via email to