cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Michels <step...@apache.org>
Subject Re: [GUMP] Build Failure - Cocoon
Date Wed, 23 Apr 2003 06:02:05 GMT


On Tue, 22 Apr 2003, Stefano Mazzocchi wrote:

> on 4/22/03 11:47 AM Gump@icarus.apache.org wrote:
>
> > junit-tests:
> >     [junit] Running org.apache.cocoon.transformation.TraxTransformerTestCase
> >     [junit] Tests run: 4, Failures: 0, Errors: 2, Time elapsed: 5.575 sec
> >     [junit] Testsuite: org.apache.cocoon.transformation.TraxTransformerTestCase
> >     [junit] Tests run: 4, Failures: 0, Errors: 2, Time elapsed: 5.575 sec
> >     [junit] ------------- Standard Output ---------------
> >     [junit] INFO    2003-04-22 02:05:37.161 [TraxTransformerTestCase       ] ():
Test Cases: TraxTransformer
> >     [junit] WARN    2003-04-22 02:05:41.954 [cm      ] (): disposing of handler
for unreleased component. role [org.apache.excalibur.source.SourceFactorySelector]
> >     [junit] WARN    2003-04-22 02:05:41.958 [cm      ] (): disposing of handler
for unreleased component. role [org.apache.excalibur.source.SourceResolver]
> >     [junit] ------------- ---------------- ---------------
> >
> >     [junit] Testcase: testFunctionForXalan took 0.625 sec
> >     [junit] Testcase: testStressForXalan took 2.481 sec
> >     [junit] Testcase: testFunctionForXSLTC took 1.388 sec
> >     [junit] 	Caused an ERROR
> >     [junit] class org.apache.xalan.xsltc.dom.SAXImpl$TypedNamespaceIterator cannot
access its superclass org.apache.xml.dtm.ref.DTMDefaultBaseIterators$NamespaceIterator
> >     [junit] java.lang.IllegalAccessError: class org.apache.xalan.xsltc.dom.SAXImpl$TypedNamespaceIterator
cannot access its superclass org.apache.xml.dtm.ref.DTMDefaultBaseIterators$NamespaceIterator
> >     [junit] 	at java.lang.ClassLoader.defineClass0(Native Method)
> >     [junit] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> >     [junit] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> >     [junit] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
> >     [junit] 	at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
> >     [junit] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
> >     [junit] 	at java.security.AccessController.doPrivileged(Native Method)
> >     [junit] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
> >     [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> >     [junit] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
> >     [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> >     [junit] 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> >     [junit] 	at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:291)
> >     [junit] 	at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:174)
> >     [junit] 	at org.apache.xalan.xsltc.trax.TransformerHandlerImpl.startDocument(TransformerHandlerImpl.java:232)
> >     [junit] 	at org.apache.cocoon.xml.AbstractXMLPipe.startDocument(AbstractXMLPipe.java:83)
> >     [junit] 	at org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.stream(DOMStreamer.java:247)
> >     [junit] 	at org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:174)
> >     [junit] 	at org.apache.cocoon.transformation.AbstractTransformerTestCase.transform(AbstractTransformerTestCase.java:150)
> >     [junit] 	at org.apache.cocoon.transformation.TraxTransformerTestCase.testFunctionForXSLTC(TraxTransformerTestCase.java:100)
> >     [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >     [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >     [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >     [junit] 	at org.apache.avalon.excalibur.testcase.ExcaliburTestCase.run(ExcaliburTestCase.java:445)
> >
> >     [junit] Testcase: testFunctionForXSLTCTestcase: testStressForXSLTC took 0.018
sec
> >     [junit] 	Caused an ERROR
> >     [junit] class org.apache.xalan.xsltc.dom.SAXImpl$TypedNamespaceIterator cannot
access its superclass org.apache.xml.dtm.ref.DTMDefaultBaseIterators$NamespaceIterator
> >     [junit] java.lang.IllegalAccessError: class org.apache.xalan.xsltc.dom.SAXImpl$TypedNamespaceIterator
cannot access its superclass org.apache.xml.dtm.ref.DTMDefaultBaseIterators$NamespaceIterator
> >     [junit] 	at java.lang.ClassLoader.defineClass0(Native Method)
> >     [junit] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> >     [junit] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> >     [junit] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
> >     [junit] 	at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
> >     [junit] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
> >     [junit] 	at java.security.AccessController.doPrivileged(Native Method)
> >     [junit] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
> >     [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> >     [junit] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
> >     [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> >     [junit] 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> >     [junit] 	at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:291)
> >     [junit] 	at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:174)
> >     [junit] 	at org.apache.xalan.xsltc.trax.TransformerHandlerImpl.startDocument(TransformerHandlerImpl.java:232)
> >     [junit] 	at org.apache.cocoon.xml.AbstractXMLPipe.startDocument(AbstractXMLPipe.java:83)
> >     [junit] 	at org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.stream(DOMStreamer.java:247)
> >     [junit] 	at org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:174)
> >     [junit] 	at org.apache.cocoon.transformation.AbstractTransformerTestCase.transform(AbstractTransformerTestCase.java:150)
> >     [junit] 	at org.apache.cocoon.transformation.TraxTransformerTestCase.testStressForXSLTC(TraxTransformerTestCase.java:111)
> >     [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >     [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >     [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >     [junit] 	at org.apache.avalon.excalibur.testcase.ExcaliburTestCase.run(ExcaliburTestCase.java:445)
>
> It seems to me that those tests fail because you are connecting those
> tests to something that is not part of their API so they are very likely
> to change those classes without noticing.

No, this is the standard usage of the TraxTranformer. I use nothing more
than the TraxTransformer and XSLProcessor (unchanged). So if the
test works, the TraxTransformer should work on most machines.

> Have you tried running those tests against their latest CVS instead of
> the released version?

No, I will do.

> moreover, until you fix them, can you remove them from the build? who
> breaks it fixes it, remember? and the above is not cocoon failing to
> pass the tests, but our tests failing to be meaningful and this breaks
> the concept completely.

I don't break anything, all I do is testing these things, which must be
currently tested by the clients.

Okay, I will remove this test :-/

Stephan.


Mime
View raw message