Re: RMI-USERS Digest - 6 Nov 2008 to 18 Nov 2008 (#2008-39)
Esmond Pitt FACS <[email protected]> Thu, 20 Nov 2008 20:44:25 +1100
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Organization | Melbourne Software Company |
| Message-ID | <20081120094411.TOUB1935.nschwotgx01p.mx.bigpond.com@toshibakx1wgjb> |
1. RE: ClassCastException with inner-class application > java.lang.ClassCastException: cannot assign instance of $Proxy2 to field There are two causes for that. (1) the interface implemented by the remote object doesn't extend Remote (2) the interface implemented by the remote object isn't the same as the interface expected by the client, i.e. you have copied the interface into another package. 2. RE: RMI and OS (Object Schizophrenia ) > In RMI model, the Object should extend the UnicastRemoteObject class False. It *may* do so, or it may extend anything else and be exported via UnicastRemoteObject.exportObject(). > then, clearly, we realize one of OS characteristics. No we don't, because your premiss is false. > Also, the Object should implement an interface which in turn extends the Remote interface, then we, again, violate the production of a full healthy Object. As the Remote interface is empty it is difficult to see why this should be so. EJP =========================================================================== 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