HP3000-L Archives

November 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Richard Gambrell <[log in to unmask]>
Reply To:
Richard Gambrell <[log in to unmask]>
Date:
Thu, 15 Nov 2001 22:00:09 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (91 lines)
BTDT. This problem was fixed in a later release of JDBC.
Explanation is below.
Richard

-------- Original Message --------
Subject: Re: [HP3000-L] Loading the HP JDBC driver (Java) second try
Date: Thu, 18 Jan 2001 10:51:27 +0100
From: Fabrice Viault <[log in to unmask]>
Reply-To: Fabrice Viault <[log in to unmask]>
To: [log in to unmask]

Hi,

Actually, It is a HP JDBC driver "BUG". I think it will be solve in the next
release. To pass this trouble, try :

....
  System.setProperty("jdbc.drivers", drivers); // or Class.forName(....)
  DriverManager.setLogStream( System.out); // Bcause PointerException.
  connection = DriverManager.getConnection(url, username, password);
....

setLogStream (JDK 1.1.X) is a depreciated method ( replaced by setLogWriter
JDK 1.2.x and JDBC 2). The default logWritter is null. For debug or just
trace, you can set the logStream to any PrintStream you want: standard
output, file, printer ...
With the new method setLogWriter you can set the logWriter to a PrintWriter.


-------------------------------------------------------------------------

Bruce Toback wrote:
>
> Hi all,
>
> Sorry to interrupt the festivities, but I have a technical question.
>
> I've been trying on and off to get JDBC working with IMAGE/SQL. I finally
> decided that I'd just take an evening and try to make it work. However,
> I'm stuck.
>
> When my little program tries to load HP's JDBC driver, I get an exception:
>
> >Exception in thread "main" java.lang.ExceptionInInitializerError:
> >java.lang.Null
> >PointerException
> >        at java.io.Writer.<init>(Writer.java:75)
> >        at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:98)
> >        at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:87)
> >        at java.io.PrintWriter.<init>(PrintWriter.java:110)
> >        at java.io.PrintWriter.<init>(PrintWriter.java:94)
> >        at com.hp.jdbc.allbase.JdbcDriver.<clinit>(JdbcDriver.java:77)
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:124)
> >        at javatest3.<init>(javatest3.java:10)
> >        at javatest3.main(javatest3.java:45)
>
> So I've obviously got the driver in the CLASSPATH because the exception
> comes from the HP code. I've tried this on MacOS X (JDK 1.3.1) and on
> Linux (JDK 1.2.?). I get the same thing either way.
>
> Any clues?
>
> Thanks,
> -- Bruce
>
> --------------------------------------------------------------------------
> Bruce Toback    Tel: (602) 996-8601| My candle burns at both ends;
> OPT, Inc.            (800) 858-4507| It will not last the night;
> 11801 N. Tatum Blvd. Ste. 142      | But ah, my foes, and oh, my friends -
> Phoenix AZ 85028                   | It gives a lovely light.
> btoback AT optc.com                |     -- Edna St. Vincent Millay
> Mail sent to [log in to unmask] will be inspected for a
> fee of US$250. Mailing to said address constitutes agreement to
> pay, including collection costs.
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

--
Richard L Gambrell, Senior Information Technology Consultant and
Director of Computing Systems and Networks
Information Technology Division, University of Tennessee at Chattanooga
Fax: 423-755-4150                Support Help-Desk: 423-755-4000
Direct phone: 423-755-5316       ITD Business Office: 423-757-1755
Mobile (urgent): 423-432-5122    Main UTC: 423-755-4111
Email: [log in to unmask]

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2