- This topic has 1 reply, 2 voices, and was last updated 18 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
QASMemberHi,
Im running integration tests using Spring’s AbstractTransactionalDataSourceSpringContextTests.
These tests used to work fine. However, due to some other problems, i completely rebuilt my workspace and downloaded the whole project from source safe.
The project compiles, deploys and runs correctly after my rebuild.
However, whenever i run my tests, i always get the following stack trace:
java.lang.NoSuchMethodError: org.hibernate.impl.SessionImpl.getConnectionReleaseMode()Lorg/hibernate/ConnectionReleaseMode; at org.springframework.orm.hibernate3.HibernateTransactionManager.isSameConnectionForEntireSession(HibernateTransactionManager.java:700) at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:459) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:283) at org.springframework.test.AbstractTransactionalSpringContextTests.startNewTransaction(AbstractTransactionalSpringContextTests.java:263) at org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:140) at org.springframework.test.AbstractDependencyInjectionSpringContextTests.setUp(AbstractDependencyInjectionSpringContextTests.java:206) at junit.framework.TestCase.runBare(TestCase.java:125) 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.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
However, i can browse to that very method (SessionImpl.getConnectionReleaseMode()) using Eclipse, so its definitely on the classpath, plus it does a whole bunch of other hibernate stuff.
I have done a clean and rebuild of the project but still no dice.
Environment:
Eclipse 3.2
MyEclipse 5.0M2
hibernate 3.0
Spring 1.2.8
JUnit 3.8.2Any suggestions?
thanks, toby
Riyad KallaMemberLooks like the libraries in your build path changed or something, your getting incompatible APi messages. What about this class: org/hibernate/ConnectionReleaseMode
can you find that?
-
AuthorPosts