Received: from www.kpi.com.au (www.kpi.com.au [203.39.132.210]) by hub.org (8.9.3/8.9.3) with ESMTP id UAA88563 for ; Tue, 11 Apr 2000 20:38:03 -0400 (EDT) (envelope-from shevlandj@kpi.com.au) Received: from kpi.com.au (ws06.kpi.com.au [203.39.132.219]) by www.kpi.com.au (8.9.3/8.9.3) with ESMTP id KAA33529; Wed, 12 Apr 2000 10:40:49 +1000 (EST) (envelope-from shevlandj@kpi.com.au) Message-ID: <38F3C681.B3738FE3@kpi.com.au> Date: Wed, 12 Apr 2000 10:42:41 +1000 From: Joe Shevland Organization: KPI Logistics Pty Ltd X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Paolo Sommaruga CC: pgsql-interfaces@postgresql.org Subject: Re: Re: Why fields order is wrong ? References: <0FSU00IBMVZWTF@porquerolles.garda-access.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200004/75 In short, a statement like: INSERT INTO Vehicles ( RegID, Owner ) VALUES ( 'DA1111', 'Bill' ) works from the psql CLI, but not through JDBC using PostgreSQL 7.0 beta 3 and prepared statements. Does this look like a version conflict with the JDBC drivers (is it worth compiling the ones that come with the beta again, I *think* they may still be using the 6.5.3/Java2 drivers. Cheers, Joe Paolo Sommaruga wrote: > > ------------- Begin Forwarded Message ------------- > [snipped] > > I have verified that the Postgres 7.0 beta3 works good If one insert manually > in > > psql the syntax which EJBoss calls > > > > [sql] executing statement INSERT INTO Books ( title, discount, authors, > price, > > code ) > > VALUES ( ? , ? , ? , ? , ? ) > > > > but with EJBoss there is the Exception > > > > [Exception] > > java.lang.NullPointerException > > at postgresql.util.PSQLException.translate(PSQLException.java:76) > > at postgresql.util.PSQLException.(PSQLException.java:45) > > at postgresql.fastpath.Fastpath.fastpath(Compiled Code) > > .... > > > > Paolo Sommaruga [snipped]