Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA8A2E98A for ; Wed, 9 Jan 2013 08:43:42 +0000 (UTC) Received: (qmail 61684 invoked by uid 500); 9 Jan 2013 08:43:42 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 61571 invoked by uid 500); 9 Jan 2013 08:43:42 -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 61546 invoked by uid 99); 9 Jan 2013 08:43:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 08:43:41 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-la0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 08:43:37 +0000 Received: by mail-la0-f48.google.com with SMTP id ej20so1585010lab.35 for ; Wed, 09 Jan 2013 00:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=xXXyCoPz8jxq2QfQT5ktRn7sYVqhcTE4PSu38d+Lxg0=; b=Wj8uspnEGTxszHSJ28ny6bFxNZg2GsyMkuZPJDToHv1vvRhWlptiVklUKd51CX1b0u oDiE31CzFA4Ov4UjKXrydtltz6Rd3U50muH1/WLc2QdaW3iCDA+85sRdRjL3WgRNk5JA 8ZezbEHAzgoDQJ1giJa/gn5l8ZBDJhHl6cAKGyL/9jYsZDhPm87+9LrVlbu3F42qZew/ Ow3QV4vzngXtjbcAPH1tEuxYyDOkqXdB8q8xZXpGgFJofjPoVFnQzNMHZPXqchkaUjFK lPwZ6qi0PNFj/Pvh3PfvxtTHs3em1FhC8V6gP6qAJtrPth3jdKl7DJPTR9TcmXvL6XKk UD5w== Received: by 10.152.144.164 with SMTP id sn4mr64340640lab.57.1357720995907; Wed, 09 Jan 2013 00:43:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.103.129 with HTTP; Wed, 9 Jan 2013 00:42:55 -0800 (PST) In-Reply-To: <1357664172285-5725140.post@n5.nabble.com> References: <1357232752544-5724850.post@n5.nabble.com> <1357664172285-5725140.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 9 Jan 2013 09:42:55 +0100 Message-ID: Subject: Re: Unable to consume syslog messages To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Jan 8, 2013 at 5:56 PM, sscott wrote: > sscott wrote >> I set up rsyslogd to forward *.* to localhost:5140. Every log message >> causes Camel to output an InvalidPayloadException caused by a >> NoTypeConversionAvailableException with the detail "No type converter >> available to convert from type: >> org.jboss.netty.buffer.BigEndianHeapChannelBuffer to the required type: >> java.io.InputStream with value BigEndianHeapChannelBuffer(ridx=0, >> widx=105, cap=105)" >> >> When I change the from() to be "mina:", with or without the sync=false and >> allowDefaultCodec=false options, and change the maven dependencies to >> camel-mina from camel-netty, the same exceptions are thrown with the >> detail "No body available of type: java.io.InputStream on: Message: [Body >> is null]. Caused by: No type converter available to convert from type: >> null to the required type: java.io.InputStream with value null." > > In case anybody ever has this problem in the future, it was caused by using > maven-assembly-plugin to package all the code into a jar-with-dependencies. > I'm assuming it's a TypeConverter / MANIFEST.MF issue. > Thanks for sharing your solution to the problem. Yeah be careful with the packaginging an uber JAR thingy. The content in the various files in the META-INF dir need to be merged together, and not override each other. > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Unable-to-consume-syslog-messages-tp5724850p5725140.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen