RE: problem with serialization
От | Dave Cramer |
---|---|
Тема | RE: problem with serialization |
Дата | |
Msg-id | 019501c11524$9dcf0280$8201a8c0@inspiron обсуждение исходный текст |
Ответ на | problem with serialization (candreol <Christophe.Andreoli@consol.de>) |
Список | pgsql-jdbc |
Chris, Can you send us your code. Or a snippet? Dave -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of candreol Sent: July 25, 2001 10:22 AM To: pgsql-jdbc@postgresql.org Subject: [JDBC] problem with serialization Hi! I am new here. I did a small test to try object serialization with the org.postgresql.util.Serialize class. I get the following exception when I try to use the at org.postgresql.util.Serialize.create Method. : java.lang.NullPointerException at org.postgresql.jdbc2.ResultSet.getString(ResultSet.java:148) at org.postgresql.util.Serialize.create(Serialize.java:241) at org.postgresql.util.Serialize.create(Serialize.java:220) I looked at create in Serialization.java and saw that the exception occurs at getString although I have no table corresponding to the class I want to serialize. if(!rs.next()){ // String lolo=rs.getString(1);} } Although the resultset is empty (because the table is absent) , why getString has been run ? Can you help me ? Chris ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://www.postgresql.org/search.mpl
В списке pgsql-jdbc по дате отправления: