Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

24793 [main] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata

 
aditya sanas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
i m trying hibernate example using Oracle
the same code has executed successfully for me using mysql
but whenever i tried it using oracle its giving me error specifying
24793 [main] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata

the complete log is as follows :
797 [main] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final
859 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.6.1.Final
875 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
890 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
922 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
1359 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: hibernate.cfg.xml
1359 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: hibernate.cfg.xml
1796 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/cosmo/hbm/pojos/Person.hbm.xml
2499 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
21824 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.cosmo.hbm.pojos.Person -> PERSON
21981 [main] INFO org.hibernate.cfg.Configuration - Hibernate Validator not found: ignoring
22012 [main] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
22059 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
22059 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
22059 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
22684 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: oracle.jdbc.driver.OracleDriver at URL: jdbcracle:thin:@172.25.12.241:1521:cosdb
22684 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=locker, password=****}
24793 [main] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata
java.sql.SQLException: Unsupported feature
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:689)
at oracle.jdbc.OracleDatabaseMetaData.getDatabaseMajorVersion(OracleDatabaseMetaData.java:4442)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:117)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2833)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2829)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1840)
at com.cosmo.hbm.services.impl.PersonServicesImpl.<clinit>(PersonServicesImpl.java:19)
at com.cosmo.hbm.main.TestHibernate.main(TestHibernate.java:15)
24824 [main] INFO org.hibernate.engine.jdbc.JdbcSupportLoader - Disabling contextual LOB creation as connection was null



if anyone has inputs on it would be really appreciated.
thank you
 
Tim Holloway
Saloon Keeper
Posts: 18364
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Input #1: Lay off the lurid red boldface type. It lacks subtlety.

Input #2: If you have a Hibernate question, ask it in the Hibernate forum. That's where the Hibernate experts hang out. So I'm going to move this thread over there.

Input #3: I'm just guessing here, but I suspect you didn't set up the OracleDialect on your persistence configuration.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic