-->
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.  [ 3 posts ] 
Author Message
 Post subject: help:Connection.getAutoCommit() unsupported??
PostPosted: Thu Nov 18, 2004 3:42 am 
Newbie

Joined: Thu Nov 18, 2004 3:23 am
Posts: 2
Dear All,

I use hibernate 2.1.6 and the datasource is csv(use to test import data and not export data to datasource);

when linking the datasource there is no problem.

however,there are some errors in getting data:

java.lang.UnsupportedOperationException: Connection.getAutoCommit() unsupported
at org.relique.jdbc.csv.CsvConnection.getAutoCommit(Unknown Source)
at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:103)
at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:286)
at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3326)
at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3286)
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:2231)
at common.util.ThreadedSession.put(ThreadedSession.java:56)
at common.hibernate.base._RootDAO.createSession(_RootDAO.java:198)
at common.hibernate.base._RootDAO.createSession(_RootDAO.java:189)
at common.hibernate.base._BaseRootDAO.getSession(_BaseRootDAO.java:114)
at common.hibernate.base._BaseRootDAO.find(_BaseRootDAO.java:197)
at organization.dao.OrgChartDAO.retrieveCompanies(OrgChartDAO.java:321)
at common.hibernate.test.OrgChartDAOTest.testRetrieveCompanies(OrgChartDAOTest.java:384)
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:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)

help me pls,thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 18, 2004 4:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
your jdbc driver does not implement enough of the jdbc API to allow hibernate to query for it's state.

Go back to whoever wrote org.relique.jdbc.csv driver and say they should support setAutoCommit/getAutoCommit.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 18, 2004 8:24 pm 
Newbie

Joined: Thu Nov 18, 2004 3:23 am
Posts: 2
thanks ,I'll have a try


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