Re: RMI-USERS Digest - 6 Nov 2008 to 18 Nov 2008 (#2008-39)
Abdullah Odeh Al-Zaghameem <[email protected]> Thu, 20 Nov 2008 04:33:27 -0700
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
On Thu, 20 Nov 2008 20:44:25 +1100, Esmond Pitt FACS=20 <[email protected]> wrote: >1. RE: ClassCastException with inner-class application > >> java.lang.ClassCastException: cannot assign instance of $Proxy2 to fie= ld > >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. The applications on both sides use the same package-name hierarchy, and t= he=20 interface is live within a jar Library imported to both applications. > >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 vi= a >UnicastRemoteObject.exportObject(). My note was: (at least before 1.5), so what about adapting a legacy=20 applications. > >> 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 t= he >Remote interface, then we, again, violate the production of a full healt= hy >Object. > >As the Remote interface is empty it is difficult to see why this should = be >so. > >EJP > >=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >To unsubscribe, send email to [email protected] and include in the b= ody >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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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