New RMI Problem [message #134239] |
Tue, 23 September 2003 09:58 |
Eclipse User |
|
|
|
Originally posted by: lists.luebken.spamremove.com
Hi there
Well I have a rmi server running in an eclipse plugin.
All worked fine until I added some classes to my serialized objects from
the org/eclipse/core/runtime plugin. (Status and CoreException)
Now when invoking Naming.rebind I'll get an Error.
Any Idea ?
Thanks in advance
MAtt
StackTrace:
========================
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef .java:349)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.ja va:207)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspo rt.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCP Transport.java:701)
at java.lang.Thread.run(Thread.java:536)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServ er(StreamRemoteCall.java:247)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteC all.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at
de.itwps.uke.StartupServices.bindPatientenService(StartupSer vices.java:203)
at de.itwps.uke.StartupServices.access$1(StartupServices.java:1 36)
at de.itwps.uke.StartupServices$MyRunnable.run(StartupServices. java:67)
at de.itwps.uke.StartupServices.run(StartupServices.java:123)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:295)
at org.eclipse.core.launcher.Main.run(Main.java:751)
at org.eclipse.core.launcher.Main.main(Main.java:587)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
de.itwps.uke.service.AbstractPatientenServiceServer_Stub.cla ss$(Unknown
Source)
at
de.itwps.uke.service.AbstractPatientenServiceServer_Stub.<clinit >(Unknown
Source)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessorFactory.java:20)
at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:779)
at java.lang.reflect.Field.getFieldAccessor(Field.java:760)
at java.lang.reflect.Field.getLong(Field.java:398)
at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass. java:1434)
at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java: 45)
at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:331)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:329)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:249)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.jav a:449)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream .java:1521)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.ja va:1435)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre am.java:1626)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java: 324)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef .java:342)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.ja va:207)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspo rt.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCP Transport.java:701)
at java.lang.Thread.run(Thread.java:536)
|
|
|
Re: New RMI Problem [message #134486 is a reply to message #134239] |
Tue, 23 September 2003 15:10 |
Eclipse User |
|
|
|
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM
Le Tue, 23 Sep 2003 11:58:19 +0200, Matthias Luebken
<lists@luebken.spamremove.com> a écrit :
>Hi there
>Well I have a rmi server running in an eclipse plugin.
>All worked fine until I added some classes to my serialized objects from
>the org/eclipse/core/runtime plugin. (Status and CoreException)
>Now when invoking Naming.rebind I'll get an Error.
>
>Any Idea ?
Did you define org.eclipse.core.runtime as a required plugin in your
plugin.xml file?
--
Olivier
|
|
|
Re: New RMI Problem [message #134572 is a reply to message #134486] |
Tue, 23 September 2003 17:54 |
Eclipse User |
|
|
|
Originally posted by: lists.luebken.spamremove.com
> Did you define org.eclipse.core.runtime as a required plugin in your
> plugin.xml file?
yap.
It wouldn't compile otherwise.
I guess it has something to do with the rmi serialization.
Is there anything I should look for ?
matt
|
|
|
|
Re: New RMI Problem [message #134993 is a reply to message #134618] |
Wed, 24 September 2003 12:49 |
Eclipse User |
|
|
|
Originally posted by: lists.luebken.spamremove.com
Thanks
this might be the problem.
I manually added runtime.jar to the <runtime> element in my plugin.xml
(... <library name="lib/runtime.jar"/> ...)
and it seems to work.
I still don't no why.
I first thought it has something to do with running in the development
mode. But adding the lib worked outside eclipse too.
Matt
Genady wrote:
> RMI support in eclipse plugins still puzzles me a lot. My uneducated
> guess would be that you first, find whether the exception is thrown by
> the client or by the server. I case it is thrown by the client (the
> server is your plugin), try adding the code plugin to the codebase
> exported by the plugin server.
>
> Genady
|
|
|
Re: New RMI Problem [message #260955 is a reply to message #134993] |
Tue, 13 July 2004 02:09 |
Eclipse User |
|
|
|
Originally posted by: ted.x.y.z.com
Matthias Luebken wrote:
> Thanks
> this might be the problem.
>
> I manually added runtime.jar to the <runtime> element in my plugin.xml
> (... <library name="lib/runtime.jar"/> ...)
> and it seems to work.
>
> I still don't no why.
> I first thought it has something to do with running in the development
> mode. But adding the lib worked outside eclipse too.
>
> Matt
>
>
> Genady wrote:
>
>> RMI support in eclipse plugins still puzzles me a lot. My uneducated
>> guess would be that you first, find whether the exception is thrown by
>> the client or by the server. I case it is thrown by the client (the
>> server is your plugin), try adding the code plugin to the codebase
>> exported by the plugin server.
>>
>> Genady
>
>
>
Hi, Matthias:
That problem comes out from the Eclipse plugin class loading mechanism.
Eclipse plugin's class loading is different from general java application.
Eclipse plugin even will not load the classes you put in the JRE's
extension libraries.
Ted Zhou
|
|
|
Powered by
FUDForum. Page generated in 0.03316 seconds