The issue is solved, but the solution create another one. I wrote utilty class that uses hibernate only without Spring, to prevent possible misconfiguration. It reports that column types of some columns are int, while bigint expected. The utility start to works when I changes hbm2ddl property to create, run it one time, and changed it back to 'validate'. I wrote in start of the thread that indexing without Spring is works. At Thursday, I've removed 'hbm2ddl' property from Spring configuration and now there is no endless loop as was. However indexing using Spring and Hibernate still doesn't works. It fails with 'Terminating batch work! Index might end up in inconsistent state.' error, that doesn't hekps to understand the problem and to fix it. Hardy, can you explain why it happens.
Here is the log using 'log4j.logger.org.hibernate.search=debug' in log4j.xml.
Quote:
2010-06-29 08:11:22,245 INFO ( Version.java:40) - Hibernate Search 3.2.0.Final
2010-06-29 08:11:22,245 INFO ( Version.java:40) - Hibernate Search 3.2.0.Final
2010-06-29 08:11:22,261 DEBUG ( InitContext.java:133) - Using default similarity implementation: org.apache.lucene.search.DefaultSimilarity
2010-06-29 08:11:22,261 DEBUG ( InitContext.java:133) - Using default similarity implementation: org.apache.lucene.search.DefaultSimilarity
2010-06-29 08:11:22,324 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,324 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,324 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.AuditTrail.
2010-06-29 08:11:22,324 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.AuditTrail.
2010-06-29 08:11:22,339 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,339 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,339 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.Company.
2010-06-29 08:11:22,339 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.Company.
2010-06-29 08:11:22,355 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,355 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,355 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,355 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,355 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,355 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:22,355 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.Groups.
2010-06-29 08:11:22,355 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.Groups.
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:22,433 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,120 DEBUG ( InitContext.java:133) - Using default similarity implementation: org.apache.lucene.search.DefaultSimilarity
2010-06-29 08:11:23,120 DEBUG ( InitContext.java:133) - Using default similarity implementation: org.apache.lucene.search.DefaultSimilarity
2010-06-29 08:11:23,136 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,136 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,136 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.AuditTrail.
2010-06-29 08:11:23,136 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.AuditTrail.
2010-06-29 08:11:23,152 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,152 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,152 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.Company.
2010-06-29 08:11:23,152 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.Company.
2010-06-29 08:11:23,167 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,167 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,167 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,167 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,167 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,167 DEBUG (DocumentBuilderIndexedEntity.java:263) - Found JPA id and using it as document id
2010-06-29 08:11:23,167 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.Groups.
2010-06-29 08:11:23,167 DEBUG (DocumentBuilderIndexedEntity.java:171) - Field selection in projections is set to true for entity com.sintecmedia.model.Groups.
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
2010-06-29 08:11:23,183 DEBUG (FullTextIndexEventListener.java:136) - Hibernate Search event listeners activated
Starting to build Lucene index for Hibernate Search
2010-06-29 08:11:23,620 DEBUG ( MassIndexerImpl.java:113) - Targets for indexing job: [class com.sintecmedia.model.Company]
2010-06-29 08:11:23,620 DEBUG ( MassIndexerImpl.java:113) - Targets for indexing job: [class com.sintecmedia.model.Company]
2010-06-29 08:11:24,667 ERROR (DirectoryProviderWorkspace.java:112) - Terminating batch work! Index might end up in inconsistent state.
2010-06-29 08:11:24,667 ERROR (DirectoryProviderWorkspace.java:112) - Terminating batch work! Index might end up in inconsistent state.
2010-06-29 08:11:24,667 ERROR (DirectoryProviderWorkspace.java:112) - Terminating batch work! Index might end up in inconsistent state.
2010-06-29 08:11:24,667 ERROR (DirectoryProviderWorkspace.java:112) - Terminating batch work! Index might end up in inconsistent state.
2010-06-29 08:11:24,667 ERROR (DirectoryProviderWorkspace.java:112) - Terminating batch work! Index might end up in inconsistent state.
2010-06-29 08:11:24,667 ERROR (DirectoryProviderWorkspace.java:112) - Terminating batch work! Index might end up in inconsistent state.
Error building Lucene index for Hibernate Search.