camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrique Viecili <henri...@myreks.com>
Subject JAXB marshal generates byte[] array instead of String
Date Wed, 27 Jun 2012 16:37:56 GMT
Dear Camel Breeders,

would you know any reason why after marshaling an object with jaxb data
format the result BodyType is a byte[] array instead of java.lang.String?

With byte[] I see conversion problems as the log below shows:
12:45:42,474 | WARN  | onsumer-thread-5 | JbiBinding
| ?                                   ? | 196 - servicemix-camel -
2011.02.1.fuse-02-13 | Unable to convert message body of type class [B into
an XML Source

I know I can solve it by using <convertBodyTo>, but I don't believe this is
a good practice.

BTW, I am using camel 2.8.0.fuse-01-13 with SMX 4.4.1-fuse-01-13, and there
is nothing special in my data format configuration: <camel:jaxb
id="JAXB-com.bean.jaxb" prettyPrint="true" contextPath="com.bean.jaxb" />

att.
*Henrique Viecili*

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