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

Reply via email to