-->
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.  [ 2 posts ] 
Author Message
 Post subject: RejectedExecutionException
PostPosted: Tue Oct 06, 2009 12:53 am 
Newbie

Joined: Mon Feb 09, 2009 9:40 am
Posts: 15
while creating an index i am getting an exception called java.util.concurrentrejectedexception..
I used Manual index creation..

public void indexWithHibernate()
{
FullTextSession session = Search.getFullTextSession( HibernateUtil.currentSession() );

try {

//read the data from the database
@SuppressWarnings("unchecked")
List<MovieMasterPojo> items = session.createCriteria(MovieMasterPojo.class).list(); //retreive entities to be indexed
//index the data
for (Object item : items) {
session.index(item); //mark them for indexing
}

session.flushToIndexes();(For this line i am getting the error)

}
catch (HibernateException e) {
e.printStackTrace();
}
catch (SearchException e) {
e.printStackTrace();
}
finally {
session.clear();
}

}



please give some suggestions to resolve this error....
Thanks in advance....


Top
 Profile  
 
 Post subject: Re: RejectedExecutionException
PostPosted: Tue Oct 06, 2009 9:24 am 
Pro
Pro

Joined: Wed Oct 03, 2007 2:31 pm
Posts: 205
Hi

It may be worth changing your code to look something the process mentioned:

http://docs.jboss.org/hibernate/stable/ ... batchindex

HTH

Cheers


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.