Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-23 Thread hrvoje . djurdjevic
True that, this works: http://camel.apache.org/schema/spring;> . . . This gives >>java.lang.NullPointerException: charset<< (without your fix): http://camel.apache.org/schema/spring;>

Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-22 Thread Claus Ibsen
You can try to specify beanio as a where you configure the charset via - then its a style where you specify the FQN class name and all that stuff. Then you should be able to setup the encoding as a javaCharset type. The stuff may be a bit cumbersome to get right, but it ought to be

Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-22 Thread hrvoje . djurdjevic
I tried all possible to set CamelCharsetName property/header/whatever manually, in hope it would be used by beanio, but it doesn't work. I even tried to convert body to ISO-8859-2, which is single byte character representation, but whatever I try, unmarshalling fixed length stream with beanio

Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-22 Thread hrvoje . djurdjevic
This info should be available to jms layer: https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.dev.doc/q032060_.htm The question is also does camel-beanio use Exchange.CHARSET_NAME property, even if properly set to UTF-8? __ Napomena: Ova elektronička

Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-22 Thread hrvoje . djurdjevic
I'm looking into it right now, here are some ideas that I found on web: https://stackoverflow.com/questions/11580248/how-to-set-character-encoding-in-beanio https://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#CHARSET_NAME http://camel.apache.org/string.html

Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-21 Thread hrvoje . djurdjevic
OK, thanks, and I'm sorry I didn't notice your last reply on time, in order not to post mine. Still, being a newbie, I'm not entirely sure can I have that fix for camel-beanio somehow right now? __ Napomena: Ova elektronička poruka i njeni prilozi mogu sadržavati

Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-21 Thread Claus Ibsen
Okay I had a look and its a bug in camel-beanio https://issues.apache.org/jira/browse/CAMEL-12284 On Wed, Feb 21, 2018 at 11:26 AM, Claus Ibsen wrote: > What version of Camel do you use > > On Wed, Feb 21, 2018 at 11:05 AM, wrote: >> Hello, >>

Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-21 Thread Claus Ibsen
Yeah you should use the same camel version for all your Camel JARs On Wed, Feb 21, 2018 at 1:12 PM, wrote: > Being a newbie, I managed to have this in my pom.xml: > > > org.apache.camel > camel-core > 2.18.1.redhat-21 > > >

Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-21 Thread hrvoje . djurdjevic
Being a newbie, I managed to have this in my pom.xml: org.apache.camel camel-core 2.18.1.redhat-21 org.apache.camel camel-spring-boot-starter 2.18.1.redhat-21 org.apache.camel camel-jms-starter

Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-21 Thread Claus Ibsen
What version of Camel do you use On Wed, Feb 21, 2018 at 11:05 AM, wrote: > Hello, > > I tried to use beanio dataFormat attribute encoding, like this > > streamName="some_stream_name" encoding="UTF-8"/> > streamName="some_stream_name" encoding="UTF8"/> >

Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset

2018-02-21 Thread hrvoje . djurdjevic
Hello, I tried to use beanio dataFormat attribute encoding, like this ... but nothing works, I receive: Stacktrace --- java.lang.NullPointerException: charset