-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

William,

On 6/17/13 11:10 PM, William Kang wrote:
> I got the following error by submitting the code from RMI client to
> RMI server: java.rmi.ServerException: RemoteException occurred in
> server thread; nested exception is: java.rmi.UnmarshalException:
> error unmarshalling arguments; nested exception is: 
> java.lang.ClassNotFoundException: mypackage.SomeClass

I assume mypackage.SomeClass is one of your internal classes?

Typically, you need to provide the .class files for the objects you
expect to receive via RMI on the client as well as the server. If you
want to to dynamic .class file downloading from the server, you'll
need to do something like this:

http://stackoverflow.com/questions/4762430/rmi-question-where-do-clients-get-a-definition-for-remote-classes-that-have-no

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRwHwxAAoJEBzwKT+lPKRY2dcQAJdjP+7A9PjTjzNNdxFisFbE
H5r48HwEe5Nn87FNqDAsPAQTnERdAJfU089n6QuYh88uXuru/+Kqd9fXfLhq4Ver
0RClHNzUp41BsnJGQOO0yTeqn+FoZIH4qbKJbnhQjDYZG0fO/bsknnbUUi0II+SB
7EpXPdEtw8dhGlgkoQNmS7Q4lM3pnFOfm6Tuao/qwuIAZwIcYrAlCxzZWWAHvpBJ
K9nYAY632AKBd7XXpPvCeYahyoKCDRy1UxDqHITh1/qN9UgLIakVzSmWNgV58wae
CYutgDHXCeTDwU6P+cEoK4JZ/nE+FMgIQAc2SQOts6Y+xuflR16+/Ijh+Zejgbc1
x+3bdVVWPp6kb59of/yYmpHrhvsr1dAvjRXl486VU/WzYOs7B46SXIPeYtp6jljP
Le9P7JjDdzknXBfImB7QWkQmGBZ5tBplGCTAr8qdAQ7w7/Eflsc3MXWqyrsDlqZe
wlRBF+thftWN14YGvvg++Zu0S0I+hKyxZu4cDy3CsogmGBfurMIyjodtb7x8Ikqf
wQjSwFXpmn8GwaWuUr1i7kJ/blyipmCEh8hbWtqQRjFcpteFpTkx98NkJwGjrTXe
TVQVrEjV/UDcqdsqNZ90mzqrIJ8bTIpn1c7RM9XCz0KrMAZ6I81CtjtqFd+faAh+
V4zpLRTRn4nLHB7aUUUE
=nk0/
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to