pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Steinbeck <steinbeck@ice.mpg.de>
To: pgsql-interfaces <pgsql-interfaces@postgreSQL.org>
Subject: JDBC: Using Serialize.create()
Date: Mon, 06 Sep 1999 14:54:15 +0200
Message-ID: <37D3B977.60E36B4D@ice.mpg.de> (raw)

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..



view thread (2+ messages)  latest in thread

Message-ID: <37D3B977.60E36B4D@ice.mpg.de>
Permalink:  ../37D3B977.60E36B4D@ice.mpg.de/
Also on:    postgresql.org/message-id/37D3B977.60E36B4D@ice.mpg.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: steinbeck@ice.mpg.de
  Subject: Re: JDBC: Using Serialize.create()
  In-Reply-To: <37D3B977.60E36B4D@ice.mpg.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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