You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Sullivan, Sean C - MWT" <Su...@menlolog.com> on 2004/02/13 19:10:41 UTC
cvstagdiff, Ant 1.6.1, "Could not find variable with the name of title"
My configuration:
Apache Ant 1.6.1
Sun JDK 1.4.1_02
Windows 2000
My build.xml script runs perfectly in Ant 1.5.4
but fails in Ant 1.6.1
The <cvstagdiff> tag is failing.
This is what I see:
---
[cvstagdiff] cvs rdiff: Diffing apps/websphere
[style] Processing C:\build\output\tagdiff-foo.xml to
C:\build\output\tagdiff-bar.html
[style] Loading stylesheet C:\apache-ant-1.6.1\etc\tagdiff.xsl
[style] : Fatal Error! org.apache.xml.utils.WrappedRuntimeException:
Could not find variable with the name of title Cause:
org.apache.xml.utils.WrappedRuntimeException: Could not find variable
with the name of title
[style] Failed to process C:\build\output\tagdiff-foo.xml
BUILD FAILED
C:\build\build.xml:277: Following error occured while executing this
line
C:\build\build.xml:150: Fatal error during transformation
---
When I turned on Ant's verbose output, I saw this stack trace:
----
org.apache.xml.utils.WrappedRuntimeException: Could not find variable
with the n
ame of title
at
org.apache.xpath.operations.Variable.fixupVariables(Variable.java:134
)
at org.apache.xpath.XPath.fixupVariables(XPath.java:130)
at
org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:226)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:311)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.ja
va:294)
at
org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHa
ndler.java:502)
at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Sourc
e)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Sourc
e)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.
dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transf
ormerFactoryImpl.java:934)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraX
Liaison.java:210)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.createTransformer(
TraXLiaison.java:228)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiai
son.java:126)
at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:49
5)
at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:20
9)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.Parallel$TaskRunnable.run(Parallel.java
:420)
at java.lang.Thread.run(Thread.java:536)
---------
; SystemID: file:///C:/apache-ant-1.6.1/etc/tagdiff.xsl; Line#: 31;
Column#: 47
; SystemID: file:///C:/apache-ant-1.6.1/etc/tagdiff.xsl; Line#: 31;
Column#: 47
javax.xml.transform.TransformerException: Could not find variable with
the name
of title
at
org.apache.xpath.operations.Variable.fixupVariables(Variable.java:132
)
at org.apache.xpath.XPath.fixupVariables(XPath.java:130)
at
org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:226)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:311)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.composeTemplates(Stylesheet
Root.java:316)
at
org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.ja
va:294)
at
org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHa
ndler.java:502)
at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Sourc
e)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Sourc
e)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.
dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transf
ormerFactoryImpl.java:934)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraX
Liaison.java:210)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.createTransformer(
TraXLiaison.java:228)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiai
son.java:126)
at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:49
5)
at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:20
9)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.Parallel$TaskRunnable.run(Parallel.java
:420)
at java.lang.Thread.run(Thread.java:536)
----
How can I workaround this issue?
-Sean
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org