Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.8.3
-
None
-
Unknown
Description
exchange.getIn().getBody(Foo.class);
should return a Foo instance or null, if no suitable type converter is available. The java doc says: "return the body of the message as the specified type, or <tt>null</tt> if not possible to convert"
If Foo is an Jaxb object model, this method call:
- throws an org.xml.sax.SAXParseException if the body content is a string
- throws a javax.xml.bind.UnmarshalException if the body content is another Jaxb model object
Please have a look on the attached sample eclipse project.