-->
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.  [ 1 post ] 
Author Message
 Post subject: Problem with XStream serialization
PostPosted: Tue Nov 04, 2008 9:40 am 
Newbie

Joined: Tue Nov 04, 2008 9:07 am
Posts: 2
I'm having problems serializing DB objects with XStream with the error "XStream conversion exception: Cannot handle CGLIB enhanced proxies with multiple callbacks".

Now I found lot's of similar problems and solutions in the net but none exactly in my situation.

My code is something like this:

Code:
      
    Class<?> clazz = resources.get("/"+entity);
(1) List<Object> all = getHibernateTemplate().loadAll(clazz);
    String key = "somekey";
(2) Object object = getHibernateTemplate().get(clazz, key);
(3) object = getHibernateTemplate().load(clazz, key);


Now (1) and (2) are not giving me any problem, but (3) is giving that CGLIB errors. All of the situations I found googling are related to the use of hibernate collections/java collections, but in my case there is no collections, just a simple table with no relations.

Any help?

Cheers.


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

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.