-->
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: Troubles with Hibernate mapping One$DB
PostPosted: Tue Sep 20, 2005 9:53 am 
Newbie

Joined: Thu Jun 23, 2005 5:17 am
Posts: 6
Hi everyone,

I have some troubles with Hibernate 3.0.5 mapping Daffodil One$DB 4.0 although following this guide http://www.daffodildb.com/daffodildb-hibernate.html .

My errors are:
- no meta data connection
- no suitable driver

Hope you can help me with this issue, thx in advance...

Greetz..




Some hints:

I'm using this dialect file: http://www.daffodildb.com/DaffodilDBDialect.java

with these one$db properties for hibernate:
hibernate.dialect org.hibernate.dialect.DaffodilDBDialect

hibernate.connection.driver_class in.co.daffodil.db.jdbc.DaffodilDBDriver

hibernate.connection.url jdbc:daffodilDB://localhost:3456/eventuser;create=true

hibernate.connection.username DAFFODIL

hibernate.connection.password daffodil


Here is an abstract of my java application's message:
INFO - Hibernate 3.0.5
INFO - loaded properties from resource hibernate.properties: {hibernate.order_updates=true, hibernate.default_batch_fetch_size=8, hibernate.connection.driver_class=in.co.daffodil.db.jdbc.DaffodilDBDriver, hibernate.cglib.use_reflection_optimizer=true, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.max_fetch_depth=1, hibernate.dialect=org.hibernate.dialect.DaffodilDBDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.connection.username=DAFFODIL, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.url=jdbc:daffodilDB://localhost:3456/eventuser;create=true, hibernate.connection.password=****, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=1}
INFO - using java.io streams to persist binary types
INFO - using CGLIB reflection optimizer
INFO - using JDK 1.4 java.sql.Timestamp handling
INFO - Mapping resource: de/gloegl/road2hibernate/Event.hbm.xml
INFO - Mapping class: de.gloegl.road2hibernate.Event -> EVENTS
INFO - Mapping collection: de.gloegl.road2hibernate.Event.participatingUsers -> participations
INFO - Mapping resource: de/gloegl/road2hibernate/User.hbm.xml
INFO - Mapping class: de.gloegl.road2hibernate.User -> USERS
INFO - Mapping collection: de.gloegl.road2hibernate.User.favouriteEvents -> favourite_events
INFO - Mapping collection: de.gloegl.road2hibernate.User.emails -> user_emails
INFO - Mapping collection: de.gloegl.road2hibernate.User.eventsJoined -> participations
INFO - processing extends queue
INFO - processing collection mappings
INFO - processing association property references
INFO - processing foreign key constraints
INFO - Using Hibernate built-in connection pool (not for production use!)
INFO - Hibernate connection pool size: 1
INFO - autocommit mode: false
INFO - using driver: in.co.daffodil.db.jdbc.DaffodilDBDriver at URL: jdbc:daffodilDB://localhost:3456/eventuser;create=true
INFO - connection properties: {user=DAFFODIL, password=****}
WARN - Could not obtain connection metadata
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:532)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at de.gloegl.road2hibernate.HibernateUtil.<clinit>(HibernateUtil.java:33)
at de.gloegl.road2hibernate.EventManager.storeEvent(EventManager.java:77)
at de.gloegl.road2hibernate.EventManager.main(EventManager.java:23)
INFO - Using dialect: org.hibernate.dialect.DaffodilDBDialect
INFO - Using default transaction strategy (direct JDBC transactions)
INFO - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO - Automatic flush during beforeCompletion(): disabled
INFO - Automatic session close at end of transaction: disabled
INFO - Scrollable result sets: disabled
INFO - JDBC3 getGeneratedKeys(): disabled
INFO - Connection release mode: null
INFO - Maximum outer join fetch depth: 1
INFO - Default batch fetch size: 8
INFO - Generate SQL with comments: disabled
INFO - Order SQL updates by primary key: enabled
INFO - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO - Using ASTQueryTranslatorFactory
INFO - Query language substitutions: {no='N', true=1, yes='Y', false=0}
INFO - Second-level cache: enabled
INFO - Query cache: disabled
INFO - Cache provider: org.hibernate.cache.HashtableCacheProvider
INFO - Optimize cache for minimal puts: disabled
INFO - Cache region prefix: hibernate.test
INFO - Structured second-level cache entries: disabled
INFO - Statistics: disabled
INFO - Deleted entity synthetic identifier rollback: disabled
INFO - Default entity-mode: pojo
INFO - building session factory
INFO - Not binding factory to JNDI, no JNDI name configured
INFO - Checking 0 named queries
WARN - SQL Error: 0, SQLState: 08001
ERROR - No suitable driver
java.lang.RuntimeException: org.hibernate.exception.JDBCConnectionException: Cannot open connection
at de.gloegl.road2hibernate.EventManager.storeEvent(EventManager.java:93)
at de.gloegl.road2hibernate.EventManager.main(EventManager.java:23)
Caused by: org.hibernate.exception.JDBCConnectionException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:66)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:301)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:110)
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:137)
at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49)
at org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:24)
at org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:271)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1079)
at de.gloegl.road2hibernate.EventManager.storeEvent(EventManager.java:78)
... 1 more
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:532)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:298)
... 8 more
Exception in thread "main"


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 20, 2005 10:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
sounds like you forgot to put the jar containing in.co.daffodil.db.jdbc.DaffodilDBDriver into your classpath.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 20, 2005 10:18 am 
Newbie

Joined: Thu Jun 23, 2005 5:17 am
Posts: 6
steve wrote:
sounds like you forgot to put the jar containing in.co.daffodil.db.jdbc.DaffodilDBDriver into your classpath.


At first I thought of it too but I've got that afore said driver already in my classpath (DaffodilDB_Client.jar).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 21, 2005 6:28 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No Suitable Driver happens when the JDBC URL is wrong, try to double check that.

_________________
Emmanuel


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.