Hello Steve and All,
Thankx for the info.
You should have noted that in my scenario I had mentioned that the
Bisuness class returns serealizable objects which is again passed as
serealizable objects back to thae applet. So there is no confusion
regarding serealization.
Doubt:
1. Could you pls give me more inputs regarding "serialVersionId class
variable"?What is it?
How and what i should do for my classes??(Could you pls send a piece
of code- it will be highly appreciated)
2. What was the content type you set for the URLConnection to pass
objects across the wire??
Does content type have any significance??
Thankx you all
Donny.
Scholnick Steve <[EMAIL PROTECTED]>@java.sun.com> on 01/19/2001
11:58:40 PM
Please respond to "A mailing list for discussion about Sun
Microsystem's Java Servlet API Technology."
<[EMAIL PROTECTED]>
Sent by: "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Re: Is OOconcepts(passin objects) of Java possible in
Applet->Ser vlet->Business class communication.???
we do something very similar to this operation with every connection
between our client and server. it should work.
what browser are you using? we are using the jdk plug-in. works
great.
it sounds like your object, that is being passed back the applet, does
not implement serializable. we had a problem with the
serialVersionIds not
matching between our client and server. we hadto add serialVersionId
class
variable
to all class, that were being passed over the wire.
-steve
> -----Original Message-----
> From: Donny Philip [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 19, 2001 12:56 PM
> To: [EMAIL PROTECTED]
> Subject: Is OOconcepts(passin objects) of Java possible in
> Applet->Servlet->Business class communication.???
>
>
> Hello..
>
> Here is a small problem I am facing with objects and Servlets.
>
>
> Program Scenario
> Communication between Applet->Servlet->Business class->Database.
>
> Code function.
> 1. Applet passes a identifier to servlet
> 2. Servlet instantiates the business class
> 3. Servlet invokes business class method.
> 4. Business class return serealizable objects
> 5. Servlet passes these objects back to applet
> 6. Applet instantiates the business class and type cast the return
> value to that specific class
> 7. Applets tries to access class variables.
>
> Doubt
> 1. Is such a scenario possible. It is giving me an ERROR.
> 2. If I return a vector instead of a class whole thing works
>
>
> Exception generate at applet while trying to read return object
> 1.EventDispatch Exception
>
> Pls note. Do let me know if i need to produce the exception and code
> for details.
>
>
> thankx
> Donny.
>
> ______________________________________________________________
> _____________
> 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
>
*****************************************************************
DISCLAIMER: The information contained in this e-mail may be
confidential
and is intended solely for the use of the named addressee. Access,
copying
or re-use of the e-mail or any information contained therein by any
other
person is not authorized. If you are not the intended recipient
please
notify us immediately by returning the e-mail to the originator.
___________________________________________________________________________
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