From users-return-67057-archive-asf-public=cust-asf.ponee.io@camel.apache.org Thu Feb 22 16:26:58 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C0B0D18064E for ; Thu, 22 Feb 2018 16:26:57 +0100 (CET) Received: (qmail 1036 invoked by uid 500); 22 Feb 2018 15:26:56 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 1019 invoked by uid 99); 22 Feb 2018 15:26:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2018 15:26:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0B2A0C1996 for ; Thu, 22 Feb 2018 15:26:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id eEqCce0YRM8O for ; Thu, 22 Feb 2018 15:26:53 +0000 (UTC) Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 06D255F640 for ; Thu, 22 Feb 2018 15:26:52 +0000 (UTC) Received: by mail-qk0-f180.google.com with SMTP id j4so1065786qke.10 for ; Thu, 22 Feb 2018 07:26:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=Ik0GW+6jlNm/jV0WvJmXcACeSAn6K140y4e7SNc3j4M=; b=GUK4tslGdil/dzZdYf05dKLL5JWjI6Wv1mnXRuNk+9iphRBz+sUSsappRZQihIxlE5 BnorGLfJipz5/Ken76eZwjcyjjmPaOYu70cRPraNILpvrDCdYXacHVODzLMpzjmbswlL 5PjK95jwwTdu00a51c5LsOoQYWrohfS8LoXBB5dE7nYdJQMAKMKbjFAWJNuuelIY28dY WHSBrQqKfkrD7ma2+MTyNG3sm9LVIhzWXyQNLF8jqx/sz10guQxZw9VxMlWsHJI1+jz1 KrUE8g5QCABj3XSvDLctdrcMNZwTWoGSEZdLev7vk8bproJ5rii0ThDprKSJnjoW3bFi Kw2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=Ik0GW+6jlNm/jV0WvJmXcACeSAn6K140y4e7SNc3j4M=; b=tpyls87zs955XOdQB7CzU0A+fRwJXbwzsZOO9+xQlEz2xPrJXWzZOpIdt/voasncwx SJsf5IKg+0xwHzT0PHyQayJ1HrHajOqRJpxnlOyBb+DBEOx6BAGLHeXq6v6IctkSkZUm lwtbVjI3PgFhOaDCC98FY/k/Hyb0Uub3cnPAch7KqeUhvFiO+G3J0EXlsdeI94thzRwx RYr/kUppU+xiVGs4i1ddLYR6eHD86kvxRejr0zbuGjilRHNfJRT83c3VS6Z5uQ2Uct9f z2imI8ZnpqiWgGwFSxo3Pr3WEPrvBSi9Pvp3EB3ztyO1FQ/GwmLdF9+lzjJI/I3jft+o iJqA== X-Gm-Message-State: APf1xPCixL7sly+ipCOUUlAvfVgWGgtwj8mwi8pO9ocgcADQBha0f9Wf h2nD8LlH1unJOVgqttUv5BA6VZiG8NRB33E+RyKMWQ== X-Google-Smtp-Source: AG47ELsR3HbIIdFHVR0f8ZSzBHYDH1T6DwbTJm7hO98eTh7PGIZ6JHgcmgOeDH77gv6XLhrFTItsEjQL0KluHGgXiQ8= X-Received: by 10.55.115.67 with SMTP id o64mr10831724qkc.144.1519313204991; Thu, 22 Feb 2018 07:26:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.62.48 with HTTP; Thu, 22 Feb 2018 07:26:24 -0800 (PST) In-Reply-To: References: From: Claus Ibsen Date: Thu, 22 Feb 2018 16:26:24 +0100 Message-ID: Subject: Re: Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: charset To: users@camel.apache.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 java....Charset type. The stuff may be a bit cumbersome to get right, but it ought to be possible. Then you can refer to the bean via where xxx is the bean id. The FQN class would be the beanio dataformat class you can find in the camel-beanio JAR file. On Thu, Feb 22, 2018 at 4:16 PM, wrote: > 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 characte= r > representation, but whatever I try, unmarshalling fixed length stream wit= h > beanio fails > as soon as there are diacritic characters in a message, otherwise it is > OK. > > > file://C:/mqdocuments/?fileName=3Drequest.txt"/> > > id=3D"_setHeader1"> > queue://QM_TEST/INPUTQ?targetClient=3D1 > > uri=3D"websphere:queue:SYSTEM.DEFAULT.LOCAL.QUEUE?useMessageIDAsCorrelati= onID=3Dtrue&replyTo=3DREPLYQ"/> > ${body}"/> > > UTF-8 > > propertyName=3D"CamelCharsetName"> > UTF-8 > > > > header.CamelCharsetName: ${header.CamelCharsetName}"/> > property.CamelCharsetName: ${property.CamelCharsetName}"/> > property.org.apache.camel.default.charset: > ${property.org.apache.camel.default.charset}"/> > > > > > > This excludes everything but the first suggestion from the web as a > possible solution with beanio, I may use something else, or get Red Hat > support to utilize your fix. > > > Hrvoje =C4=90ur=C4=91evi=C4=87 > Specijalist > > IT > Raiffeisenbank Austria d.d. > Magazinska cesta 69/2, 10000 Zagreb > Tel. +385 1 4695 022 > Fax. +385 1 4604 907 > Mob. +385 98 416 032 > www.rba.hr > ______________________ > > Napomena: > Ova elektroni=C4=8Dka poruka i njeni prilozi mogu sadr=C5=BEavati povjerl= jive i/ili povla=C5=A1tene informacije, a namijenjena je isklju=C4=8Divo za= upotrebu nazna=C4=8Denog primatelja. Ako ste ovu poruku primili gre=C5=A1k= om, molimo Vas da o tome bez odlaganja obavijestite po=C5=A1iljatelja, da u= ni=C5=A1tite izvornu poruku i njene priloge i bez odlaganja poruku i njene = priloge izbri=C5=A1ete iz Va=C5=A1eg sistema. Neovla=C5=A1tena uporaba, dis= tribucija, otkrivanje, umno=C5=BEavanje ili izmjena ove poruke je zabranjen= a. Raiffeisenbank Austria d.d. ne daje niti ne prihva=C4=87a pravno obvezuj= u=C4=87e izjave putem elektroni=C4=8Dkih poruka osim ukoliko druga=C4=8Dije= nije izri=C4=8Dito navedeno. Budu=C4=87i da komunikacija internetom nije z= a=C5=A1ti=C4=87ena, Raiffeisenbank Austria d.d. ne prihva=C4=87a odgovornos= t za sadr=C5=BEaj ove poruke, kao ni za eventualnu =C5=A1tetu nastalu zbog = zara=C5=BEenosti ove poruke virusom ili drugim =C5=A1tetnim programom, te z= bog eventualnih tehni=C4=8Dkih problema prilikom dostave ove poruke. > > Disclaimer: > This e-mail message and any attachment may contain confidental and/or pri= vileged information and is intended for use by the indicated addressee only= . If you have received this message in error, please notify the sender imme= diately, destroy the original message and any attachment and delete this me= ssage 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 sta= tements via e-mail unless otherwise stated. Considering that internet commu= nication 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. --=20 Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2