java.lang.NoSuchMethodError: org.hibernate.Session.close()Ljava/sql/Connection;

Spring JIRA | Andy Wilkinson | 8 months ago
  1. 0

    hibernate error: org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchMethodError: org.hibernate.Session.close()Ljava/sql/Connection;

    Stack Overflow | 1 month ago | aquilares
    org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchMethodError: org.hibernate.Session.close()Ljava/sql/Connection;
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    java.lang.NoSuchMethodError: org.hibernate.Session.close()Ljava/sql/Connection;

    GitHub | 2 months ago | bdbogjoe
    java.lang.NoSuchMethodError: org.hibernate.Session.close()Ljava/sql/Connection;
  4. 0

    The signature of {{Session.close}} has changed, breaking binary compatibility. The failure is: {noformat} java.lang.NoSuchMethodError: org.hibernate.Session.close()Ljava/sql/Connection; at org.springframework.webflow.persistence.HibernateFlowExecutionListener.sessionEnding(HibernateFlowExecutionListener.java:177) at org.springframework.webflow.persistence.HibernateFlowExecutionListenerTests.testNoCommitAttributeSetOnEndState(HibernateFlowExecutionListenerTests.java:191) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at junit.framework.TestCase.runTest(TestCase.java:176) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:252) at junit.framework.TestSuite.run(TestSuite.java:247) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:64) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:50) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:106) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {noformat}

    Spring JIRA | 8 months ago | Andy Wilkinson
    java.lang.NoSuchMethodError: org.hibernate.Session.close()Ljava/sql/Connection;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.hibernate.Session.close()Ljava/sql/Connection;

      at org.springframework.batch.item.database.HibernateItemReaderHelper.close()
    2. Spring Batch Infrastructure
      AbstractDataSourceItemReaderIntegrationTests.onTearDownAfterTransaction
      1. org.springframework.batch.item.database.HibernateItemReaderHelper.close(HibernateItemReaderHelper.java:200)
      2. org.springframework.batch.item.database.HibernateCursorItemReader.doClose(HibernateCursorItemReader.java:229)
      3. org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.close(AbstractItemCountingItemStreamItemReader.java:133)
      4. org.springframework.batch.item.database.AbstractDataSourceItemReaderIntegrationTests.onTearDownAfterTransaction(AbstractDataSourceItemReaderIntegrationTests.java:71)
      4 frames
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2 frames