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 9E8C61961C for ; Mon, 29 Feb 2016 14:09:40 +0000 (UTC) Received: (qmail 41885 invoked by uid 500); 29 Feb 2016 14:09:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 41832 invoked by uid 500); 29 Feb 2016 14:09:05 -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 41820 invoked by uid 99); 29 Feb 2016 14:09:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Feb 2016 14:09:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 35B7D180361 for ; Mon, 29 Feb 2016 14:09:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.701 X-Spam-Level: X-Spam-Status: No, score=-0.701 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=envieta-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id DuJGZSEkZ-kt for ; Mon, 29 Feb 2016 14:09:03 +0000 (UTC) Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B55D75FB2B for ; Mon, 29 Feb 2016 14:09:02 +0000 (UTC) Received: by mail-qk0-f171.google.com with SMTP id s68so56248724qkh.3 for ; Mon, 29 Feb 2016 06:09:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envieta-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=t+Yws3UeV70nXWDsWBFlEeKapEKLkxUo/mUzyrvxhb0=; b=IEtN3IoOQrt9FIG3tSy6uWKjGOaghbSHbK+qd7auWGNNxqnhhwNi63KnYWDQ565xgy bXZ9tZkhysiXuuZY+ob/aEVWo2HbBc6h86ov8BTi8X35uOi6n/BRL5Pwj8Q6MVQSrgmr UTz8i/Uhfxa8grT0/RjcvSBZ6Xumh1lGT/6Kvt19eTsurgfKI+2pr90+y15SOdHrIZxF mBd3IAIXbfq7X008k3oEbCSsa3rbYewG+vkHZbrvNvTdL38kXEWopGtXP8kW41Y9p5By j2p5wdgAxkZHCEyz2+YOxqW1gILfmmo3cDCM2xZ5pQ53Pjoe1NFc/QTciY2o2LRUqQL9 1DCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=t+Yws3UeV70nXWDsWBFlEeKapEKLkxUo/mUzyrvxhb0=; b=UyBq18ehkwL1XcjheWSNaWGGCrqoZF2tzgp0rEywjl3gsdd8vus59pgzH8J39SFeeS tt8FsKiiNEF9I7lpb/nRsm5lQUKwiEuR/Ok9GbxYKh94QxISZXiT6UX/Ep1ulgpyU3kn p0hqGlvgJsazmKWFsWUtFpIy4x6EbKWPVJucoMIQcPDwfhVg68N2iSJcDlDenSwl/9y0 kAH6q8YnZyHAIukMTxNOFQEXWYMFNVKvlx9XfQagmC/t4i5RQqnMKzNHhLrJRhpZBwsF bomqunk8ARPJigPtJ+fP3rVp4fVDSUdo4A5MQpcGhfQjj6lD2XEw+bwTKJPQrATgOI2G WOXg== X-Gm-Message-State: AD7BkJIgx1b4RWDQ5xTwdQNRKWw2SweNjB/KvH+e02QnwtU0SZWTugUaVee2FdmUNWHU+dJEyV18ImuU+sz9efVjsGlB75m7lI+rhlub7AFBEg+DF/SJOhetwBCghvHN5WClaEkuWliIPwNee/+aYW0QWDoB+zKMG8BS056XnTOZ2jfuBZ1KkkgDw0A= X-Received: by 10.55.80.135 with SMTP id e129mr19910609qkb.65.1456754936408; Mon, 29 Feb 2016 06:08:56 -0800 (PST) Received: from [192.168.200.141] ([96.91.209.91]) by smtp.gmail.com with ESMTPSA id j8sm4412284qhj.19.2016.02.29.06.08.55 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Feb 2016 06:08:55 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Bean instance is null. OGNL bean expressions requires bean instances. From: Alex Soto In-Reply-To: Date: Mon, 29 Feb 2016 09:08:54 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <030A4591-0865-43B4-8AB9-A2070E221D85@envieta.com> References: <22252C3F-D86F-4B89-86F3-5EE5DCA2CE55@envieta.com> To: users@camel.apache.org X-Mailer: Apple Mail (2.2104) Thank you Claus, Best regards, Alex soto > On Feb 28, 2016, at 1:30 AM, Claus Ibsen = wrote: >=20 > I logged a ticket > https://issues.apache.org/jira/browse/CAMEL-9653 >=20 > On Sat, Feb 27, 2016 at 7:25 AM, Claus Ibsen = wrote: >> It was not designed primary to call utility methods, but methods on >> your existing message body and headers - where there is an instance. >>=20 >> You are welcome to log a JIRA ticket to see if we can adjust it to = use >> static methods only. >> http://camel.apache.org/support.html >>=20 >> On Fri, Feb 26, 2016 at 11:07 PM, Alex Soto = wrote: >>> Hello, >>>=20 >>> Running Camel 2.16.1, I am trying to invoke a static method as = follows: >>>=20 >>> >>> >> beanType=3D"org.apache.camel.util.StringHelper"= >>> = method=3D"removeLeadingAndEndingQuotes(${header.If-None-Match})" >>> /> >>> >>>=20 >>>=20 >>> However I get an exception with this message: >>>=20 >>> Bean instance is null. OGNL bean expressions requires bean = instances. >>>=20 >>> Any idea why? >>>=20 >>> Thanks and best regards, >>> Alex soto >>>=20 >>>=20 >>>=20 >>=20 >>=20 >>=20 >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 >=20 >=20 >=20 > --=20 > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2