-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: java.sql.SQLException: Unsupported feature
PostPosted: Tue Aug 05, 2008 5:40 am 
Newbie

Joined: Tue Aug 05, 2008 1:18 am
Posts: 3
Exception while creating SessionFactory

Hibernate version:

Hibernate 3

Full stack trace of any exception that occurs:

[DEBUG Msg - com.mchange.v2.c3p0.impl.NewPooledConnection handleThrowable 430] com.mchange.v2.c3p0.impl.NewPooledConnection@ca2076 handling a throwable.
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 com.mchange.v2.c3p0.impl.NewProxyDatabaseMetaData.getDatabaseMajorVersion(NewProxyDatabaseMetaData.java:3678)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.hibernate.cfg.SettingsFactory.getDatabaseMajorVersion(SettingsFactory.java:293)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1881)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1174)

Plz tell me why is this issue coming up?

Thanx in advance


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2008 10:08 am 
Newbie

Joined: Fri Aug 01, 2008 4:45 am
Posts: 2
Location: Mumbai
Can you describe the c3p0 and hibernate settings please?

_________________
Anadi Misra


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2008 10:08 am 
Newbie

Joined: Fri Aug 01, 2008 4:45 am
Posts: 2
Location: Mumbai
Can you describe the c3p0 and hibernate settings please?

_________________
Anadi Misra


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2008 10:34 am 
Newbie

Joined: Tue Aug 05, 2008 1:18 am
Posts: 3
I am using hibernate 3.1.3
Following properties have been added in hibernate.cfg.xml file
for c3p0 configuration.
Please advice me if i have to add any other specific settings for c3p0.
I am using hibernate for the first time.

<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.min_size">0</property>
<property name="c3p0.max_size">25</property>
<property name="c3p0.timeout">1000</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>


All sessions are opened as per above settings even after this exception is thrown.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.