river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niclas Hedhman" <nic...@hedhman.org>
Subject LinkageError in Outrigger
Date Fri, 07 Nov 2008 03:17:15 GMT
Gang,

I get the following exception when accessing Outrigger from some
tests. The Outrigger is running as Transient-JERI in the same JVM as
the testcode itself (if that could possibly matter).

The relevant bits of the classpath are;

[DEBUG]   /Users/niclas/dev/ops4j/projects/qi4j/libraries/spaces/javaspaces/target/classes
[DEBUG]   /Users/niclas/dev/ops4j/projects/qi4j/libraries/spaces/javaspaces/target/test-classes
[DEBUG]   /Users/niclas/.m2/repository/org/mortbay/jetty/jetty-util/6.1.11/jetty-util-6.1.11.jar
[DEBUG]   /Users/niclas/.m2/repository/org/apache/river/jini-core/2.1/jini-core-2.1.jar
[DEBUG]   /Users/niclas/.m2/repository/org/apache/river/jsk-lib/2.1.1/jsk-lib-2.1.1.jar
[DEBUG]   /Users/niclas/.m2/repository/org/apache/river/start/2.1.1/start-2.1.1.jar
[DEBUG]   /Users/niclas/.m2/repository/org/apache/river/outrigger/2.1.1/outrigger-2.1.1.jar
[DEBUG]   /Users/niclas/.m2/repository/org/mortbay/jetty/jetty/6.1.11/jetty-6.1.11.jar
[DEBUG]   /Users/niclas/.m2/repository/org/apache/river/reggie/2.1.1/reggie-2.1.1.jar
[DEBUG]   /Users/niclas/.m2/repository/org/apache/river/mahalo/2.1.1/mahalo-2.1.1.jar
[DEBUG]   /Users/niclas/.m2/repository/org/mortbay/jetty/servlet-api-2.5/6.1.11/servlet-api-2.5-6.1.11.jar
[DEBUG]   /Users/niclas/.m2/repository/junit/junit/4.4/junit-4.4.jar
[DEBUG]   /Users/niclas/.m2/repository/org/apache/river/jini-ext/2.1/jini-ext-2.1.jar

Any clues?


Thanks
Niclas

org.qi4j.library.spaces.SpaceException: Remote problems: Error in
server thread; nested exception is:
	java.lang.LinkageError: Class
com/sun/jini/landlord/Landlord$RenewResults violates loader
constraints
	at org.qi4j.library.spaces.javaspaces.JavaSpacesClientMixin.write(JavaSpacesClientMixin.java:86)
	at org.qi4j.library.spaces.javaspaces.JavaSpacesClientService.write(Unknown
Source)
	at org.qi4j.library.spaces.tests.SpacesTestRig.whenAddingSixCitiesExceptToIterateThem(SpacesTestRig.java:125)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
	at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
	at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
	at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
	at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
	at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
	at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
	at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
	at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
	at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
	at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.rmi.ServerError: Error in server thread; nested exception is:
	java.lang.LinkageError: Class
com/sun/jini/landlord/Landlord$RenewResults violates loader
constraints
	at net.jini.jeri.BasicInvocationDispatcher.dispatch(BasicInvocationDispatcher.java:647)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$6.run(ObjectTable.java:597)
	at net.jini.export.ServerContext.doWithServerContext(ServerContext.java:103)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$Target.dispatch0(ObjectTable.java:595)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$Target.access$700(ObjectTable.java:212)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$5.run(ObjectTable.java:568)
	at com.sun.jini.start.AggregatePolicyProvider$6.run(AggregatePolicyProvider.java:527)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$Target.dispatch(ObjectTable.java:565)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$Target.dispatch(ObjectTable.java:540)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$RD.dispatch(ObjectTable.java:778)
	at net.jini.jeri.connection.ServerConnectionManager$Dispatcher.dispatch(ServerConnectionManager.java:148)
	at com.sun.jini.jeri.internal.mux.MuxServer$2.run(MuxServer.java:244)
	at com.sun.jini.start.AggregatePolicyProvider$5.run(AggregatePolicyProvider.java:513)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.jini.jeri.internal.mux.MuxServer$1.run(MuxServer.java:241)
	at com.sun.jini.thread.ThreadPool$Worker.run(ThreadPool.java:136)
	at java.lang.Thread.run(Thread.java:613)
	at com.sun.jini.jeri.internal.runtime.Util.__________EXCEPTION_RECEIVED_FROM_SERVER__________(Util.java:108)
	at com.sun.jini.jeri.internal.runtime.Util.exceptionReceivedFromServer(Util.java:101)
	at net.jini.jeri.BasicInvocationHandler.unmarshalThrow(BasicInvocationHandler.java:1303)
	at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(BasicInvocationHandler.java:832)
	at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(BasicInvocationHandler.java:659)
	at net.jini.jeri.BasicInvocationHandler.invoke(BasicInvocationHandler.java:528)
	at com.sun.jini.outrigger.$Proxy48.write(Unknown Source)
	at com.sun.jini.outrigger.SpaceProxy2.write(SpaceProxy2.java:296)
	at org.qi4j.library.spaces.javaspaces.JavaSpacesClientMixin.write(JavaSpacesClientMixin.java:78)
	... 28 more
Caused by: java.lang.LinkageError: Class
com/sun/jini/landlord/Landlord$RenewResults violates loader
constraints
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
	at java.lang.Class.getDeclaredMethod(Class.java:1907)
	at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1354)
	at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:52)
	at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:421)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
	at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
	at java.io.ObjectStreamClass.initProxy(ObjectStreamClass.java:491)
	at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1508)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1463)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479)
	at com.sun.jini.mahalo.TxnMgrProxy.readObject(TxnMgrProxy.java:198)
	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
	at com.sun.jini.jeri.internal.runtime.Util.unmarshalValue(Util.java:221)
	at net.jini.jeri.BasicInvocationDispatcher.unmarshalArguments(BasicInvocationDispatcher.java:1049)
	at net.jini.jeri.BasicInvocationDispatcher.dispatch(BasicInvocationDispatcher.java:599)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$6.run(ObjectTable.java:597)
	at net.jini.export.ServerContext.doWithServerContext(ServerContext.java:103)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$Target.dispatch0(ObjectTable.java:595)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$Target.access$700(ObjectTable.java:212)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$5.run(ObjectTable.java:568)
	at com.sun.jini.start.AggregatePolicyProvider$6.run(AggregatePolicyProvider.java:527)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$Target.dispatch(ObjectTable.java:565)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$Target.dispatch(ObjectTable.java:540)
	at com.sun.jini.jeri.internal.runtime.ObjectTable$RD.dispatch(ObjectTable.java:778)
	at net.jini.jeri.connection.ServerConnectionManager$Dispatcher.dispatch(ServerConnectionManager.java:148)
	at com.sun.jini.jeri.internal.mux.MuxServer$2.run(MuxServer.java:244)
	at com.sun.jini.start.AggregatePolicyProvider$5.run(AggregatePolicyProvider.java:513)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.jini.jeri.internal.mux.MuxServer$1.run(MuxServer.java:241)
	at com.sun.jini.thread.ThreadPool$Worker.run(ThreadPool.java:136)
	at java.lang.Thread.run(Thread.java:613)

Mime
View raw message