Merhaba Serkan,
Merhaba Yagiz,

I think there don't exist any objects of type MyDataObject in ObjectStream.
A possible reason is that you have not implemented the methods to read and
write the objects of type MyDataObject in an ObjectStream.

�nder �rnek
Software Developer
Slawik Consulting
Germany

"SERKAN TAS (IT-TMO)" schrieb:

> Hi Yagiz;
>
> MyObject class can be reached by by the applet,
> Find the code below
>
> Object tempObject = myInputStream.readObject();
>
>       MyDataObject myDataObject = (MyDataObject)tempObject;  // This
> couses the exception�
>
>         Regards.
>         Serkan�
>         -----Original Message-----
>         From:   Yagiz ERKAN [SMTP:[EMAIL PROTECTED]]
>         Sent:   26 Mart 1999 Cuma 10:54
>         To:     [EMAIL PROTECTED]
>         Subject:        Re: Object Casting Exception
>
>         "SERKAN TAS (IT-TMO)" wrote:
>
>         > Hi,
>         >
>         > I have an applet receiving object from servlet via
> ObjectStream, but
>         > while I am casting the Object to myObject I have a
>         > CastException,
>         >
>         > Can any one help me ?
>         >
>         > Serkan Tas
>
>         Merhaba Serkan,
>
>         I guess the applet has no access to "myObject" class file. If
> you use a JAR
>         file, check the file's content if the archive file contains this
> class.
>
>         Or, you can try to load the class with
> java.lang.Class.forName("myClassName");
>         ...If you have a "ClassNotFoundException", it means that your
> class doesn't
>         exist...
>
>         Hope it helps...
>         Regards,
>
>         --
>             Yagiz ERKAN
>             Project Manager
>             RAND Software - FRANCE
>             http://www.geocities.com/SiliconValley/Haven/7750/java.html
>             Galatasaray Lisesi - 124
>
> ________________________________________________________________________
> ___
>         To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
>         of the message "signoff SERVLET-INTEREST".
>
>         Archives:
> http://archives.java.sun.com/archives/servlet-interest.html
>         Resources:
> http://java.sun.com/products/servlet/external-resources.html
>         LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
begin:vcard
n;quoted-printable;quoted-printable:=D6rnek;=D6nder
x-mozilla-html:FALSE
fn;quoted-printable:=D6nder =D6rnek
org:Slawik Consulting;Software
adr:;;Warburger Str. 98;Paderborn;NRW;33098;Germany
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Developer
x-mozilla-cpt:;0
end:vcard

Reply via email to