[SoapRMI] XPP2 junit tests fail

Timo Thomas timothomas_at_web.de
Thu, 28 Aug 2003 14:53:33 +0200


Hi,

I just downloaded the latest version of XPP2 and got errors when running 
the JUnit tests. Can anyone help me figuring out what's wrong?

Environment:

- Windows 2000 SP3

- J2SDK 1.4.1_03

- ant 1.5.4

- CLASSPATH=build\samples;build\tests;build\lib\PullParser_2_1_9.jar;
lib\junit\junit37.jar;lib\xerces2_patched\xercesImpl_2_0_1_event_position_patch.jar 



console output (2nd run from PullParser2_1_9 installation directory):

D:\logbox\lib\PullParser2_1_9>ant junit
Buildfile: build.xml

prepare:

intf:

check_junit:

tests:

impl_tag:

impl_pp:

impl_node:

impl_format:

api_sax2:

driver_sax2:

api_jaxp11:

driver_jaxp11:

drivers:

impl:
     [jar] Building jar: 
D:\logbox\lib\PullParser2_1_9\build\lib\PullParser2_1_
9_STANDARD.jar
     [jar] Building jar: 
D:\logbox\lib\PullParser2_1_9\build\lib\PullParser2_1_
9.jar

junit:
    [java] running test for default factory
    [java] found class org.gjt.xpp.impl.PullParserFactoryFullImpl
    [java] ............
    [java] Time: 0,301

    [java] OK (12 tests)

    [java] running test for factory: 
org.gjt.xpp.impl.PullParserFactoryFullImpl

    [java] found class org.gjt.xpp.impl.PullParserFactoryFullImpl
    [java] ............
    [java] Time: 0,08

    [java] OK (12 tests)

    [java] running test for factory: 
org.gjt.xpp.x2impl.X2PullParserFactoryImpl

    [java] found class org.gjt.xpp.x2impl.X2PullParserFactoryImpl
    [java] .F.F.F.E....E.F..E.E
    [java] Time: 0,651
    [java] There were 4 errors:
    [java] 1) testAttribUniq(parser.ParserTest)
    [java] java.lang.IncompatibleClassChangeError
    [java]     at 
org.gjt.xpp.x2impl.x2pullparser.X2PullParser.getPosDesc(X2Pul
lParser.java:1109)
    [java]     at 
org.gjt.xpp.x2impl.x2pullparser.X2PullParser.next(X2PullParse
r.java:767)
    [java]     at parser.ParserTest.parseOneElement(ParserTest.java:558)
    [java]     at parser.ParserTest.testAttribUniq(ParserTest.java:372)
    [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
    [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [java]     at AllTests.main(AllTests.java:58)
    [java] 2) testNode(node.NodeTest)
    [java] java.lang.IncompatibleClassChangeError
    [java]     at 
org.gjt.xpp.x2impl.x2pullparser.X2PullParser.getPosDesc(X2Pul
lParser.java:1109)
    [java]     at 
org.gjt.xpp.x2impl.x2pullparser.X2PullParser.next(X2PullParse
r.java:767)
    [java]     at node.NodeTest.checkNodeOutput(NodeTest.java:254)
    [java]     at node.NodeTest.testNode(NodeTest.java:283)
    [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
    [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [java]     at AllTests.main(AllTests.java:58)
    [java] 3) testSimple(lowlevel.LowLevelTest)
    [java] org.gjt.xpp.x2impl.x2pullparser.X2PullParserRuntimeException: 
unpatc
hed Xerces2 does not support event positioning - apply relevant patch or 
use pat
ched xerces2 jar
    [java]     at 
org.gjt.xpp.x2impl.x2pullparser.X2PullParser.getEventStart(X2
PullParser.java:1391)
    [java]     at lowlevel.LowLevelTest.testSimple(LowLevelTest.java:103)
    [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
    [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [java]     at AllTests.main(AllTests.java:58)
    [java] 4) testUnshrinkableLowLevel(lowlevel.LowLevelTest)
    [java] org.gjt.xpp.x2impl.x2pullparser.X2PullParserRuntimeException: 
unpatc
hed Xerces2 does not support event positioning - apply relevant patch or 
use pat
ched xerces2 jar
    [java]     at 
org.gjt.xpp.x2impl.x2pullparser.X2PullParser.getEventStart(X2
PullParser.java:1391)
    [java]     at 
lowlevel.LowLevelTest.testUnshrinkableLowLevel(LowLevelTest.j
ava:191)
    [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
    [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [java]     at AllTests.main(AllTests.java:58)
    [java] There were 4 failures:
    [java] 1) 
testSimple(parser.ParserTest)junit.framework.AssertionFailedError
: expected:<1> but was:<0>
    [java]     at parser.ParserTest.testSimple(ParserTest.java:91)
    [java]     at parser.ParserTest.testSimple(ParserTest.java:135)
    [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
    [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [java]     at AllTests.main(AllTests.java:58)
    [java] 2) 
testXpp(parser.ParserTest)junit.framework.AssertionFailedError: e
xpected:<Some-Namespace-URI> but was:<null>
    [java]     at parser.ParserTest.testXpp(ParserTest.java:170)
    [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
    [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [java]     at AllTests.main(AllTests.java:58)
    [java] 3) 
testAttribs(parser.ParserTest)junit.framework.AssertionFailedErro
r: expected:<http://www.w3.org/1999/XMLSchema> but was:<null>
    [java]     at parser.ParserTest.testAttribs(ParserTest.java:270)
    [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
    [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [java]     at AllTests.main(AllTests.java:58)
    [java] 4) 
testPullNode(node.NodeTest)junit.framework.AssertionFailedError:
expected:<URI2> but was:<>
    [java]     at node.NodeTest.testPullNode(NodeTest.java:390)
    [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
    [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [java]     at AllTests.main(AllTests.java:58)

    [java] FAILURES!!!
    [java] Tests run: 12,  Failures: 4,  Errors: 4


Cheers,
Timo