Serialize Exception

From: Jarek <s0553(at)pjwstk(dot)waw(dot)pl>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Serialize Exception
Date: 2001-02-17 13:04:45
Message-ID: 01021714044505.20669@yellow
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

OK here is code :

Ziu z = new Ziu();

Class.forName("org.postgresql.Driver");
db = DriverManager.getConnection(url, usr, pwd);

Serialize.create((org.postgresql.Connection) db,z.getClass());

Serialize s = new Serialize((org.postgresql.Connection) db,
Serialize.toPostgreSQL( z.getClass().getName() ) ) ;
//and here i have Exception described below

int oid = s.store(z);

Ziu zz = (Ziu ) s.fetch(oid);

============================

Exception in thread "main" java.lang.NullPointerException
at org.postgresql.jdbc2.ResultSet.getString(ResultSet.java:148)
at org.postgresql.util.Serialize.create(Serialize.java:241)
at Test.main(Test.java:31)

============================

Please I need help with that !!!!
Why is the Exception , what should I do to avoid that (...) Exception!

--
MS is not the answer.
MS is the question.
NO (or Linux) is the answer.

:) Jarek (:

-------------------------------------------------------

--
MS is not the answer.
MS is the question.
NO (or Linux) is the answer.

:) Jarek (:

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jarek 2001-02-17 15:18:09 JDBC driver
Previous Message Jarek 2001-02-17 12:38:46 Serialize