Re: error Dynamic stub download

Deleep Kumar <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Hi,
Thank you.

here is the complete information regarding my error

1. Server Command line:---  say server ip=10.0.43.52

java -Djava.security.policy=%SIM_HOME%\bin\test.policy
com.occamsimulator.event.SimuServer

2. yes the client codebase's Http server shows the
client.jar--10.0.43.14

java -Djava.security.policy=test.policy
-Djava.rmi.server.codebase="http://10.0.43.14/manual/private/Client.jar"
SimuClient 10.0.43.52 com.occamnetworks.mgmt.api.intfc.t1.T1Event

3. error that i am getting here is
  the  client stub not found
java.lang.ClassNotFoundException: SimuClient_Stub (no security manager:
RMI class loader disabled)

complete error



EventClassclass com.occamnetworks.mgmt.api.intfc.t1.T1Event
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
        java.rmi.UnmarshalException: error unmarshalling arguments;
nested exception is:
        java.lang.ClassNotFoundException: SimuClient_Stub (no security
manager: RMI class loader disabled)
        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.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
        at
com.occamsimulator.event.EventDispatcherImpl_Stub.addEventListener(Unknown Source)
        at SimuClient.<init>(SimuClient.java:73)
        at SimuClient.main(SimuClient.java:105)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments;
nested exception is:
        java.lang.ClassNotFoundException: SimuClient_Stub (no security
manager: RMI class loader disabled)
        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.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: SimuClient_Stub (no
security manager: RMI class loader disabled)
        at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
        at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
        at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
        at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
        at sun.rmi.server.MarshalInputStream.resolveClass(Unknown
Source)
        at java.io.ObjectInputStream.readNonProxyDesc(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)
        at sun.rmi.server.UnicastRef.unmarshalValue(Unknown Source)



thnaks
deleep





On Sat, 2005-10-29 at 05:31, Peter Jones - JavaSoft East wrote:
> We would need more information in order to provide any help, starting
> with the complete stack trace of the exception(s) encountered.  Also
> potentially useful would be
>
> - the server command line
> - whether the client codebase's HTTP server shows the client.jar being
>   downloaded
> - the System.err output of the server with RMI class loading logging
>   enabled[*]
> - etc.
>
> -- Peter
>
> [*] Use "-Dsun.rmi.loader.logLevel=v" or configure the sun.rmi.loader
> logger:
>         http://java.sun.com/j2se/1.5.0/docs/guide/rmi/logging.html
>
>
> Quoting Deleep Kumar <[email protected]>:
> > Hi,
> > i am trying to Download the client stub at the server side dynamically.
> > but i am unable to the same.
> >
> > for this i am using the following codebase and policy file.
> > please check and get back me
> >
> >
> > codebase :  at Client
> > ---------
> > java -cp $CLASSPA -Djava.security.policy=test.policy
> > -Djava.rmi.server.codebase="http://10.0.43.14/~nkumar/public_html/rmi/client.jar" SimuClient 10.0.43.52
> >
> > policy file :
> > -----------
> >
> > grant {
> > permission java.security.AllPermission;
> > };
> >
> > grant
> > {
> >  permission java.net.SocketPermission "*:1024-65535",
> > "connect,accept,resolve";
> >  permission java.net.SocketPermission "*:1-1023","connect,resolve";
> > };
>
> ===========================================================================
> To unsubscribe, send email to [email protected] and include in the body
> of the message "signoff RMI-USERS".  For general help, send email to
> [email protected] and include in the body of the message "help".
>
> For a list of frequently asked RMI questions please refer to:
> http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html
>
> To view past RMI-USERS postings, please see:
> http://archives.java.sun.com/archives/rmi-users.html
--
Thanks & Regards
N.Deleep Kumar
Member of Technical Staff
Velankani Software Pvt Ltd
#43,Electronic city Phase-II
Bangalore-560100
Tel:    91-80-5514 5300/01 X-5383
Direct: 91-80-5514 5383
Fax:    91-80-5514 5303
Mail:   [email protected]
Url:    www.Velankani.com

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.