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 E9C4E6C38 for ; Tue, 2 Aug 2011 10:20:28 +0000 (UTC) Received: (qmail 38433 invoked by uid 500); 2 Aug 2011 10:20:28 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 38161 invoked by uid 500); 2 Aug 2011 10:20:21 -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 38146 invoked by uid 99); 2 Aug 2011 10:20:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 10:20:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mirko.caserta@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 10:20:09 +0000 Received: by qwj8 with SMTP id 8so4302849qwj.32 for ; Tue, 02 Aug 2011 03:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=9VFaWOI5tZXHkNfK2kl5ey+1l1ObK34WBQaEGlLm9+E=; b=uIpKe/7hfwwOJSLqGN/3xE4Gtno9UpjX9uzeL6+Deyx1j6QpZF3gRZxFhVX6mdvU/x ypC9JgXyUqOezsZ6xceQk3jECZlvRgVBBtnGhfebXa5HkuAzFR3aT75rQGqW673vRmDk EPkDsFGK9u6HJSBTWooDU1OfqFq2OrufgId1U= MIME-Version: 1.0 Received: by 10.229.62.103 with SMTP id w39mr4188630qch.59.1312280388100; Tue, 02 Aug 2011 03:19:48 -0700 (PDT) Received: by 10.229.192.204 with HTTP; Tue, 2 Aug 2011 03:19:47 -0700 (PDT) Date: Tue, 2 Aug 2011 12:19:47 +0200 Message-ID: Subject: Error handling with transaction From: Mirko Caserta To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi there, I'm having an issue I don't understand. I have a transactional route defined like this: java.lang.Exception ...snip... You can see I don't have handled=true in the onException block. That's because my inboundErrorHandler bean does an exchange.setException(soapFaultInstance) so that cxf is happy and returns the right soap fault message. The issue I'm having is that, after my inboundErrorHandler has done its job catching a SocketTimeoutException (I can see the soapFault instance logged by the Tracer), I get a NPE in camel which makes my endpoint return a: soap:Server java.lang.NullPointerException The relevant stack trace portion is: ...snip... Caused by: org.apache.camel.RuntimeCamelException: java.lang.NullPointerException at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139) ~[camel-core-2.7.2.jar:2.7.2] at org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:178) ~[camel-spring-2.7.2.jar:2.7.2] at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) ~[spring-tx-3.0.5.RELEASE.jar:3.0.5.RELEASE] ...snip... Am I doing something wrong or is this a bug in camel? I can provide logs, route definitions, code... anything you might need in case someone wishes to debug this. Thanks in advance, Mirko.