https://issues.apache.org/bugzilla/show_bug.cgi?id=54641
Bug ID: 54641
Summary: XSLTC problem with StringUtils
Product: Ant
Version: 1.8.4
Hardware: PC
OS: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Optional Tasks
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
XMLResultAggregatorTest.testFrames fails on JDK 7u17 with:
Fatal error during transformation
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.fatalError(TraXLiaison.java:531)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:895)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraXLiaison.java:300)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.createTransformer(TraXLiaison.java:317)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:178)
at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:850)
... 19 more
Caused by: javax.xml.transform.TransformerConfigurationException: Could not
compile stylesheet
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:885)
... 23 more
Bug #51668 comment #6 notes that this is known as
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384757 and (cannot read it but)
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7167657 as well.
http://xml.apache.org/xalan-j/extensions.html#ext-func-calls says
TransformerFactory.newInstance().newTemplates(new StreamSource(new
File("…src/etc/junit-noframes.xsl")));
should work but it fails:
ERROR: 'The first argument to the non-static Java function 'replace' is not a
valid object reference.'
FATAL ERROR: 'Could not compile stylesheet'
Exception in thread "main"
javax.xml.transform.TransformerConfigurationException: Could not compile
stylesheet
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:843)
Apparently newer versions of XSLTC try to verify extension method signatures,
or something like that, and StringUtils does not work here.
--
You are receiving this mail because:
You are the assignee for the bug.