I was facing the below issue when I use Oracle 9 JDBC driver along with Hibernate 3.6,


Initial SessionFactory creation oracle.jdbc.driver.OracleDatabaseMetaData.getDatabaseMajorVersion()I
Exception in thread “main” java.lang.NullPointerException
at org.hibernate.tutorial.test.EventManager.createAndStoreEvent(
at org.hibernate.tutorial.test.EventManager.main(



Switching to Oracle jdbc driver solved the problem immediately, without any configuration change requirements.


Download link:


Remember that Oracle recommends you to use 10 series drivers even if you are connecting to a 8 or 9 series database server!





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: