True that, this works: <bean class="org.apache.camel.dataformat.beanio.BeanIODataFormat" id="some_bean_id"> <property name="encoding" value="UTF-8"/> <property name="mapping" value="mapping.xml"/> <property name="streamName" value="some_stream_name"/> </bean> <camelContext id="camel" useBreadcrumb="false" xmlns=" http://camel.apache.org/schema/spring"> <dataFormats> <!-- beanio id="some_bean_id" mapping="mapping.xml" streamName="some_stream_name"/--> <json id="jack" library="Jackson"/> </dataFormats> . . . This gives >>java.lang.NullPointerException: charset<< (without your fix):
<camelContext id="camel" useBreadcrumb="false" xmlns=" http://camel.apache.org/schema/spring"> <dataFormats> <beanio id="some_bean_id" mapping="mapping.xml" streamName="some_stream_name" encoding="UTF-8"/> <json id="jack" library="Jackson"/> </dataFormats> . . . This falls apart when message encounters diacritic signs in UTF-8, if stream is fixedlength: <camelContext id="camel" useBreadcrumb="false" xmlns=" http://camel.apache.org/schema/spring"> <dataFormats> <beanio id="some_bean_id" mapping="mapping.xml" streamName="some_stream_name"/> <json id="jack" library="Jackson"/> </dataFormats> Thank you Claus. Regards, Hrvoje ______________________ Napomena: Ova elektronička poruka i njeni prilozi mogu sadržavati povjerljive i/ili povlaštene informacije, a namijenjena je isključivo za upotrebu naznačenog primatelja. Ako ste ovu poruku primili greškom, molimo Vas da o tome bez odlaganja obavijestite pošiljatelja, da uništite izvornu poruku i njene priloge i bez odlaganja poruku i njene priloge izbrišete iz Vašeg sistema. Neovlaštena uporaba, distribucija, otkrivanje, umnožavanje ili izmjena ove poruke je zabranjena. Raiffeisenbank Austria d.d. ne daje niti ne prihvaća pravno obvezujuće izjave putem elektroničkih poruka osim ukoliko drugačije nije izričito navedeno. Budući da komunikacija internetom nije zaštićena, Raiffeisenbank Austria d.d. ne prihvaća odgovornost za sadržaj ove poruke, kao ni za eventualnu štetu nastalu zbog zaraženosti ove poruke virusom ili drugim štetnim programom, te zbog eventualnih tehničkih problema prilikom dostave ove poruke. Disclaimer: This e-mail message and any attachment may contain confidental and/or privileged information and is intended for use by the indicated addressee only. If you have received this message in error, please notify the sender immediately, destroy the original message and any attachment and delete this message and any attachment from your system. Unauthorized use, distribution, disclosure, reproduction, or alteration of this e-mail message is forbidden. Raiffeisenbank Austria d.d. neither makes nor accepts legally binding statements via e-mail unless otherwise stated. Considering that internet communication is not secured, Raiffeisenbank Austria d.d. is not responsible for the content of this message, for potential damage occured due to infection of this message with a virus or other malicious program, and for potential technical problems during delivery of this message.