camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrique Viecili <henri...@myreks.com>
Subject Re: JAXB marshal generates byte[] array instead of String
Date Wed, 27 Jun 2012 18:38:26 GMT
Please disregard the comment about conversion issue, a simple refresh on
camel-jaxb in servicemix solved the problem.

BUT, the result of marshal is still a byte[] array while I believe it
should be java.lang.String.

att.
*Henrique Viecili*


On Wed, Jun 27, 2012 at 1:37 PM, Henrique Viecili <henrique@myreks.com>wrote:

> 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