-->
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.  [ 7 posts ] 
Author Message
 Post subject: 4.4 .serialization.spi.SerializerService error
PostPosted: Thu Oct 17, 2013 9:32 am 
Newbie

Joined: Sun Apr 15, 2012 11:07 am
Posts: 5
Hi,
migrating from hibernate search 4.2 to 4.4 with hibernate version 4.2.5.Final I got the following error during indexation process :

org.hibernate.search.SearchException: Unable to find service related to class org.hibernate.search.indexes.serialization.spi.SerializerService

Any idea ?


Top
 Profile  
 
 Post subject: Re: 4.4 .serialization.spi.SerializerService error
PostPosted: Thu Oct 17, 2013 10:00 am 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
Hi,

Could you post the complete stacktrace? Or possibly provide a condensed test case which shows the issue?

Thanks,

--Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


Top
 Profile  
 
 Post subject: Re: 4.4 .serialization.spi.SerializerService error
PostPosted: Thu Oct 17, 2013 10:11 am 
Newbie

Joined: Sun Apr 15, 2012 11:07 am
Posts: 5
Sure sorry :
org.hibernate.search.SearchException: Unable to find service related to class org.hibernate.search.indexes.serialization.spi.SerializerService
at org.hibernate.search.engine.impl.StandardServiceManager.requestService(StandardServiceManager.java:121)
at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.getSerializer(DirectoryBasedIndexManager.java:161)
at org.hibernate.search.backend.impl.jms.JmsBackendQueueTask.run(JmsBackendQueueTask.java:78)
at org.hibernate.search.backend.impl.jms.JmsBackendQueueProcessor.applyWork(JmsBackendQueueProcessor.java:106)
at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.performOperations(DirectoryBasedIndexManager.java:126)
at org.hibernate.search.backend.impl.WorkQueuePerIndexSplitter.commitOperations(WorkQueuePerIndexSplitter.java:63)
at org.hibernate.search.backend.impl.BatchedQueueingProcessor.performWorks(BatchedQueueingProcessor.java:99)
at org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.flushWorks(PostTransactionWorkQueueSynchronization.java:127)
at org.hibernate.search.backend.impl.TransactionalWorker.flushWorks(TransactionalWorker.java:183)
at org.hibernate.search.impl.FullTextSessionImpl.flushToIndexes(FullTextSessionImpl.java:143)

It's working fine with 4.3
I suspect the Avro version update of 4.4 is causing some trouble, I tried to exclude the other avro dependancies to avoid a potential conflict, but it doesn't change anything.


Top
 Profile  
 
 Post subject: Re: 4.4 .serialization.spi.SerializerService error
PostPosted: Thu Oct 17, 2013 12:12 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
are you using some container?
We have several unit tests doing this and couldn't find a regression, but since the service is identified by its class definition, I'm wondering if you might have a classloader setup issue.

It's also possible you have duplicate jars on classpath?

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


Top
 Profile  
 
 Post subject: Re: 4.4 .serialization.spi.SerializerService error
PostPosted: Thu Oct 17, 2013 12:27 pm 
Newbie

Joined: Sun Apr 15, 2012 11:07 am
Posts: 5
Hi,
Yep it's bundled as a jar.
I checked with a
jar tvf SerializerService
And It only find this class inside the jar : org/hibernate/search/indexes/serialization/spi/SerializerService.class, which seems ok (at least no duplication).

I get this error just upgrading from 4.3 to 4.4 (no other changes :/)

Do you have other suggestion ? I don't know what else could be wrong


Top
 Profile  
 
 Post subject: Re: 4.4 .serialization.spi.SerializerService error
PostPosted: Thu Oct 17, 2013 1:48 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
I think my question wasn't clear.
I meant to ask what kind of application you're running, if you're running in JavaSE on a flat classpath, or running it in - for example- Tomcat or JBoss.

I'm sure you can have that class only once in a single jar, but you could have other jars which shouldn't be there.

You can use a tool like Tattletale to find duplicates:
http://www.jboss.org/tattletale

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


Top
 Profile  
 
 Post subject: Re: 4.4 .serialization.spi.SerializerService error
PostPosted: Thu Oct 17, 2013 5:46 pm 
Newbie

Joined: Sun Apr 15, 2012 11:07 am
Posts: 5
Question was clear:)
It's not running on any container, it's a standalone jar, used for batch process.
It's a jar containing other jars (the application itslf + all the libs), so I could have included the lib twice and have 2 versions of the class in 2 differents jar in my super-jar, which isn't the case.


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