[h2] Re: NPE when shutting H2 down after integration tests run

2015-02-20 Thread Andre de Lima e Silva
Sorry guys for reopening this.

I'm having the same issue on 1.3.173.

I think my shutdown script, drop all objects, comes before the rollback 
statement, so I think it could be looking for tables that does not exist 
anymore, that's the NPE.

If anyone has any clue about it I want to know :).


Em segunda-feira, 3 de junho de 2013 14:27:41 UTC-3, Thomas Mueller 
escreveu:

 Hi,

 The change in the OSGi part is issue 365. I understand that OSGi issues 
 are annoying. Personally, I avoid using OSGi whenever possible - as well as 
 using javax by the way :-)

 The reason for the NPE seems to be caused by rolling back a transaction 
 while the session is already closed. That's weird.

 What is your database URL?

 Regards,
 Thomas




 On Monday, June 3, 2013, Martin Lichtin wrote:

 Can't say yet, I am in the process of upgrading to 1.3.172. But there is 
 a new OSGi dependency, I am getting:

 Caused by: org.osgi.framework.BundleException: Unresolved constraint in 
 bundle org.h2 [71]: Unable to resolve 71.0: missing requirement [71.0] 
 osgi.wiring.package; 
 ((osgi.wiring.package=org.osgi.service.jdbc)(version=1.0.0))

 Need to figure this one out first...

 On Monday, June 3, 2013 9:27:02 AM UTC+2, Kartweel wrote:

  Sorry, so do you mean you are still getting a very similar stack in 
 1.3.172?, You just don't have a record of it?

 On 3/06/2013 3:12 PM, Martin Lichtin wrote:
  
 Yeah, you're right. I already updated the version, but the stack indeed 
 came from 1.3.170.

 On Monday, June 3, 2013 8:58:13 AM UTC+2, Kartweel wrote: 

  The stack trace indicates version 1.3.170 ?
  
  
   -- 
 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?hl=en-US.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  



-- 
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.


Re: [h2] Re: NPE when shutting H2 down after integration tests run

2013-06-03 Thread Ryan How

The stack trace indicates version 1.3.170 ?


On 3/06/2013 5:51 AM, Martin Lichtin wrote:

We are using 1.3.172 and have seen a very similar NPE.

2013-06-01 14:48:14,035 [Atomikos:1 ] WARN XAResourceTransaction - XA 
resource 'JDBC-H2RuleExecCamelITest': rollback for XID 
'3137322E32322E33302E37332E746D30303030313030303137:3137322E32322E33302E37332E746D31' 
raised 0: unknown
javax.transaction.xa.XAException: General error: 
java.lang.NullPointerException; SQL statement:

ROLLBACK [5-170]
at 
org.h2.jdbcx.JdbcXAConnection.convertException(JdbcXAConnection.java:397)
at 
org.h2.jdbcx.JdbcXAConnection.rollback(JdbcXAConnection.java:282)
at 
com.atomikos.datasource.xa.XAResourceTransaction.rollback(XAResourceTransaction.java:703)
at 
com.atomikos.icatch.imp.RollbackMessage.send(RollbackMessage.java:70)
at 
com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage.java:110)
at 
com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.java:87)
at 
com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagator.java:66)
at 
com.atomikos.icatch.imp.CoordinatorStateHandler.rollback(CoordinatorStateHandler.java:700)
at 
com.atomikos.icatch.imp.ActiveStateHandler.onTimeout(ActiveStateHandler.java:102)
at 
com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:930)
at 
com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer.java:113)
at 
com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:100)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)
Caused by: org.h2.jdbc.JdbcSQLException: General error: 
java.lang.NullPointerException; SQL statement:

ROLLBACK [5-170]
at 
org.h2.message.DbException.getJdbcSQLException(DbException.java:329)

at org.h2.message.DbException.get(DbException.java:158)
at org.h2.message.DbException.convert(DbException.java:281)
at org.h2.command.Command.executeUpdate(Command.java:234)
at 
org.h2.jdbc.JdbcConnection.rollbackInternal(JdbcConnection.java:1423)

at org.h2.jdbc.JdbcConnection.rollback(JdbcConnection.java:464)
at 
org.h2.jdbcx.JdbcXAConnection.rollback(JdbcXAConnection.java:269)

... 13 more
Caused by: java.lang.NullPointerException
at org.h2.table.RegularTable.removeRow(RegularTable.java:345)
at org.h2.engine.UndoLogRecord.undo(UndoLogRecord.java:98)
at org.h2.engine.Session.rollbackTo(Session.java:529)
at org.h2.engine.Session.rollback(Session.java:506)
at 
org.h2.command.dml.TransactionCommand.update(TransactionCommand.java:49)
at 
org.h2.command.CommandContainer.update(CommandContainer.java:75)

at org.h2.command.Command.executeUpdate(Command.java:230)
... 16 more

On Thursday, September 20, 2012 8:12:03 PM UTC+2, Thomas Mueller wrote:

Hi,

Does it happend with the latest version as well?

Regards,
Thomas

--
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




--
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [h2] Re: NPE when shutting H2 down after integration tests run

2013-06-03 Thread Martin Lichtin
Yeah, you're right. I already updated the version, but the stack indeed 
came from 1.3.170.

On Monday, June 3, 2013 8:58:13 AM UTC+2, Kartweel wrote:

  The stack trace indicates version 1.3.170 ?


-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [h2] Re: NPE when shutting H2 down after integration tests run

2013-06-03 Thread Ryan How
Sorry, so do you mean you are still getting a very similar stack in 
1.3.172?, You just don't have a record of it?


On 3/06/2013 3:12 PM, Martin Lichtin wrote:
Yeah, you're right. I already updated the version, but the stack 
indeed came from 1.3.170.


On Monday, June 3, 2013 8:58:13 AM UTC+2, Kartweel wrote:

The stack trace indicates version 1.3.170 ?

--
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




--
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [h2] Re: NPE when shutting H2 down after integration tests run

2013-06-03 Thread Martin Lichtin
Can't say yet, I am in the process of upgrading to 1.3.172. But there is a 
new OSGi dependency, I am getting:

Caused by: org.osgi.framework.BundleException: Unresolved constraint in 
bundle org.h2 [71]: Unable to resolve 71.0: missing requirement [71.0] 
osgi.wiring.package; 
((osgi.wiring.package=org.osgi.service.jdbc)(version=1.0.0))

Need to figure this one out first...

On Monday, June 3, 2013 9:27:02 AM UTC+2, Kartweel wrote:

  Sorry, so do you mean you are still getting a very similar stack in 
 1.3.172?, You just don't have a record of it?

 On 3/06/2013 3:12 PM, Martin Lichtin wrote:
  
 Yeah, you're right. I already updated the version, but the stack indeed 
 came from 1.3.170.

 On Monday, June 3, 2013 8:58:13 AM UTC+2, Kartweel wrote: 

  The stack trace indicates version 1.3.170 ?
  
  
  

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




[h2] Re: NPE when shutting H2 down after integration tests run

2013-06-03 Thread Thomas Mueller
Hi,

The change in the OSGi part is issue 365. I understand that OSGi issues are
annoying. Personally, I avoid using OSGi whenever possible - as well as
using javax by the way :-)

The reason for the NPE seems to be caused by rolling back a transaction
while the session is already closed. That's weird.

What is your database URL?

Regards,
Thomas




On Monday, June 3, 2013, Martin Lichtin wrote:

 Can't say yet, I am in the process of upgrading to 1.3.172. But there is a
 new OSGi dependency, I am getting:

 Caused by: org.osgi.framework.BundleException: Unresolved constraint in
 bundle org.h2 [71]: Unable to resolve 71.0: missing requirement [71.0]
 osgi.wiring.package;
 ((osgi.wiring.package=org.osgi.service.jdbc)(version=1.0.0))

 Need to figure this one out first...

 On Monday, June 3, 2013 9:27:02 AM UTC+2, Kartweel wrote:

  Sorry, so do you mean you are still getting a very similar stack in
 1.3.172?, You just don't have a record of it?

 On 3/06/2013 3:12 PM, Martin Lichtin wrote:

 Yeah, you're right. I already updated the version, but the stack indeed
 came from 1.3.170.

 On Monday, June 3, 2013 8:58:13 AM UTC+2, Kartweel wrote:

  The stack trace indicates version 1.3.170 ?


   --
 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 javascript:_e({},
 'cvml', 'h2-database%2bunsubscr...@googlegroups.com');.
 To post to this group, send email to 
 h2-database@googlegroups.comjavascript:_e({}, 'cvml', 
 'h2-database@googlegroups.com');
 .
 Visit this group at http://groups.google.com/group/h2-database?hl=en-US.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




[h2] Re: NPE when shutting H2 down after integration tests run

2013-06-02 Thread Martin Lichtin
We are using 1.3.172 and have seen a very similar NPE.

2013-06-01 14:48:14,035 [Atomikos:1 ] WARN XAResourceTransaction - XA 
resource 'JDBC-H2RuleExecCamelITest': rollback for XID 
'3137322E32322E33302E37332E746D30303030313030303137:3137322E32322E33302E37332E746D31'
 
raised 0: unknown 
javax.transaction.xa.XAException: General error: 
java.lang.NullPointerException; SQL statement: 
ROLLBACK [5-170] 
at 
org.h2.jdbcx.JdbcXAConnection.convertException(JdbcXAConnection.java:397) 
at 
org.h2.jdbcx.JdbcXAConnection.rollback(JdbcXAConnection.java:282) 
at 
com.atomikos.datasource.xa.XAResourceTransaction.rollback(XAResourceTransaction.java:703)
 

at 
com.atomikos.icatch.imp.RollbackMessage.send(RollbackMessage.java:70) 
at 
com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage.java:110) 

at 
com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.java:87) 
at 
com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagator.java:66) 

at 
com.atomikos.icatch.imp.CoordinatorStateHandler.rollback(CoordinatorStateHandler.java:700)
 

at 
com.atomikos.icatch.imp.ActiveStateHandler.onTimeout(ActiveStateHandler.java:102)
 

at 
com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:930) 
at 
com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer.java:113) 

at 
com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:100) 
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 

at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 

at java.lang.Thread.run(Thread.java:722) 
Caused by: org.h2.jdbc.JdbcSQLException: General error: 
java.lang.NullPointerException; SQL statement: 
ROLLBACK [5-170] 
at 
org.h2.message.DbException.getJdbcSQLException(DbException.java:329) 
at org.h2.message.DbException.get(DbException.java:158) 
at org.h2.message.DbException.convert(DbException.java:281) 
at org.h2.command.Command.executeUpdate(Command.java:234) 
at 
org.h2.jdbc.JdbcConnection.rollbackInternal(JdbcConnection.java:1423) 
at org.h2.jdbc.JdbcConnection.rollback(JdbcConnection.java:464) 
at 
org.h2.jdbcx.JdbcXAConnection.rollback(JdbcXAConnection.java:269) 
... 13 more 
Caused by: java.lang.NullPointerException 
at org.h2.table.RegularTable.removeRow(RegularTable.java:345) 
at org.h2.engine.UndoLogRecord.undo(UndoLogRecord.java:98) 
at org.h2.engine.Session.rollbackTo(Session.java:529) 
at org.h2.engine.Session.rollback(Session.java:506) 
at 
org.h2.command.dml.TransactionCommand.update(TransactionCommand.java:49) 
at org.h2.command.CommandContainer.update(CommandContainer.java:75) 
at org.h2.command.Command.executeUpdate(Command.java:230) 
... 16 more 

On Thursday, September 20, 2012 8:12:03 PM UTC+2, Thomas Mueller wrote:

 Hi,

 Does it happend with the latest version as well?

 Regards,
 Thomas


-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.