Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 35908 invoked from network); 30 May 2007 22:41:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2007 22:41:17 -0000 Received: (qmail 72035 invoked by uid 500); 30 May 2007 22:41:20 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 71977 invoked by uid 500); 30 May 2007 22:41:20 -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 71966 invoked by uid 99); 30 May 2007 22:41:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2007 15:41:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.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.29) with SMTP; Wed, 30 May 2007 15:41:15 -0700 Received: (qmail invoked by alias); 30 May 2007 22:40:53 -0000 Received: from p549D1519.dip0.t-ipconnect.de (EHLO [192.168.178.20]) [84.157.21.25] by mail.gmx.net (mp039) with SMTP; 31 May 2007 00:40:53 +0200 X-Authenticated: #3483660 X-Provags-ID: V01U2FsdGVkX1+7r8NrmEe7r77PyunV6aNZbaCR1mJZFuJ+ytRSku DWEiGIyKzuIHwa Message-ID: <465DFDAE.7050001@gmx.de> Date: Thu, 31 May 2007 00:41:50 +0200 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1 MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: ZipFileSerializer After XInclude Throws NullPointerException References: <200705301256.06035.guila@dainty.ca> In-Reply-To: <200705301256.06035.guila@dainty.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org On 30.05.2007 18:56, Adrien Guillon wrote: > I'm writing some sitemap logic for handling Oasis Document Format (ODF) > files. However, I've found what looks like a bug in Cocoon-2.1.10. I get a > NullPointerException when the ZipFileSerializer is preceded by the XInclude > transformer. I constructed a very simple sitemap and XML files, and have > been able to reproduce the problem. I'm using Cocoon 2.1.10 with JDK 1.5. > The problem was also reproduced on Cocoon 2.1.9 with JDK 1.4. > > What's funny is that if I take the resultant XML file after the xinclude > transformation, and serialize with xml, and then run the zip file serializer > on that file... everything is fine. It doesn't look like an XML document > issue... > > Please find relevant info below.... let me know if anything else is needed. > > AJ > > Here's a simple sitemap snippet to show the problem: > > > > > > > > > > > > > > > > > > > > > > Now I have two other files: > > simple.xml: Hello > > simple_xi.xml: > > > xmlns:xi="http://www.w3.org/2001/XInclude" > > > > > Hello Adrien, can you try 1. to use a reader for simple.xml pipeline instead of generator + serializer, 2. to include simple.xml directly instead of via cocoon pipeline? Joerg