From: Tatsuo Ishii <t-ishii@sra.co.jp>
To: Ellen Spertus <spertus@ella.mills.edu>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] NullPointerException in blobtest (JDBC)
Date: Sun, 20 Jun 1999 14:41:57 +0900
Message-ID: <199906200541.OAA01611@ext16.sra.co.jp> (raw)
In-Reply-To: <19990620041141.44173.qmail@ella.mills.edu>
> I am getting a NullPointerException when running blobtest. I am using the latest version of everything:
>
> - postgresql 6.5
> - jdk 1.2
> - jdbc6.5-1.2
> - the version of blobtest.java that came with postgresql 6.5
> - OS: RH6.0
> - x86 (AMD K6)
[snip]
6.5 Large Objects requires each access to LO being inside a
transaction. Try following patches. Peter, can you check them?
---
Tatsuo Ishii
----------------------------------------------------------
inline patch 1: blobtest.java (+3/-0 lines) download inline-1.patch*** blobtest.java~ Tue Jan 13 11:19:16 1998
--- blobtest.java Sun Jun 20 14:10:59 1999
***************
*** 40,45 ****
--- 40,46 ----
// Connect to database
System.out.println("Connecting to Database URL = " + url);
db = DriverManager.getConnection(url, usr, pwd);
+ db.setAutoCommit(false);
System.out.println("Connected...Now creating a statement");
s = db.createStatement();
***************
*** 52,57 ****
--- 53,60 ----
// Now run tests using JDBC methods
//jdbcapi(db,s);
+ s.executeUpdate("commit");+
// Finally close the database
System.out.println("Now closing the connection");
s.close();
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: t-ishii@sra.co.jp, spertus@ella.mills.edu
Subject: Re: [INTERFACES] NullPointerException in blobtest (JDBC)
In-Reply-To: <199906200541.OAA01611@ext16.sra.co.jp>
* 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