-->
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: Hibernate Search and shard basic integration fail.
PostPosted: Thu Jun 18, 2009 11:30 am 
Newbie

Joined: Thu Jun 18, 2009 6:31 am
Posts: 1
Hi,

I tried to integrate Hibernate Search and Hibernate Shard, But there is incompatibility at the basic level.

Session session = sessionFactory.openSession();
FullTextSession fullTextSession = Search.createFullTextSession(session);

As you see ShardedSessionImpl didn't implement EventSource.(please see the class hierarchy) .

So,There is class cast Exception being generated.

Following full exception message...
Exception in thread "main" java.lang.ClassCastException: org.hibernate.shards.session.ShardedSessionImpl cannot be cast to org.hibernate.event.EventSource


This problem was referenced earlier Here, But no solution provided.
Any help is highly appreciated.


Top
 Profile  
 
 Post subject: Re: Hibernate Search and shard basic integration fail.
PostPosted: Tue Jun 23, 2009 5:00 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Unfortunately, I don't think there is any news on this issue.


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.