XStream error: com.thoughtworks.xstream.converters.ConversionException



The previous thread was bad created and didn't have the code in a trustful place. Sorry for the trouble.


The project i'm working on is a 3 folder project in Java J2EE with servlets and Hibernate for the persistance. The structure is as follow: - Admin -> the main program with the beans and HTML/CSS - Jar -> with the jars, Hibernate tools and classes - War -> with the Servlets


Between them, I use Xstream to share the classes and important info.


I'm using Eclipse and Tomcat 7.


Hope that with this all of you get the global idea.


This what the Xstream debugger said:



Caused by: com.thoughtworks.xstream.converters.ConversionException: satdata.musicoterapia.hibernate.Terapeuta0 : satdata.musicoterapia.hibernate.Terapeuta0
---- Debugging information ----
message : satdata.musicoterapia.hibernate.Terapeuta0
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : satdata.musicoterapia.hibernate.Terapeuta0
class : satdata.musicoterapia.hibernate.Usuario
required-type : satdata.musicoterapia.hibernate.Usuario
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /list/Usuario[2]/terapeuta
class[1] : java.util.ArrayList
converter-type[1] : com.thoughtworks.xstream.converters.collections.CollectionConverter
version : null


Links (I don't have enough reputiation for have more than 2 links):



If something is missing, ask and I'll put it here. Thanks for all!!!


No comments:

Post a Comment