From: | Christoph Steinbeck <steinbeck(at)ice(dot)mpg(dot)de> |
---|---|
To: | pgsql-interfaces <pgsql-interfaces(at)postgreSQL(dot)org> |
Subject: | JDBC: Using Serialize.create() |
Date: | 1999-09-06 12:54:15 |
Message-ID: | 37D3B977.60E36B4D@ice.mpg.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Hi,
has anyone been successfull in using public static void
create(Connection con, Object o) in Class Serialize to create a
postgresql table.
I have a simple class Atom that has an int and a float, that's it.
When I do a
Atom a = new Atom();
postgresql.Connection pc = (postgresql.Connection)db;
System.out.println(pc);
System.out.println(a);
Serialize.create(pc, a);
then I get
postgresql(dot)jdbc2(dot)Connection(at)25ab41
nmrshiftdb(dot)Atom(at)e3e60
java.lang.NullPointerException
The Connection db is valid since I can create tables using regular SQL
statements.
Also, as one can see, my instance of Atom is not null.
Any hints?
TIA,
Chris
--
Dr. Christoph Steinbeck (http://www.ice.mpg.de/~stein)
MPI of Chemical Ecology, Tatzendpromenade 1a, 07745 Jena, Germany
Tel: +49(0)3641 643644 - Mobile: +49(0)177 8236510 - Fax: +49(0)3641
643665
What is man but that lofty spirit - that sense of enterprise.
... Kirk, "I, Mudd," stardate 4513.3..
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Mount | 1999-09-06 13:26:27 | RE: [INTERFACES] JDBC: Using Serialize.create() |
Previous Message | Peter Mount | 1999-09-06 11:37:11 | RE: [INTERFACES] JDBC: What is 'String type' in Serialize()-const ructor? |