Hibernate Exception: org.hibernate.HibernateException: unknown Oracle major version [0]

I transferred one project with Hibernate 3 to Hibernate 3.2, when i run it i got such Exception:

Caused by: org.hibernate.HibernateException: unknown Oracle major version [0]
........

Solution:
I was using the old Oracle classes12.jar driver lib, this could to be an issue for Hibernate 3.2 where OracleDriver.getMajorVersion returns 0, this in turn confuses hibernate.
Upgrade classes12.jar to ojdbc14.jar fixed the problem.

Refer:
https://forum.hibernate.org/viewtopic.php?p=2373597


Blog

Comments

Post new comment

Smileys
{:)}{;)}{:(}{:D}{}:)}{:P}{:O}{:?}{8)}{:jawdrop:}{:sick:}
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • You may quote other posts using [quote] tags.
  • Glossary terms will be automatically marked with links to their descriptions.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
"ipe ojuf ipe ekir axaba"