[Webtest] [webtest][JIRA] Created: (WT-353) Weird NullPointerException in Ant XSLT task with recent splitted reports

Marc Guillemot (JIRA) Marc Guillemot (JIRA)" <noreply@canoo.com
Thu, 22 Nov 2007 17:02:38 +0100 (CET)


Weird NullPointerException in Ant XSLT task with recent splitted reports
------------------------------------------------------------------------

         Key: WT-353
         URL: http://webtest-community.canoo.com/jira/browse/WT-353
     Project: WebTest
        Type: Bug

    Versions: future versions    
    Reporter: Marc Guillemot
 Assigned to: Marc Guillemot 
     Fix For: future versions


Since a few build a report is created per <webtest> and Ant xslt task is called with a mapper to transform all single result files in one run. This causes a strange NullPointerException in com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl (see stacktrace below): for instance with the test of the demo project, this occurs when the second xml file get transformed and if the transformation target is called again, no error occurs.

Strangely the problem occurs only when calling ant directly: no exception occurs when the test are run with the webtest script.

javax.xml.transform.TransformerException: java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:512)
        at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:257)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:718)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
        at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:135)
        at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:502)
        ... 13 more
Caused by: java.lang.NullPointerException
        at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.getExpandedTypeID2(SAX2DTM2.java:2015)
        at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.getExpandedTypeID(DOMAdapter.java:231)
        at com.sun.org.apache.xalan.internal.xsltc.dom.SingleNodeCounter$DefaultSingleNodeCounter.setStartNode(SingleNodeCounter.java:102)
        at WebTestReport.template$dot$11()
        at WebTestReport.applyTemplates()
        at WebTestReport.renderNestedStepTable()
        at WebTestReport.stepParameterCell()
        at WebTestReport.template$dot$11()
        at WebTestReport.applyTemplates()
        at WebTestReport.renderNestedStepTable()
        at WebTestReport.stepParameterCell()
        at WebTestReport.template$dot$11()
        at WebTestReport.applyTemplates()
        at WebTestReport.renderNestedStepTable()
        at WebTestReport.applyTemplates()
        at WebTestReport.template$dot$5()
        at WebTestReport.applyTemplates()
        at WebTestReport.template$dot$0()
        at WebTestReport.applyTemplates()
        at WebTestReport.transform()
        at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:602)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:711)
        ... 16 more
--- Nested Exception ---
javax.xml.transform.TransformerException: java.lang.NullPointerException
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:718)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
        at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:135)
        at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:502)
        at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:257)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NullPointerException
        at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.getExpandedTypeID2(SAX2DTM2.java:2015)
        at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.getExpandedTypeID(DOMAdapter.java:231)
        at com.sun.org.apache.xalan.internal.xsltc.dom.SingleNodeCounter$DefaultSingleNodeCounter.setStartNode(SingleNodeCounter.java:102)
        at WebTestReport.template$dot$11()
        at WebTestReport.applyTemplates()
        at WebTestReport.renderNestedStepTable()
        at WebTestReport.stepParameterCell()
        at WebTestReport.template$dot$11()
        at WebTestReport.applyTemplates()
        at WebTestReport.renderNestedStepTable()
        at WebTestReport.stepParameterCell()
        at WebTestReport.template$dot$11()
        at WebTestReport.applyTemplates()
        at WebTestReport.renderNestedStepTable()
        at WebTestReport.applyTemplates()
        at WebTestReport.template$dot$5()
        at WebTestReport.applyTemplates()
        at WebTestReport.template$dot$0()
        at WebTestReport.applyTemplates()
        at WebTestReport.transform()
        at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:602)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:711)
        ... 16 more
---------
java.lang.NullPointerException
        at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.getExpandedTypeID2(SAX2DTM2.java:2015)
        at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.getExpandedTypeID(DOMAdapter.java:231)
        at com.sun.org.apache.xalan.internal.xsltc.dom.SingleNodeCounter$DefaultSingleNodeCounter.setStartNode(SingleNodeCounter.java:102)
        at WebTestReport.template$dot$11()
        at WebTestReport.applyTemplates()
        at WebTestReport.renderNestedStepTable()
        at WebTestReport.stepParameterCell()
        at WebTestReport.template$dot$11()
        at WebTestReport.applyTemplates()
        at WebTestReport.renderNestedStepTable()
        at WebTestReport.stepParameterCell()
        at WebTestReport.template$dot$11()
        at WebTestReport.applyTemplates()
        at WebTestReport.renderNestedStepTable()
        at WebTestReport.applyTemplates()
        at WebTestReport.template$dot$5()
        at WebTestReport.applyTemplates()
        at WebTestReport.template$dot$0()
        at WebTestReport.applyTemplates()
        at WebTestReport.transform()
        at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:602)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:711)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
        at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:135)
        at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:502)
        at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:257)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira