You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Simon Pepping <sp...@leverkruid.nl> on 2004/01/05 21:59:24 UTC

Error in junit tests (was: [Bug 25828] - [PATCH] fop.sh/bat should use java.endorsed.dirs)

On Fri, Jan 02, 2004 at 10:59:54PM -0000, bugzilla@apache.org wrote:
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25828
> 
> [PATCH] fop.sh/bat should use java.endorsed.dirs
> 
> ------- Additional Comments From glenmazza@yahoo.com  2004-01-02 22:59 -------
> <Q>
> I found today that the JUnit tests run well with the jar files from the SDK, but
> I have problems when I substitute newer jar files for them. This makes me
> hesitate about my patch.
> </Q>
> 
> I'm assuming you mean newer JARs but *not* the ones we distribute?  If newer 
> versions than ours create errors not found in our supplied versions, rather 
> than hesitate this might actually strengthen the argument for applying your 
> patch!  

I did the junit tests with various combinations of xercesImpl.jar,
xml-apis.jar, xalan.jar. These cause various errors. Most of them may
be ascribed to incompatible combinations of versions of these three
jar files. I paid special attention to the jar files that come with
SDK 1.4.2_01, those that come with FOP CVS HEAD and those that come
with Xalan 2.5.2; these should be compatible combinations.

No error occurs with the jar files from the SDK. One error occurs
with each of the other two combinations. In both cases the error
occurs in:

    [junit] TEST org.apache.fop.BasicDriverTestSuite FAILED

and is similar (line numbers differ). Below an extract from the test
report for FOP's jar files:

Testsuite: org.apache.fop.BasicDriverTestSuite
Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 10.26 sec

Testcase: testFO2PDFWithDOM took 0.696 sec
	Caused an ERROR
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
javax.xml.transform.TransformerException: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:469)
	at org.apache.fop.BasicDriverTestCase.loadDocument(BasicDriverTestCase.java:133)
	at org.apache.fop.BasicDriverTestCase.testFO2PDFWithDOM(BasicDriverTestCase.java:149)
...
Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
	at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:351)
	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1020)

org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
	at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:351)
	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1020)
...
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
	at org.apache.xerces.dom.CoreDocumentImpl.checkDOMNSErr(Unknown Source)
	at org.apache.xerces.dom.AttrNSImpl.setName(Unknown Source)
	at org.apache.xerces.dom.AttrNSImpl.<init>(Unknown Source)

Regards, Simon

-- 
Simon Pepping
email: spepping@leverkruid.nl
home page: http://www.leverkruid.nl
public key: http://www.leverkruid.nl/personal/sp.asc
fingerprint: E3BF 7295 9AA8 8B8A C01A  219D FAAC 088C 6B28 F549