Log follows:
14:35:48,774 INFO DatastoreImpl:137 - Mapping resource: foo/bar.hbm.xml
14:35:48,794 INFO XMLHelper:34 - Parsing XML: unknown system id
14:35:48,814 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-1.1.dtd in classpath under cirrus/hibernate/
14:35:48,824 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-1.1.dtd in classpath
14:35:49,064 DEBUG Root:136 - Root class: foo.bar -> FOOOBAR
14:35:49,114 INFO Environment:270 - Hibernate 1.2.3
14:35:49,114 INFO Environment:303 - loaded properties from resource hibernate.properties
14:35:49,124 WARN Environment:264 - Usage of obsolete property: hibernate.use_jdbc_batch no longer supported, use: hibernate.jdbc.batch_size
14:35:49,124 INFO Environment:326 - JVM proxy support: true
14:35:49,124 DEBUG SessionFactoryImpl:116 - Instantiating session factory
14:35:49,144 INFO Dialect:37 - Using dialect: cirrus.hibernate.sql.OracleDialect
14:35:49,174 INFO C3P0ConnectionProvider:64 - C3P0 using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@111.11.11.111:9999:MACHINENAME
14:35:49,174 INFO C3P0ConnectionProvider:65 - Connection properties: {user=FOO, password=BAR}
14:35:49,264 INFO SessionFactoryImpl:147 - Use outer join fetching: true
14:35:50,316 INFO SessionFactoryImpl:170 - Use scrollable result sets: true
14:35:50,316 INFO SessionFactoryImpl:171 - JDBC 2 max batch size: 15
14:35:50,756 DEBUG SessionFactoryObjectFactory:39 - initializing class SessionFactoryObjectFactory
14:35:50,756 DEBUG SessionFactoryObjectFactory:76 - registered: 2008a044f32a564100f32a5648da0000 (unnamed)
14:35:50,756 INFO SessionFactoryObjectFactory:82 - no JDNI name configured
14:35:50,766 INFO SessionFactoryImpl:264 - Query language substitutions: {}
14:35:50,766 DEBUG SessionFactoryImpl:279 - Instantiated session factory
14:35:50,816 DEBUG SessionImpl:334 - opened session
14:35:50,816 DEBUG SessionImpl:523 - saving [foo.bar#2008a044f32a564100f32a5649200001]
14:35:50,827 DEBUG SessionImpl:1616 - flushing session
14:35:50,837 DEBUG SessionImpl:1693 - Flushing entities and processing referenced collections
14:35:50,837 DEBUG SessionImpl:1885 - Processing unreferenced collections
14:35:50,837 DEBUG SessionImpl:1909 - Scheduling collection removes/(re)creates/updates
14:35:50,847 DEBUG SessionImpl:1628 - Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
14:35:50,847 DEBUG SessionImpl:1633 - Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
14:35:50,847 DEBUG SessionImpl:1663 - Executing
14:35:50,847 DEBUG EntityPersister:466 - Inserting entity: foo.bar#2008a044f32a564100f32a5649200001
14:35:50,847 DEBUG BatcherImpl:109 - 1 open PreparedStatements
14:35:50,847 DEBUG SessionFactoryImpl:472 - prepared statement get: insert into DATABASE.TABLE ( FIELD, FIELD, FIELD, FIELD, FIELD, FIELD, FIELD ) values ( ?, ?, ?, ?, ?, ?, ? )
14:35:50,847 DEBUG SessionFactoryImpl:482 - preparing statement
14:35:50,927 DEBUG EntityPersister:392 - Dehydrating entity: foo.bar#2008a044f32a564100f32a5649200001
14:35:50,927 DEBUG StringType:43 - binding '000000001' to parameter: 1
14:35:50,937 DEBUG StringType:43 - binding 'Jones' to parameter: 2
14:35:50,937 DEBUG StringType:43 - binding 'John' to parameter: 3
14:35:50,937 DEBUG StringType:43 - binding 'J' to parameter: 4
14:35:50,937 DEBUG StringType:43 - binding 'J' to parameter: 5
14:35:50,937 DEBUG StringType:43 - binding 'XXXXXX' to parameter: 6
14:35:50,937 DEBUG StringType:43 - binding '2008a044f32a564100f32a5649200001' to parameter: 7
14:35:50,947 DEBUG BatcherImpl:24 - Adding to batch
14:35:50,947 DEBUG BatcherImpl:46 - Executing batch size: 1
14:35:50,957 DEBUG SessionFactoryImpl:500 - closing statement
Problem with checked-in Statement, discarding.
java.lang.NullPointerException
at oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431)
at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:3528)
at oracle.jdbc.driver.OraclePreparedStatement.clearParameters(OraclePreparedStatement.java:3401)
at com.mchange.v2.c3p0.stmt.GooGooStatementCache.refreshStatement(GooGooStatementCache.java:452)
at com.mchange.v2.c3p0.stmt.GooGooStatementCache.checkinStatement(GooGooStatementCache.java:138)
at com.mchange.v2.c3p0.impl.C3P0PooledConnection$1$WrapperStatementHelper.doClose(C3P0PooledConnection.java:381)
at com.mchange.v2.c3p0.impl.C3P0PooledConnection$2.close(C3P0PooledConnection.java:428)
at cirrus.hibernate.impl.SessionFactoryImpl.closePreparedStatement(SessionFactoryImpl.java:501)
at cirrus.hibernate.impl.BatcherImpl.closeStatement(BatcherImpl.java:64)
at cirrus.hibernate.impl.BatcherImpl.executeBatch(BatcherImpl.java:84)
at cirrus.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:1688)
at cirrus.hibernate.impl.SessionImpl.execute(SessionImpl.java:1665)
at cirrus.hibernate.impl.SessionImpl.flush(SessionImpl.java:1610)
at foo.bar.main(fooey.java:65)
java.lang.RuntimeException: Internal inconsistency: A (not new) checking-out statement is not in deathmarch.
at com.mchange.v2.c3p0.stmt.GooGooStatementCache.undeathmarchStatement(GooGooStatementCache.java:437)
at com.mchange.v2.c3p0.stmt.GooGooStatementCache.removeStatement(GooGooStatementCache.java:273)
at com.mchange.v2.c3p0.stmt.GooGooStatementCache.checkinStatement(GooGooStatementCache.java:146)
at com.mchange.v2.c3p0.impl.C3P0PooledConnection$1$WrapperStatementHelper.doClose(C3P0PooledConnection.java:381)
at com.mchange.v2.c3p0.impl.C3P0PooledConnection$2.close(C3P0PooledConnection.java:428)
at cirrus.hibernate.impl.SessionFactoryImpl.closePreparedStatement(SessionFactoryImpl.java:501)
at cirrus.hibernate.impl.BatcherImpl.closeStatement(BatcherImpl.java:64)
at cirrus.hibernate.impl.BatcherImpl.executeBatch(BatcherImpl.java:84)
at cirrus.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:1688)
at cirrus.hibernate.impl.SessionImpl.execute(SessionImpl.java:1665)
at cirrus.hibernate.impl.SessionImpl.flush(SessionImpl.java:1610)
at foo.bar.main(fooeyy.java:65)
------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel