pg.ddx.io pgsql-interfaces@postgresql.org mailing list archivehelp / color / mirror / Atom feed
JDBC: Using Serialize.create() 2+ messages / 2 participants [nested] [flat]
* JDBC: Using Serialize.create() @ 1999-09-06 12:54 Christoph Steinbeck <steinbeck@ice.mpg.de> 0 siblings, 0 replies; 2+ messages in thread From: Christoph Steinbeck @ 1999-09-06 12:54 UTC (permalink / raw) To: 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.jdbc2.Connection@25ab41 nmrshiftdb.Atom@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.. ^ permalink raw reply [nested|flat] 2+ messages in thread
* RE: [INTERFACES] JDBC: Using Serialize.create() @ 1999-09-06 13:26 Peter Mount <petermount@it.maidstone.gov.uk> 0 siblings, 0 replies; 2+ messages in thread From: Peter Mount @ 1999-09-06 13:26 UTC (permalink / raw) To: 'steinbeck@ice.mpg.de' <steinbeck@ice.mpg.de>; pgsql-interfaces Could you email me a copy of Atom, so I can see what's being Serialised. Peter -- Peter Mount Enterprise Support Maidstone Borough Council Any views stated are my own, and not those of Maidstone Borough Council. -----Original Message----- From: Christoph Steinbeck [mailto:steinbeck@ice.mpg.de] Sent: 06 September 1999 13:54 To: pgsql-interfaces Subject: [INTERFACES] JDBC: Using Serialize.create() 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.jdbc2.Connection@25ab41 nmrshiftdb.Atom@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.. ************ ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-09-06 13:26 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 1999-09-06 12:54 JDBC: Using Serialize.create() Christoph Steinbeck <steinbeck@ice.mpg.de> 1999-09-06 13:26 RE: [INTERFACES] JDBC: Using Serialize.create() Peter Mount <petermount@it.maidstone.gov.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox