You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/03/05 21:32:39 UTC

DO NOT REPLY [Bug 27484] New: - NPE - Cocoon attempts to resolve input source incorrectly

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=27484>.
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=27484

NPE - Cocoon attempts to resolve input source incorrectly

           Summary: NPE - Cocoon attempts to resolve input source
                    incorrectly
           Product: Cocoon 2
           Version: 2.1.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Flowscript
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: peter.hunsberger@stjude.org


When deploying Cocoon as part of an EAR file under JBoss 3.0.4 Tomcat 4.1.12 
Cocoon gives the following stack trace when returning from a continuaition.  
The problem does not happen under 2.1.3 or if deployed as an expanded EAR.  
See:

 http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107574604114201&w=2 

for more info.  

Note that forcing a null return in SourceReaderFactory does not correct the 
problem (which make sense since the script is run up until the continuation is 
invoked).  

Also note that in our case the continuation is returned using an input module 
called from the sitemap as:

    <map:call continuation="{continuations:}"/>

where "continuations" is the name for an input module that resolves the 
current continuation to use.

Partial stack trace:

java.lang.NullPointerException 
at org.eclipse.jdt.internal.compiler.parser.Scanner.setSource
(Scanner.java:2979) 
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:7106) 
at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Parser.java:4733) 
at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile
(Compiler.java:289) 
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:324) 
at org.tempuri.javacImpl.eclipse.JavaCompilerImpl.compile
(JavaCompilerImpl.java:394) 
at 
org.apache.cocoon.components.flow.javascript.fom.CompilingClassLoader.compile
(CompilingClassLoader.java:374) 
at 
org.apache.cocoon.components.flow.javascript.fom.CompilingClassLoader.findClass
(CompilingClassLoader.java:99) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:289) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:235) 
at org.mozilla.javascript.NativeJavaPackage.getPkgProperty
(NativeJavaPackage.java:181) 
at org.mozilla.javascript.NativeJavaPackage.get(NativeJavaPackage.java:156) 
at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:723) 
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret
(ContinuationInterpreter.java:677) 
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret
(ContinuationInterpreter.java:190) 
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret
(ContinuationInterpreter.java:138) 
at org.mozilla.javascript.continuations.InterpretedFunctionImpl.call
(InterpretedFunctionImpl.java:121) 
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244) 
at org.mozilla.javascript.ScriptableObject.callMethod
(ScriptableObject.java:1591) 
at 
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.hand
leContinuation(FOM_JavaScriptInterpreter.java:799) 
at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke
(CallFunctionNode.java:150)