I would like to know how significant these errors are, but I've spent several hours on Google and looking at the Hibernate forums without throwing much light.
Before I start to use Hibernate seriously, I would like to know how much I can rely on it.
Possibly these errors will not affect my planned use, but I do not know how to acertain this in advance.
I am running:
Fedora Core 2
J2SE1.5.0_03
Apache Ant version 1.6.5
hibernate 3.0.5
postgreSQL 8.0.3
postgresql-8.0-311.jdbc3.jar.
I can run "ant eg" with no problems.
But "ant junitreport" reports:
Summary:
Tests Failures Errors Success rate Time
66 29 7 94.55% 11878.916
I found the errors:
org.hibernate.test.bidi (1 Error)
AuctionTest: Could not execute JDBC batch update
org.hibernate.test.legacy (4 Errors)
CustomSQLTest: Could not execute JDBC batch update
FooBarTest: complex query
org.hibernate.test.naturalid (1 Error)
NaturalIdTest: could not fetch initial value
org.hibernate.test.naturalid (1 Error)
SubselectTest: Could not execute JDBC batch update
Full stack trace of any exception that occurs: (this for the first error - AuctionTest: Could not execute JDBC batch update) Could not execute JDBC batch update
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:59) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:181) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:74) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:69) at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:150) at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1839) at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:2200) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:46) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86) at org.hibernate.test.bidi.AuctionTest.testLazy(AuctionTest.java:38) at org.hibernate.test.TestCase.runTest(TestCase.java:129)Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into TAuction (description, end, id) values (an auction for something, 2005-06-08 13:34:54.698000+1200, 2) was aborted. Call getNextException to see the cause. at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2392) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1257) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:334) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2451) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:57) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:174) ... 31 more 1.553
|