I'm using Hibernate 2.1.7 with SDK 5.0 and Daffodil database version 3.4.
I'm able to create a session. When beginning a transaction, I get the following stack trace:
Exception in thread "main" java.lang.UnsupportedOperationException: The user must supply a JDBC connection
at net.sf.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:32)
at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:289)
at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3361)
at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3321)
at net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:40)
at net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:19)
at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2251)
at hello.Test.main(Test.java:20)
My properties file look like the following:
hibernate.connection.driver_class=in.co.daffodil.db.rmi.RmiDaffodilDBDriver
hibernate.connection.url=jdbc:daffodilDB://localhost:3456/Hibernate
hibernate.connection.username=daffodil
hibernate.connection.password=daffodil
hibernate.dialect=net.sf.hibernate.dialect.DaffodilDBDialect
hibernate.c3p0.min_size=5
hibernate.c3p0.max_size=20
hibernate.c3p0.timeout=300
hibernate.c3p0.max_statements=50
hibernate.c3p0.idle_test_period=3000
I'm able to obtain a connection from the database using JDBC or through DBVisualizer with the same url, user and password.
Anybody have any thoughts on the subject?
|