cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37149] New: - Null locator in EffectPipe triggers NPE
Date Tue, 18 Oct 2005 19:54:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37149>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37149

           Summary: Null locator in EffectPipe triggers NPE
           Product: Cocoon 2
           Version: Current SVN 2.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CocoonForms
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: tom@slaxicon.org


I am getting an NPE at line 488 in EffectPipe.java which is reliably triggered
by simply putting an XSLT transform in the template pipeline at any point BEFORE
the forms template transformer.  It didn't show up in the stack trace, but I
traced it   to the call to EffectPipe.beginBuffer() in cases where locator is
null.  For some reason, locator is null in case there is an xsl transform in the
pipeline right before the forms transformer.  I'm including a zip of the
relevant files to recreate the problem using the stock "registration" sample
form, as well as a simple patch that works around the NPE.  I'm not sure if this
is the *correct* way to fix this bug, since I don't really understand what it
means for the locator to be null in this context, but it appears to work fine
for me.  Note that in the included sitemap you just need to comment out the
<transform src="xsl/identity.xsl"/> and the bug goes away.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message