Skip to Content.
Sympa Menu

freetds - Null pointer exception in Jbuilder

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Marc" <ms AT itsec.nl>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Null pointer exception in Jbuilder
  • Date: Mon, 29 Apr 2002 11:04:22 -0400


i'm trying to connect to a mssql 7.0 server on wich the sun jdbc driver
works perfectly.
but as soon as i call drivermanager.getconnection my program crashes with
a null pointer error.
i was able to trace the error to driver.class but i have'nt gotten
jbuilder to combine the class with the source to be more specific.

the url i use is as follows:
jdbc:freetsd:sqlserver://Diffie:1433/VOAccounts
this database works and confirmed with both sun jdbc and odbc drivers.

the driver i call is:
com.internetcds.jdbc.tds.driver

i use Jbuilder 6 on nt4 sp4 with jdk 1.3.1

there seems to be nothing wrong with the agruments since changing them
only leads to "incorrect driver" or understandable error messages.
as soon as i get them "right" and i run the program it gives me a null
pointer exception.

Exception- java.lang.NullPointerException
java.sql.SQLException
at
com.internetcds.jdbc.tds.Constructors.newConnection(Constructors.java:305)
at com.internetcds.jdbc.tds.Driver.connect(Driver.java:257)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at tdstry1.tds.main(tds.java:44)

i hope some of you can help me.

regards



  • Null pointer exception in Jbuilder, Marc, 04/29/2002

Archive powered by MHonArc 2.6.24.

Top of Page