Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 29957 invoked from network); 20 Nov 2009 07:38:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Nov 2009 07:38:22 -0000 Received: (qmail 2939 invoked by uid 500); 20 Nov 2009 07:38:22 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 2886 invoked by uid 500); 20 Nov 2009 07:38:21 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 2855 invoked by uid 500); 20 Nov 2009 07:38:21 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 2838 invoked by uid 99); 20 Nov 2009 07:38:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 07:38:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 07:38:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1CD9F234C1F1 for ; Thu, 19 Nov 2009 23:37:53 -0800 (PST) Message-ID: <581537677.1258702673085.JavaMail.jira@brutus> Date: Thu, 19 Nov 2009 23:37:53 -0800 (PST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name In-Reply-To: <111632849.1258500352701.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55614#action_55614 ] Claus Ibsen commented on CAMEL-2188: ------------------------------------ Paul can you work on the patches and provide a complete patch with you suggestions. Then we can get it in Camel 2.2 > JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name > ---------------------------------------------------------------------------------------------------- > > Key: CAMEL-2188 > URL: https://issues.apache.org/activemq/browse/CAMEL-2188 > Project: Apache Camel > Issue Type: Bug > Components: camel-jcr > Affects Versions: 1.6.0 > Environment: java version "1.6.0_15" > Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) > Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) > Reporter: Paul Mietz Egli > Assignee: Hadrian Zbarcea > Fix For: 2.2.0 > > Attachments: node-creation.diff > > > To reproduce, use the camel-jcr component without specifying a node name in the message properties. JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node. IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.