Joined: Thu Jun 24, 2004 6:09 pm Posts: 9
|
I have following code which uses Hibernate to persist the order data.
//######
sess.save(order);
sess.flush();
//######
When I run the routine to save order for the first time, it just saves fine. But if I try to save one mor eorder in the same session I am getting following exceptions.
Can some one throw me pointer on this?
Thanks
[6/25/04 11:59:48:843 EDT] 3f8ee029 SystemErr R java.lang.NullPointerException
[6/25/04 11:59:48:843 EDT] 3f8ee029 SystemErr R at oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431)
[6/25/04 11:59:48:843 EDT] 3f8ee029 SystemErr R at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:3528)
[6/25/04 11:59:48:843 EDT] 3f8ee029 SystemErr R at oracle.jdbc.driver.OraclePreparedStatement.clearParameters(OraclePreparedStatement.java:3401)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.resetStatement(WSJdbcConnection.java:1719)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1415)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1381)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:249)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:61)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:56)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.impl.BatcherImpl.prepareBatchStatement(BatcherImpl.java:109)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:460)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:442)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:29)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2414)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2367)
[6/25/04 11:59:48:858 EDT] 3f8ee029 SystemErr R at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2236)
|
|