Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

NullPointerException during logon

322340Jul 12 2004 — edited Jul 12 2004
Hi, I am trying to connect to Oracle 9.2.0.4 with the thin 9.2.0.3 drivers with Java HotSpot(TM) Server VM (build 1.4.1_01-b01, mixed mode) on Linux, and I get this exception when I try to connect to the db:
java.lang.NullPointerException
        at oracle.jdbc.ttc7.O3log.marshal(O3log.java:612)
        at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:258)
        at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:360)
        at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
< my code >
In my code, I'm calling
java.sql.DriverManager.getConnection( jdbcUrl, user, password );
The weird thing is that my code works for all of my apps but one. I'm wondering what this error indicates; I've check my three variables to make sure they're not null.. and I don't really know where else to look.

Comments

322340
Well, I replacing the driver libraries with some older 9iRelease 1 drivers I have, and this problem has gone away. I still don't know what might have caused it - but I would like to be able to update them at some time.
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 9 2004
Added on Jul 12 2004
1 comment
330 views