camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Borges <bruno.bor...@gmail.com>
Subject Got a NoTypeConversionAvailableException even with the same class
Date Thu, 21 Jun 2012 21:28:52 GMT
Got a NoTypeConversionAvailableException even when getting a MyUser object.

Caused by: org.apache.camel.NoTypeConversionAvailableException: No type
converter available to convert from type: com.my
company.model.MyUser to the required type: com.mycompany.model.MyUser with
value c
com.mycompany.model.MyUser[ userID=45 ]
        at
org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:1
47) [camel-core-2.9.2.jar:2.9.2]
        at
org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:100)
[camel-core-2.9.2.jar:2.9.2]
        ... 66 more

It is true that a MyUser object is comming from a remote JNDI
EntityManager. And the JAR containing this class is loaded on different
classloaders (one for the JPA EntityManager, and the other for the Camel
route). Although, the MyUser class is Serializable, has the same
serialVersionUID.

Anyone with a good idea on what is happening here?

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message