RMI breaks my code on JRE Update 10

Discussion in 'Java' started by FutureScalper, Nov 17, 2008.

  1. 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
     
    FutureScalper, Nov 17, 2008
    #1
    1. Advertising

  2. On Nov 18, 3:00 am, FutureScalper <> wrote:
    ....
    > Works perfectly on JRE Update 5, Update 7, but is BROKEN with Update
    > 10.


    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>
    >http://groups.google.com/group/comp...3dc4d6b3c43/5b5368c1d5bb5f7b#5b5368c1d5bb5f7b


    --
    Andrew Thompson
    http://pscode.org/
     
    Andrew Thompson, Nov 17, 2008
    #2
    1. Advertising

  3. On Nov 17, 4:51 pm, Andrew Thompson <> wrote:
    > On Nov 18, 3:00 am, FutureScalper <> wrote:
    > ...
    >
    > > Works perfectly on JRE Update 5, Update 7, but is BROKEN with Update
    > > 10.

    >
    > 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>
    >
    > >http://groups.google.com/group/comp.lang.java.programmer/browse_frm/t...

    >
    > --
    > Andrew Thompsonhttp://pscode.org/


    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?
     
    FutureScalper, Nov 18, 2008
    #3
  4. On Nov 19, 1:03 am, FutureScalper <> wrote:

    > > Why did you abandon this thread?

    ....
    > 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.


    Here's an idea. 'Plonk'.

    --
    Andrew T.
     
    Andrew Thompson, Nov 18, 2008
    #4
  5. FutureScalper

    Arne Vajhøj Guest

    FutureScalper wrote:
    > On Nov 17, 4:51 pm, Andrew Thompson <> wrote:
    >> On Nov 18, 3:00 am, FutureScalper <> wrote:
    >>> Works perfectly on JRE Update 5, Update 7, but is BROKEN with Update
    >>> 10.


    >> 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.


    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
     
    Arne Vajhøj, Nov 18, 2008
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Buu Nguyen

    RMI, JINI or RMI/IIOP

    Buu Nguyen, Aug 25, 2004, in forum: Java
    Replies:
    1
    Views:
    568
    Sudsy
    Aug 25, 2004
  2. nospawn
    Replies:
    2
    Views:
    518
    Real Gagnon
    Apr 25, 2006
  3. Prasoon
    Replies:
    1
    Views:
    471
    Andrew Thompson
    Apr 13, 2007
  4. Artur McCennon
    Replies:
    0
    Views:
    404
    Artur McCennon
    Jul 22, 2009
  5. Jochen Brenzlinger
    Replies:
    5
    Views:
    928
    Roedy Green
    Sep 2, 2011
Loading...

Share This Page