org.hibernate.HibernateException: unknown Oracle major version After Upgrading Database to 12C
(Doc ID 2146482.1)
Last updated on JUNE 05, 2023
Applies to:
JDBC - Version 12.1.0.2.0 to 12.1.0.2.0 [Release 12.1]Information in this document applies to any platform.
Symptoms
After database upgrade from 11.2.0.3 to 12.1.0.2, JBOSS application connects with JDBC 11.2.0.3 to the database but the application is reporting the following errors:
ERROR
--------------
13:26:01,094 WARN [UMLocalSessionFactoryBean] Error occured while determining Database name
org.hibernate.HibernateException: unknown Oracle major version [12]
at org.hibernate.dialect.DialectFactory$1.getDialectClass(DialectFactory.java:135)
at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:65)
at com.adobe.idp.um.businesslogic.dao.hibernate.UMLocalSessionFactoryBean.identifyDialect(UMLocalSessionFactoryBean.java:239)
at com.adobe.idp.um.businesslogic.dao.hibernate.UMLocalSessionFactoryBean.postProcessConfiguration(UMLocalSessionFactoryBean.java:100)
at com.adobe.idp.um.businesslogic.dao.hibernate.HibernateUtils.getSessionFactory(HibernateUtils.java:60)
at com.adobe.idp.um.businesslogic.dao.hibernate.HibernateUtils.getSession(HibernateUtils.java:81)
at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.getSession(HibernateSynchronizationDao.java:84)
at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.acquireClusterLock(HibernateSynchronizationDao.java:1255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.invocation.Invocation.performCall(Invocation.java:397)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:233)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
...
13:39:00,304 ERROR [LogInterceptor] RuntimeException in method: public abstract com.adobe.idp.um.businesslogic.synch.dao.SynchronizationDAO$LockAcquireResult com.adobe.idp.um.businesslogic.synch.dao.SynchronizationDAO.acquireClusterLock(com.adobe.idp.um.scheduler.JobType):
org.hibernate.HibernateException: unknown Oracle major version [12]
at org.hibernate.dialect.DialectFactory$1.getDialectClass(DialectFactory.java:135)
at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:65)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Upgrade of database from 11.2.0.3 to 12.1.0.2.
2. Invoke application. During runtime the errors occur.
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |