ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <Martin.Gai...@ingenix.com>
Subject Implementation characteristics of ant-junit.jar vs junit.jar
Date Sat, 16 Nov 2002 17:32:08 GMT
Hello:

I am currently experiencing error when ant_15 handoff to xalan for
Transforming XML to HTML
Here is the error:

        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.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.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
sformerFactoryImpl.java:750)
        at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(X
alan2Executor.java:77)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:183)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
ute(XMLResultAggregator.java:176)
        at org.apache.tools.ant.Task.perform(Task.java:319)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
---------
javax.xml.transform.TransformerException:  Failed calling setMethod method
        at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.
java:891)
        at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.
java:919)
        at
org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttribut
eDef.java:1109)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttr
ibutes(XSLTElementProcessor.java:375)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttr
ibutes(XSLTElementProcessor.java:311)
        at
org.apache.xalan.processor.ProcessorOutputElem.startElement(Processor
OutputElem.java:236)
        at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetH
andler.java:656)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.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.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
sformerFactoryImpl.java:750)
        at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(X
alan2Executor.java:77)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:183)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
ute(XMLResultAggregator.java:176)
        at org.apache.tools.ant.Task.perform(Task.java:319)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
---------
; SystemID:
jar:file:/C:/ANT_15/jakarta-ant-1.5/lib/optional.jar!/org/apache/too
ls/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl; Line#: 3; Column#: 61
; SystemID:
jar:file:/C:/ANT_15/jakarta-ant-1.5/lib/optional.jar!/org/apache/too
ls/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl; Line#: 3; Column#: 61
javax.xml.transform.TransformerException:  Failed calling setMethod method
        at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.
java:876)
        at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.
java:919)
        at
org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttribut
eDef.java:1109)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttr
ibutes(XSLTElementProcessor.java:375)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttr
ibutes(XSLTElementProcessor.java:311)
        at
org.apache.xalan.processor.ProcessorOutputElem.startElement(Processor
OutputElem.java:236)
        at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetH
andler.java:656)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.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.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
sformerFactoryImpl.java:750)
        at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(X
alan2Executor.java:77)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:183)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
ute(XMLResultAggregator.java:176)
        at org.apache.tools.ant.Task.perform(Task.java:319)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
Caused by: java.lang.IllegalAccessException: Class java.lang.reflect.Method
can
not access a member of class org.apache.xalan.processor.ProcessorOutputElem
with
 modifiers "public"
        at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
        at java.lang.reflect.Method.invoke(Method.java:317)
        at
org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttribut
eDef.java:1100)
        ... 26 more
---------
java.lang.IllegalAccessException: Class java.lang.reflect.Method can not
access
a member of class org.apache.xalan.processor.ProcessorOutputElem with
modifiers
"public"
        at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
        at java.lang.reflect.Method.invoke(Method.java:317)
        at
org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttribut
eDef.java:1100)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttr
ibutes(XSLTElementProcessor.java:375)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttr
ibutes(XSLTElementProcessor.java:311)
        at
org.apache.xalan.processor.ProcessorOutputElem.startElement(Processor
OutputElem.java:236)
        at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetH
andler.java:656)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.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.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
sformerFactoryImpl.java:750)
        at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(X
alan2Executor.java:77)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:183)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
ute(XMLResultAggregator.java:176)
        at org.apache.tools.ant.Task.perform(Task.java:319)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
---------
java.lang.IllegalAccessException: Class java.lang.reflect.Method can not
access
a member of class org.apache.xalan.processor.ProcessorOutputElem with
modifiers
"public"
        at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
        at java.lang.reflect.Method.invoke(Method.java:317)
        at
org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttribut
eDef.java:1100)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttr
ibutes(XSLTElementProcessor.java:375)
        at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttr
ibutes(XSLTElementProcessor.java:311)
        at
org.apache.xalan.processor.ProcessorOutputElem.startElement(Processor
OutputElem.java:236)
        at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetH
andler.java:656)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.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.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
sformerFactoryImpl.java:750)
        at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(X
alan2Executor.java:77)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:183)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
ute(XMLResultAggregator.java:176)
        at org.apache.tools.ant.Task.perform(Task.java:319)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Here is what EnvironmentCheck reports:

#---- BEGIN writeEnvironmentReport($Revision: 1.7 $): Useful properties
found: ----
java.version=1.4.1_01
version.JAXP=1.1
java.ext.dirs=C:\j2sdk1.4.1_01\jre\lib\ext
version.crimson=not-present
version.SAX=2.0
java.class.path=C:\j2sdk1.4.1_01\jre\lib\rt.jar;C:\SCGDEV2\WebDev\eFACT\vers
ion20\html\WEB-INF\lib\eFACT.jar
version.xerces=not-present
sun.boot.class.path=C:\j2sdk1.4.1_01\jre\lib\rt.jar;C:\j2sdk1.4.1_01\jre\lib
\i18n.jar;C:\j2sdk1.4.1_01\jre\lib\sunrsasign.jar;C:\j2sdk1.4.1_01\jre\lib\j
sse.jar;C:\j2sdk1.4.1_01\jre\lib\jce.jar;C:\j2sdk1.4.1_01\jre\lib\charsets.j
ar;C:\j2sdk1.4.1_01\jre\classes
version.DOM.draftlevel=2.0fd
version.xalan2=Xalan;Java;Xalan Java 2.2.D11;
version.DOM=2.0
version.xalan1=not-present
#----- END writeEnvironmentReport: Useful properties found: -----
# YAHOO! Your environment seems to be OK.

Here is the directory listing of %ANT_HOME%\lib:

 Directory of C:\ANT_15\jakarta-ant-1.5\lib
11/15/2002  04:46p      <DIR>          .
11/15/2002  04:46p      <DIR>          ..
08/28/2002  01:50p              54,665 activation.jar
10/02/2002  10:55a             717,666 ant.jar
11/27/2000  11:57a              29,871 jakarta-regexp-1.2.jar
09/04/2002  11:29p             121,070 junit.jar
08/28/2002  01:58p             305,434 mail.jar
10/02/2002  10:55a             654,735 optional.jar
11/07/2002  01:17p             484,480 pmd-1.01.jar
10/02/2002  11:00a                 682 README
11/15/2002  08:27a      <DIR>          save
10/31/2002  02:27p           1,031,036 xalan.jar
10/02/2002  11:00a             831,473 xercesImpl.jar
10/02/2002  11:00a             108,484 xml-apis.jar
11/11/2002  06:25p              83,089 xmlParserAPIs.jar

I have noted gump builds use ant-junit.jar instead of junit.jar supplied
from Junit.org...Should I be using ant-junit.jar instead of junit.jar for
running <junitreport>?
If so how do I obtain ant-junit.jar?
Which tools does Ant provide to better understand this error?

Thank You,

Martin Gainty





This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

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


Mime
View raw message