-->
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.  [ 2 posts ] 
Author Message
 Post subject: SQLExceptionConverterFactory - using dialect defined convert
PostPosted: Thu Mar 16, 2006 1:34 pm 
Beginner
Beginner

Joined: Thu Mar 09, 2006 1:45 pm
Posts: 26
I am getting this exception:
SQLExceptionConverterFactory - using dialect defined converter

I have a timer running on a sun app server and when it fires off, I get this exception when I run this line of code:

SessionFactory factory = cfg.buildSessionFactory();

Is this because my properties are not correct in the config file:


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
".\src\org\hibernate\testing\config\hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name "connection.url">jdbc:oracle:thin:@localhost:1521:xe</property>
<property name="connection.username">allanbronson</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<property name="connection.password">maryrose</property>
<property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
<!-- thread is the short name for
org.hibernate.context.ThreadLocalSessionContext
and let Hibernate bind the session automatically to the thread
-->
<property name="current_session_context_class">thread</property>
<!-- this will show us all sql statements -->
<property name="hibernate.show_sql">true</property>

<mapping resource="org/hibernate/testing/config/Company.hbm.xml" />
<mapping resource="org/hibernate/testing/config/Product.hbm.xml" />
<mapping resource="org/hibernate/testing/config/Employee.hbm.xml" />

</session-factory>
</hibernate-configuration>




any ideas would help, I have not a whole lot with hibernate.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 16, 2006 10:38 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Looks like you've converted a Hibernate2 config file to Hibernate3. All those properties need to be prepended with "hibernate." (so dialect becomes hibernate.dialect, etc.).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.