Camel message method getBody(Class<T>) returns null
Issue
- If I do something like below and the body is not castable to myClass and there are no appropriate type converters for myClass, then null is returned, I would expect a
TypeConversionExceptioninstead.
exchange.getIn().getBody(myClass.class)
Environment
- Red Hat JBoss Fuse
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
