Hi, Just in case it would help, here's another debug log of what I think is the same problem (JBoss 4.0.2, Hibernate3). It's getting the identifier from sequence, but for some reason, no insert statement is made.
(In this case I'm trying to save a new instance of Paper class from stateless session bean) | 2005-05-13 16:36:57,875 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] JNDI lookup: hibernate/HibernateFactory | 2005-05-13 16:36:57,875 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] lookup: uid=42e4e57203d644650103d64491890000 | 2005-05-13 16:36:57,890 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization | 2005-05-13 16:36:57,890 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4571100847616000 | 2005-05-13 16:36:57,906 DEBUG [org.hibernate.transaction.JTATransaction] begin | 2005-05-13 16:36:57,906 DEBUG [org.hibernate.transaction.JTATransaction] Looking for UserTransaction under: UserTransaction | 2005-05-13 16:36:57,906 DEBUG [org.hibernate.transaction.JTATransaction] Obtained UserTransaction | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.event.def.DefaultSaveOrUpdateEventListener] saving transient instance | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0) | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.jdbc.AbstractBatcher] opening JDBC connection | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.SQL] select nextval ('papers_paper_id_seq') | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.jdbc.AbstractBatcher] preparing statement | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.id.SequenceGenerator] Sequence identifier generated: 5 | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1) | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.jdbc.AbstractBatcher] closing statement | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 5, using strategy: org.hibernate.id.SequenceGenerator | 2005-05-13 16:36:57,921 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] saving [fi.flowman.system.model.Paper#5] | 2005-05-13 16:36:57,937 DEBUG [org.hibernate.engine.Cascades] id unsaved-value: null | 2005-05-13 16:36:57,968 DEBUG [org.hibernate.jdbc.JDBCContext] running Session.finalize() | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.transaction.JTATransaction] commit | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.impl.SessionImpl] closing session | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.jdbc.AbstractBatcher] closing JDBC connection (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0) | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.transaction.CacheSynchronization] transaction before completion callback | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.transaction.CacheSynchronization] automatically flushing session | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.impl.SessionImpl] automatically flushing session | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.jdbc.JDBCContext] before transaction completion | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.impl.SessionImpl] before transaction completion | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.transaction.CacheSynchronization] transaction after completion callback, status: 3 | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.jdbc.JDBCContext] after transaction completion | 2005-05-13 16:36:58,015 DEBUG [org.hibernate.impl.SessionImpl] after transaction completion | 2005-05-13 16:37:01,718 DEBUG [org.hibernate.jdbc.JDBCContext] running Session.finalize() | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877801#3877801 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877801 ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user