-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Hibernate JPARepository save - Error while indexing
PostPosted: Fri Jul 31, 2015 7:14 am 
Newbie

Joined: Fri Jul 31, 2015 6:51 am
Posts: 5
Server Error: org.springframework.orm.jpa.JpaSystemException: Error while indexing in Hibernate Search (before transaction completion); nested exception is org.hibernate.HibernateException: Error while indexing in Hibernate Search (before transaction completion)
Internal Server Error: org.hibernate.HibernateException: Error while indexing in Hibernate Search (before transaction completion)

maven dependencies jar list :

1. lucene-core-4.10.4
2. lucene-analyzers-common-4.10.4
3. hibernate-search-orm-5.3.0.Final
4. hibernate-entitymanager-4.3.9.Final
5. hibernate-core-4.3.9.Final


Top
 Profile  
 
 Post subject: Re: Hibernate JPARepository save - Error while indexing
PostPosted: Mon Aug 03, 2015 11:25 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hello,
I would need to see the full stacktrace to be able to try helping you.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Hibernate JPARepository save - Error while indexing
PostPosted: Mon Aug 03, 2015 11:42 pm 
Newbie

Joined: Fri Jul 31, 2015 6:51 am
Posts: 5
No Stack trace throw by system, I am only getting this error, which posted to you.

Problem situation :
* I am using JPARepository for CRUD functionality using @Transnational annotation.
* When I requested data to send for add operation (eg. userRepository.save(user)) at that time this exception is encountered.
* If I requested data which is already exists in Database, At that time its working fine throwing error Object already exists.
* When I put @Indexed,@Field annotation to entity,then i am getting this error otherwise without @Indexed,@Field its working fine.

Please help me because i am stuck on this part.


Top
 Profile  
 
 Post subject: Re: Hibernate JPARepository save - Error while indexing
PostPosted: Tue Aug 04, 2015 3:25 am 
Newbie

Joined: Fri Jul 31, 2015 6:51 am
Posts: 5
Hi,
One more thing, i found this under token
http://stackoverflow.com/questions/27070234/hibernate-search-performance-suggestion-about-criteria

***************
No. Hibernate Search Lucene should not be mixed with Hibernate ORM Criteria queries. That is not supported. All you can set via the criteria API is the fetch mode for associations.
***************

Question:::
In (JPA) EntityManager & FullTextEntityManager used to implement the Lucene Query. How I can using criteria/predicates with lucene query to fetch required result?


Top
 Profile  
 
 Post subject: Re: Hibernate JPARepository save - Error while indexing
PostPosted: Fri Aug 07, 2015 5:02 am 
Newbie

Joined: Fri Jul 31, 2015 6:51 am
Posts: 5
solution for this type exception.

FullTextEntityManager().flush();
FullTextEntityManager().clear();


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.