You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Willem Jiang <wi...@gmail.com> on 2013/12/02 08:26:34 UTC

Re: StaxConverter throws NPE

I just submit a patch into master branch, please check it out and play with your application.

-- 
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
          http://jnn.iteye.com (Chinese)
Twitter: willemjiang 
Weibo: 姜宁willem


On November 29, 2013 at 7:30:07 PM, sbo13 (sbo13@gmx.de) wrote:
>
>Copy of CAMEL-7025  
>
>This issue only happens when running in weblogic:
>
>After updating to Camel 2.12.2 the method createXMLStreamReader(InputStream
>in, Exchange exchange) in staxConverter throws an NPE because of the missing
>charsetName.
>Comparing the class with the previous version I saw camel no longer falls
>back to the default charset.
>
>As a workaround I set the property Exchange.CHARSET_NAME on explicitly ->
>still the same error.
>
>Debugging the code I noticed that in
>org.apache.camel.impl.converter.BaseTypeConverterRegistry#convertTo line 98
>the exchange is not passed to the converter so I can neither use an explicit
>nor an implicit charset.
>
>Any workaround/fix would be greatly appreciated!
>
>see JIRA for Stacktrace
>
>
>
>--
>View this message in context: http://camel.465427.n5.nabble.com/StaxConverter-throws-NPE-tp5744074.html
>Sent from the Camel - Users mailing list archive at Nabble.com.
>