[hibernate-dev] Tests failing in HSEARCH trunk

Gustavo Fernandes gustavonalle at gmail.com
Sat Apr 10 07:30:35 EDT 2010


Hello, seems like there's a problem of test isolation in the trunk:

$ mvn clean test

Results :

Tests in error: 
  testProjection(org.hibernate.search.test.query.ProjectionQueryTest)
  testList(org.hibernate.search.test.query.LuceneQueryTest)
  testResultSize(org.hibernate.search.test.query.LuceneQueryTest)
  testFirstMax(org.hibernate.search.test.query.LuceneQueryTest)
  testIterator(org.hibernate.search.test.query.LuceneQueryTest)
  testScrollableResultSet(org.hibernate.search.test.query.LuceneQueryTest)
  testMultipleEntityPerIndex(org.hibernate.search.test.query.LuceneQueryTest)
  testCriteria(org.hibernate.search.test.query.LuceneQueryTest)

Tests run: 206, Failures: 0, Errors: 8, Skipped: 0


They fail with the same error:

testList(org.hibernate.search.test.query.LuceneQueryTest)  Time elapsed: 0.059 sec  <<< ERROR!
org.hibernate.exception.DataException: could not insert: [org.hibernate.search.test.query.Book]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:102)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2438)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2858)
        at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:268)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:260)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:179)
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
        at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375)
        at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
        at org.hibernate.search.test.query.LuceneQueryTest.testList(LuceneQueryTest.java:60)
Caused by: java.sql.SQLException: Column count does not match in statement [insert into Book (body, mainAuthor_id, publicationDate, summary, id) values (?, ?, ?, ?, ?)]
        at org.hsqldb.jdbc.Util.throwError(Unknown Source)
        at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
        at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
        at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:116)
        at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:109)
        at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:244)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2395)
        ... 37 more


Running the failing tests individually, it passes:


$ mvn -Dtest=ProjectionQueryTest,LuceneQueryTest test

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.hibernate.search.test.query.ProjectionQueryTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.363 sec
Running org.hibernate.search.test.query.LuceneQueryTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.373 sec

Results :

Tests run: 24, Failures: 0, Errors: 0, Skipped: 0



Is anyone else experimenting those problems?


Tks,
Gustavo



More information about the hibernate-dev mailing list