tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicholas Albion" <>
Subject RE: NullPointerException from DriverManager.getConnection() -> JdbcOdbcDriver.initialize()
Date Mon, 09 Feb 2009 00:35:46 GMT
For whatever reason, I've had to down-grade from jdk1.6.0_06 to
jdk1.5.0_14/jre and it seems to be working

> all of a sudden, I'm getting a NullPointerException from the JDBC-ODBC
bridge, but only when I'm running the same code in Tomcat:
> java.lang.NullPointerException
>   at sun.jdbc.odbc.JdbcOdbcDriver.initialize(Unknown Source)
>   at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
>   at java.sql.DriverManager.getConnection(Unknown Source)
>   at java.sql.DriverManager.getConnection(Unknown Source)

> When I run the code below in JUnit, it works perfectly and no matter
what I try, I can't reproduce the bug in JUnit

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message