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 17673] New: - sendPage function in Flow causes an NPE.
Date Wed, 05 Mar 2003 14:38:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17673>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17673

sendPage function in Flow causes an NPE.

           Summary: sendPage function in Flow causes an NPE.
           Product: Cocoon 2
           Version: Current CVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: u.cei@cbim.it


The sendPage, sendPageAndWait functions in the Flow (and the XForm.sendView too)
cause an NPE when issuing a redirect. According to my analysis, this is caused
by the fact that AbstractEnvironment.sourceResolver is null when is used at
AbstractEnvironment.java:467. Apparently this is due to the fact that
starProcessing() is never called in this case.

Here follows a snippet of the stacktrace:

Caused by: java.lang.NullPointerException
        at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:467)
        at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:457)
        at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:104)
...
        at
org.apache.cocoon.environment.ForwardRedirector.cocoonRedirect(ForwardRedirector.java:201)
        at
org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:113)
        at
org.apache.cocoon.components.flow.AbstractInterpreter.forwardTo(AbstractInterpreter.java:226)
        at
org.apache.cocoon.components.flow.javascript.JSCocoon.jsFunction_forwardTo(JSCocoon.java:238)

Mime
View raw message