Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 932 invoked from network); 24 Sep 2004 22:18:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Sep 2004 22:18:14 -0000 Received: (qmail 68542 invoked by uid 500); 24 Sep 2004 22:20:16 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 68499 invoked by uid 500); 24 Sep 2004 22:20:15 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 68480 invoked by uid 99); 24 Sep 2004 22:20:15 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of joerg.heinicke@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 24 Sep 2004 15:20:15 -0700 Received: (qmail 15483 invoked by uid 65534); 24 Sep 2004 22:20:12 -0000 Received: from p50880D13.dip0.t-ipconnect.de (EHLO [192.168.122.254]) (80.136.13.19) by mail.gmx.net (mp026) with SMTP; 25 Sep 2004 00:20:12 +0200 X-Authenticated: #3483660 Message-ID: <41549DA7.204@gmx.de> Date: Sat, 25 Sep 2004 00:20:23 +0200 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: CForms - load / save to different targets References: <4152FB99.5070703@gmx.de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 24.09.2004 11:01, Jorg Heymans wrote: > Original Exception: org.apache.commons.jxpath.JXPathException: Exception > trying to create xpath selectedGroups; Factory is not set on the > JXPathContext - cannot create path: /selectedGroups That's similar to a NullPointerException. Your variable is null, so JXPath can not crawl along the path - and it does not know how to create the path. One solution is Robin's proposal, another one is a modified getter which I often use: public Object getObject() { if (this.object = null) { this.object = new Object(); } return this.object; } Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org