RMI breaks my code on JRE Update 10

FutureScalper

Usenet Archive
Joined
Jan 11, 2008
Messages
52
Reaction score
0
RemoteIndicatorServiceImpl serverImpl = new RemoteIndicatorServiceImpl (rmiServiceName);

Naming.rebind(rmiServiceName, serverImpl);

Works perfectly on JRE Update 5, Update 7, but is BROKEN with Update
10.

Exception below indicates it cannot load the class

java.lang.ClassNotFoundException:
com.twc.remote.RemoteIndicatorService

Update 10 imposes some bizarre security restriction, as far as I can see, which prevents the deployment of the RMI service.

WTF ??? What has changed? I have spent about 8 hours trying to find a workaround, no cigar.

ERR: 08.11.17 10:25:09.594: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException:
com.twc.remote.RemoteIndicatorService
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException:
com.twc.remote.RemoteIndicatorService
at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Unknown Source) at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer (Unknown Source) at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) at sun.rmi.server.UnicastRef.invoke(Unknown Source) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at java.rmi.Naming.rebind(Unknown Source) at com.twc.trader.ZoneTrader.<init>(Unknown Source) at com.twc.trader.ZoneTrader.createAndShowGUI(Unknown Source) at com.twc.trader.ZoneTrader.access$4(Unknown Source) at com.twc.trader.ZoneTrader$95.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException:
com.twc.remote.RemoteIndicatorService
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Unknown Source) at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.twc.remote.RemoteIndicatorService
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at sun.rmi.server.LoaderHandler.loadProxyInterfaces(Unknown Source) at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source) at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source) at java.rmi.server.RMIClassLoader$2.loadProxyClass(Unknown Source) at java.rmi.server.RMIClassLoader.loadProxyClass(Unknown Source) at sun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown Source) at java.io_ObjectInputStream.readProxyDesc(Unknown Source) at java.io_ObjectInputStream.readClassDesc(Unknown Source) at java.io_ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io_ObjectInputStream.readObject0(Unknown Source) at java.io_ObjectInputStream.readObject(Unknown Source)
... 12 more
 

Andrew Thompson

Usenet Archive
Joined
Jan 16, 2003
Messages
9,476
Reaction score
0

FutureScalper

Usenet Archive
Joined
Jan 11, 2008
Messages
52
Reaction score
0
Is your news reader also broken (checks origin of
post)?  Of course your new reader is broken, but
you seem to be operating it in a way that is even
more broken than usual.

Why did you abandon this thread?
<http://groups.google.com/group/comp.lang.java.programmer/browse_frm/ thread/78fd43dc4d6b3c43/5b5368c1d5bb5f7b#5b5368c1d5bb5f7b>

Let's discuss why the RMI area in Update 10 has changed, broken my code, and how I can possibly work around it. That would help me.

Somebody with some ideas?
 

Arne Vajhøj

Usenet Archive
Joined
Sep 5, 2006
Messages
7,716
Reaction score
0
Let's discuss why the RMI area in Update 10 has changed, broken my code, and how I can possibly work around it. That would help me.

Keeping the discussion in a single thread would help those that may want and be able to help you.

You don't want to help them, so ....

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,246
Members
248,133
Latest member
DujonT

Latest Threads

Top