I have an applet that talks to a servlet in order to get information from an informix database. The servlet connects to the database using JDBC. It actually uses the code from the "common.jar" file.(Which by the way has proved to be very handy) This has worked fine on an NT box, but when I try to run it on a Unix box I get this exception message >> ObjectServer: java.io.NotSerializableException: com.informix.jdbc.IfxResultSet
Hi, what is common.jar? some informix specific library. If you look at the Java 1.2 API you will find that ResultSet is not Serializable. Ashwin.
Joined: Jul 17, 2000
An addition to the above answer: Refering to the Java 1.2 API for ResultSet, therer are functions like updateRow() and updateString() which will not be able to work on remote connections as they update the DB directly. Thus, ResultSet is not serializable and cannot be used accross the network on different machines. However, you can extract the data out of the ResultSet and send that across the network. Hope this helps. Ashwin.