-->
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.  [ 4 posts ] 
Author Message
 Post subject: GWT + Gilead + hibernate : Anybody know this exception???
PostPosted: Tue Jan 19, 2010 11:30 am 
Newbie

Joined: Tue Dec 01, 2009 12:00 pm
Posts: 1
It shows when I try to clone one object in the server

INFO: Third party instance, not cloned : java.lang.RuntimeException: java.lang.ClassCastException: java.util.HashMap cannot be cast to net.sf.gilead.pojo.gwt.IGwtSerializableParameter


Top
 Profile  
 
 Post subject: Re: GWT + Gilead + hibernate : Anybody know this exception???
PostPosted: Sat Feb 20, 2010 7:30 am 
Newbie

Joined: Mon Aug 06, 2007 11:58 pm
Posts: 4
hi mate, try to use

GwtConfigurationHelper.initGwtStatelessBeanManager

instead of

ConfigurationHelper.initStatelessBeanManager

Cheers


Top
 Profile  
 
 Post subject: Re: GWT + Gilead + hibernate : Anybody know this exception???
PostPosted: Sat Mar 27, 2010 8:06 am 
Newbie

Joined: Sat Mar 27, 2010 7:49 am
Posts: 1
superkei wrote:
hi mate, try to use

GwtConfigurationHelper.initGwtStatelessBeanManager

instead of

ConfigurationHelper.initStatelessBeanManager

Cheers



hi,I'm new to GWT+Gilead + hibernate,and I 'm following this article :

http://code.google.com/intl/zh-CN/webto ... rnate.html

and get this exception too:

java.lang.ClassCastException: java.util.HashMap cannot be cast to net.sf.gilead.pojo.gwt.IGwtSerializableParameter

My question is : Where should I use "ConfigurationHelper.initStatelessBeanManager"? That article didn't mention it :(


Top
 Profile  
 
 Post subject: Re: GWT + Gilead + hibernate : Anybody know this exception???
PostPosted: Tue May 18, 2010 11:52 am 
Newbie

Joined: Mon Aug 06, 2007 11:58 pm
Posts: 4
Hi alien, sorry, just saw your question today.

You may want to see if this works:

modify this (from gwt tutorial):

persistentBeanManager.setProxyStore(new StatelessProxyStore());

to:

StatelessProxyStore sps = new StatelessProxyStore();
sps.setProxySerializer(new GwtProxySerialization());
persistentBeanManager.setProxyStore(sps);

Cheers


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