 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
David Guest
|
Posted: Wed Mar 28, 2007 6:15 pm Post subject: java.rmi.UnmarshalException: error unmarshalling arguments; |
|
|
Dear all,
I have a very simple application, one server, one client.
in the server side, I created an application to do a simple calculation by
passing 2 values
in the client application, just call this remote method and pass 2 values to
it
so I created the server interface and server implementation, and also the
client program to call this method.
I also created the server implementation stub.
I go to the jbuilder2006\jdk1.5\bin
set classpath = $whereMyClassFileLocated$
start RMIREGISTRY
however when I run my server application within the jbuilder IDE (please
note that the RMIRegistry is in the same machine)
I got the error:
Remote exception: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: exercise.SampleServerImpl_Stub
I do have my stub class there. any reason? thanks very much
david |
|
| Back to top |
|
 |
Doychin Bondzhev Guest
|
Posted: Wed Mar 28, 2007 6:27 pm Post subject: Re: java.rmi.UnmarshalException: error unmarshalling argumen |
|
|
What application server you use to do this?
Check your server deployment archive that it contains the necessary classes.
Doychin
David wrote:
| Quote: | Dear all,
I have a very simple application, one server, one client.
in the server side, I created an application to do a simple calculation by
passing 2 values
in the client application, just call this remote method and pass 2 values to
it
so I created the server interface and server implementation, and also the
client program to call this method.
I also created the server implementation stub.
I go to the jbuilder2006\jdk1.5\bin
set classpath = $whereMyClassFileLocated$
start RMIREGISTRY
however when I run my server application within the jbuilder IDE (please
note that the RMIRegistry is in the same machine)
I got the error:
Remote exception: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: exercise.SampleServerImpl_Stub
I do have my stub class there. any reason? thanks very much
david
|
|
|
| Back to top |
|
 |
David Guest
|
Posted: Wed Mar 28, 2007 6:38 pm Post subject: Re: java.rmi.UnmarshalException: error unmarshalling argumen |
|
|
I am not using any application server, just a simple java program doing the
calculation on the server side.
any idea?
I used to make it work several days ago but now I can't figure it out why.
thanks
david
"Doychin Bondzhev" <doychin@dsoft-bg.com> wrote in message
news:460a6d2e$1 (AT) newsgroups (DOT) borland.com...
| Quote: | What application server you use to do this?
Check your server deployment archive that it contains the necessary
classes.
Doychin
David wrote:
Dear all,
I have a very simple application, one server, one client.
in the server side, I created an application to do a simple calculation
by passing 2 values
in the client application, just call this remote method and pass 2 values
to it
so I created the server interface and server implementation, and also the
client program to call this method.
I also created the server implementation stub.
I go to the jbuilder2006\jdk1.5\bin
set classpath = $whereMyClassFileLocated$
start RMIREGISTRY
however when I run my server application within the jbuilder IDE (please
note that the RMIRegistry is in the same machine)
I got the error:
Remote exception: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: exercise.SampleServerImpl_Stub
I do have my stub class there. any reason? thanks very much
david
|
|
|
| Back to top |
|
 |
David Guest
|
Posted: Wed Mar 28, 2007 6:43 pm Post subject: Re: java.rmi.UnmarshalException: error unmarshalling argumen |
|
|
I presume the 'Application Server' you mean was the web server, so I am not
using any.
I just created the java program and run it using the JDK1.5 comes with the
Jbuilder 2006, but I got this error when starting the server program.
my OS is running WXPSP2, and certainly I started the RMIRegistry before I
started the server program.
my intent is, once I started the server, I can run the client program from
another machine.
another one of my question is, how do I know the class path is set correct
in the RMIRegistry? what I can do is just set classpath=xxxx and then start
the rmiregistry, but there's no way for me to check it out after the
rmiregistry is started. thanks
david
"David" <friendisvital (AT) yahoo (DOT) com> wrote in message
news:460a6fe3$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I am not using any application server, just a simple java program doing the
calculation on the server side.
any idea?
I used to make it work several days ago but now I can't figure it out why.
thanks
david
"Doychin Bondzhev" <doychin@dsoft-bg.com> wrote in message
news:460a6d2e$1 (AT) newsgroups (DOT) borland.com...
What application server you use to do this?
Check your server deployment archive that it contains the necessary
classes.
Doychin
David wrote:
Dear all,
I have a very simple application, one server, one client.
in the server side, I created an application to do a simple calculation
by passing 2 values
in the client application, just call this remote method and pass 2
values to it
so I created the server interface and server implementation, and also
the client program to call this method.
I also created the server implementation stub.
I go to the jbuilder2006\jdk1.5\bin
set classpath = $whereMyClassFileLocated$
start RMIREGISTRY
however when I run my server application within the jbuilder IDE (please
note that the RMIRegistry is in the same machine)
I got the error:
Remote exception: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: exercise.SampleServerImpl_Stub
I do have my stub class there. any reason? thanks very much
david
|
|
|
| Back to top |
|
 |
David Guest
|
Posted: Wed Mar 28, 2007 6:52 pm Post subject: Re: java.rmi.UnmarshalException: error unmarshalling argumen |
|
|
hi Doychin,
thanks for help, I don't know why
but I just added the path of the jdk1.5\bin into the envrionment settings
and then it works. I am not sure why I have to do it, because previously I
was running the jvm under the jdk1.5\bin folder anyway
thanks for help.
david
"Doychin Bondzhev" <doychin@dsoft-bg.com> wrote in message
news:460a6d2e$1 (AT) newsgroups (DOT) borland.com...
| Quote: | What application server you use to do this?
Check your server deployment archive that it contains the necessary
classes.
Doychin
David wrote:
Dear all,
I have a very simple application, one server, one client.
in the server side, I created an application to do a simple calculation
by passing 2 values
in the client application, just call this remote method and pass 2 values
to it
so I created the server interface and server implementation, and also the
client program to call this method.
I also created the server implementation stub.
I go to the jbuilder2006\jdk1.5\bin
set classpath = $whereMyClassFileLocated$
start RMIREGISTRY
however when I run my server application within the jbuilder IDE (please
note that the RMIRegistry is in the same machine)
I got the error:
Remote exception: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: exercise.SampleServerImpl_Stub
I do have my stub class there. any reason? thanks very much
david
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|