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!
|