Carlo Indolfi wrote:

> Hi to everybody!!
>
> Developing an application servlet-based, i need to pass an empty
> ResultSet Object from a servlet A to a servlet B, servlet B
> should fill the ResultSet passed and resend it back to servlet A.
> Well, when i try to resend back the ResultSet
> filled to servlet A, I'm facing the following exception:
>
> java.io.WriteAbortedException: Writing aborted by exception;
> java.io.NotSerializableException: oracle.jdbc.driver.OracleResultSet
>

Umm, I *do* believe that a NotSerializableException means that the
OracleResultSet is, err, not serializable :-).

You are going to need to use some other sort of data structure to accomplish
your goal of passing a container object back and forth -- one that you
explicitly declare to be Serializable (and all the instance variables inside
it must be as well).  The OracleResultSet object can't be serialized because
the author did not declare it Serializable (for some very logical reasons that
become clear when you look at how JDBC drivers are typically implemented).

Craig McClanahan

___________________________________________________________________________
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