-->
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: java.lang.UnsupportedOperationException: The user must suppl
PostPosted: Thu Jan 13, 2005 11:47 pm 
Newbie

Joined: Thu Jan 13, 2005 11:41 pm
Posts: 10
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?


Top
 Profile  
 
 Post subject: Found the problem.
PostPosted: Fri Jan 14, 2005 12:53 am 
Newbie

Joined: Thu Jan 13, 2005 11:41 pm
Posts: 10
Found the problem. It was something completely else any too silly to mention.

:-)


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.