From dev-return-97147-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Tue Oct 09 20:12:29 2007 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 75848 invoked from network); 9 Oct 2007 20:12:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2007 20:12:27 -0000 Received: (qmail 16029 invoked by uid 500); 9 Oct 2007 20:12:14 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 15940 invoked by uid 500); 9 Oct 2007 20:12:13 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 15929 invoked by uid 99); 9 Oct 2007 20:12:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 13:12:13 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [213.46.255.22] (HELO viefep23-int.chello.at) (213.46.255.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 20:12:16 +0000 Received: from felixknecht.ch ([217.162.149.243]) by viefep23-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20071009201152.JFDX8441.viefep23-int.chello.at@felixknecht.ch> for ; Tue, 9 Oct 2007 22:11:52 +0200 Received: (qmail 7393 invoked by uid 210); 9 Oct 2007 20:11:51 -0000 Received: from 192.168.1.97 by odin (envelope-from , uid 201) with qmail-scanner-2.01st (clamdscan: 0.91.2/4507. perlscan: 2.01st. Clear:RC:1(192.168.1.97):. Processed in 0.092727 secs); 09 Oct 2007 20:11:51 -0000 Received: from unknown (HELO ?192.168.1.97?) (192.168.1.97) by 192.168.1.11 with SMTP; 9 Oct 2007 20:11:51 -0000 Message-ID: <470BE086.9090101@otego.com> Date: Tue, 09 Oct 2007 22:11:50 +0200 From: Felix Knecht User-Agent: Thunderbird 2.0.0.6 (X11/20070802) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: pipelineComponent scope troubles (was Code freeze?) References: <46EF87E1.5050308@tuffmail.com> <46EFA989.6000107@apache.org> <46EFB1C6.3070600@apache.org> <46EFBA63.2050805@apache.org> <46F0606E.3020007@gmx.de> <46F0CBE5.9050702@apache.org> <46F0F51B.80808@apache.org> <46F0FB55.6000403@apache.org> <46F107CF.6010902@apache.org> <46F10DE1.5040606@apache.org> <46F110B7.6000300@apache.org> <46F26FB4.1010301@apache.org> <46F29A70.2040909@apache.org> <46F2A5C0.2040700@apache.org> <46F2DC98.6050002@apache.org> <46F7A7D5.3000403@apache.org> <4708E33F.1090805@tuffmail.com> <4709BA4E.7090307@apache.org> <470A067A.9090403@apache.org> <470A3281.9080302@mobilebox.pl> <470A8E21.3000106@apache.org> <470B2238.2060707@apache.org> <470B2A76.1030607@apache.org> In-Reply-To: <470B2A76.1030607@apache.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org > > Even Felix can now run our app without the known hassles and exceptions. But we don't know whether > to migrate as now some of the CForm samples throw exceptions they didn't after my springification. > > Any ideas what caused the samples to stop working? > It seems that the JXGenerator stopped working. Changing the generation part in the sitemap [1] from to made sample working again. It looks like the properties from the bean definition (saxParser,scriptManager, ObjectModel) are not set when the JXTemplateGenerator.setup(...) is called and therefor this.startDocument = scriptManager.resolveTemplate(src); throws Exception below because scriptManager = null. Caused by: java.lang.NullPointerException at org.apache.cocoon.template.JXTemplateGenerator.setup(JXTemplateGenerator.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:72) at $Proxy9.setup(Unknown Source) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:341) Felix [1] blocks/cocoon-forms/cocoon-forms-sample/src/main/resources/COB-INF/sitemap.xmap