logo       

Re: Why is java.rmi.server.SkeletonMismatchException deprecated?: msg#00045

java.sun.rmi

Subject: Re: Why is java.rmi.server.SkeletonMismatchException deprecated?

On Aug 27, 2004, at 11:00 PM, Joseph Shraibman <jks@xxxxxxxxxxxxxxx>
wrote:
Why is java.rmi.server.SkeletonMismatchException deprecated? I just
got
it using jdk 1.4.2 so it is still being used.

Just to step back a bit --

rmi.server.SkeletonMismatchException is deprecated because as of JDK
1.2, the skeleton classes, although still generated by rmic, are no
longer used on the server side. For details, see:
<http://java.sun.com/j2se/1.4.2/docs/api/java/rmi/server/
SkeletonMismatchException.html>
<http://java.sun.com/j2se/1.4.2/docs/guide/rmi/spec/rmi-arch2.html>

If you're still seeing a SkeletonMismatchException, then there's
something funny going on, since the _Skel class should not be bound in
to your app.


On Aug 27, 2004, at 11:00 PM, Joseph Shraibman <jks@xxxxxxxxxxxxxxx>
wrote:
Can you explain how you got it?

I was trying to generate exceptions (to make sure my app handles them
properly) and I made sure that the client and the server didn't have
the
same version of the stub and skel.

...and...

java.rmi.UnmarshalException: invalid method hash
[snip]

...and...

RemoteException occurred in server thread; nested exception is:
java.rmi.server.SkeletonMismatchException: interface hash
mismatch
[snip]

Based on these three statements, it looks to me like the
UnmarshallException is being properly generated when the interface on
the server and client side don't match. The SkeletonMismatchException
could be generated (as Peter Jones pointed out) by a number of causes:
use of the 'v1.1' rmic option, or an old v1.1 rmic, or a server (or
client) running JDK 1.1. If it's not any of the above causes, then
there must be something going on that is not being considered --
probably something that would bind the _Skel class to your app even
though that's not what you want to happen.

But I'm just a newbie to RMI, so take my advice with a BOULDER of salt.

===========================================================================
To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the body
of the message "signoff RMI-USERS". For general help, send email to
listserv@xxxxxxxxxxxx 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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise