ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9706] New: - "Unknown error in XPath" using the style task with params for multiple files
Date Fri, 07 Jun 2002 21:25:53 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=9706>.
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=9706

"Unknown error in XPath" using the style task with params for multiple files

           Summary: "Unknown error in XPath" using the style task with
                    params for multiple files
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: rainer.garus@arcor.de


Using the style task with the param tag for multiple files during processing the
second file I get the following exception:
javax.xml.transform.TransformerException: Unknown error in XPath

Attached is an short example. The two files src/a.xml and src/b.xml should be
transformed to txt/a.txt and txt/b.txt with the stylesheet ss.xsl. The files
a.xml and b.xml are identical, so I expect identical files a.txt and b.txt. But
only the file a.txt is generated. During generating b.txt there is the error.
Starting Ant again then b.txt is generated successfully (because a.txt already
exists the style task have to build only one file).

I am using Ant 1.4.1, Xerces 1.4.3 and Xalan 2.2D11. With Ant 1.5Beta1 I get the
same error. There is a similar bug with number 4335.

With the -verbose option I get the following messages:

/home/fop/ant/build.xml:7: javax.xml.transform.TransformerException: Unknown
error in XPath
        at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:352)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:179)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
; SystemID: file:////home/fop/ant/ss.xsl; Line#: 9; Column#: 46
javax.xml.transform.TransformerException: Unknown error in XPath
        at org.apache.xpath.XPath.bool(XPath.java:411)
        at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:162)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2182)
        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2008)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:638)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1088)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1066)
        at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:127)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:341)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:179)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)
---------
java.lang.NullPointerException
        at
org.apache.xpath.objects.XNodeSet.getStringFromNode(XNodeSet.java:235)
        at org.apache.xpath.objects.XNodeSet.compare(XNodeSet.java:619)
        at org.apache.xpath.objects.XNodeSet.equals(XNodeSet.java:706)
        at org.apache.xpath.objects.XString.equals(XString.java:401)
        at org.apache.xpath.operations.Equals.operate(Equals.java:82)
        at org.apache.xpath.operations.Operation.execute(Operation.java:146)
        at org.apache.xpath.Expression.bool(Expression.java:208)
        at org.apache.xpath.XPath.bool(XPath.java:388)
        at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:162)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2182)
        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2008)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:638)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1088)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1066)
        at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:127)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:341)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:179)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message