java.lang.NoSuchMethodError: org.hibernate.mapping.OneToOne.<init>(Lorg/hibernate/mapping/Table;Lorg/hibernate/mapping/KeyValue;)V

Hibernate JIRA | Colin Smith | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.mapping.OneToOne.<init>(Lorg/hibernate/mapping/Table;Lorg/hibernate/mapping/KeyValue;)V at org.hibernate.cfg.AnnotationBinder.bindOneToOne(AnnotationBinder.java:1302) at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:757) at org.hibernate.cfg.AnnotationBinder.processElementsOfAClass(AnnotationBinder.java:573) at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:436) at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:94) at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:235) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1285) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1267) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1234) at org.hibernate.cfg.Configuration.configure(Configuration.java:1196) at com.cantorindex.persistence.HibernateSessionFactory.<init>(HibernateSessionFactory.java:39) at com.cantorindex.persistence.HibernateSessionFactory.<init>(HibernateSessionFactory.java:28) at com.cantorindex.busobj.OrderTest.<clinit>(OrderTest.java:24) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLoader.java:11) at junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.java:193) at com.intellij.rt.execution.junit.TextTestRunner2.loadSuiteClass(TextTestRunner2.java:45) at com.intellij.rt.execution.junit.TestRunnerUtil.getTestImpl(TestRunnerUtil.java:61) at com.intellij.rt.execution.junit.TextTestRunner2.getTest(TextTestRunner2.java:36) at junit.textui.TestRunner.start(TestRunner.java:171) at com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(TextTestRunner2.java:23) at com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:97) at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31) 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:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

    Hibernate JIRA | 1 decade ago | Colin Smith
    java.lang.NoSuchMethodError: org.hibernate.mapping.OneToOne.<init>(Lorg/hibernate/mapping/Table;Lorg/hibernate/mapping/KeyValue;)V
  2. 0

    Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.mapping.OneToOne.<init>(Lorg/hibernate/mapping/Table;Lorg/hibernate/mapping/KeyValue;)V at org.hibernate.cfg.AnnotationBinder.bindOneToOne(AnnotationBinder.java:1302) at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:757) at org.hibernate.cfg.AnnotationBinder.processElementsOfAClass(AnnotationBinder.java:573) at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:436) at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:94) at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:235) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1285) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1267) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1234) at org.hibernate.cfg.Configuration.configure(Configuration.java:1196) at com.cantorindex.persistence.HibernateSessionFactory.<init>(HibernateSessionFactory.java:39) at com.cantorindex.persistence.HibernateSessionFactory.<init>(HibernateSessionFactory.java:28) at com.cantorindex.busobj.OrderTest.<clinit>(OrderTest.java:24) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLoader.java:11) at junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.java:193) at com.intellij.rt.execution.junit.TextTestRunner2.loadSuiteClass(TextTestRunner2.java:45) at com.intellij.rt.execution.junit.TestRunnerUtil.getTestImpl(TestRunnerUtil.java:61) at com.intellij.rt.execution.junit.TextTestRunner2.getTest(TextTestRunner2.java:36) at junit.textui.TestRunner.start(TestRunner.java:171) at com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(TextTestRunner2.java:23) at com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:97) at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31) 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:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

    Hibernate JIRA | 1 decade ago | Colin Smith
    java.lang.NoSuchMethodError: org.hibernate.mapping.OneToOne.<init>(Lorg/hibernate/mapping/Table;Lorg/hibernate/mapping/KeyValue;)V
  3. 0

    Hibernate slf4j exception

    Stack Overflow | 5 years ago | pallavi
    java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.hibernate.mapping.OneToOne.<init>(Lorg/hibernate/mapping/Table;Lorg/hibernate/mapping/KeyValue;)V

      at org.hibernate.cfg.AnnotationBinder.bindOneToOne()
    2. Hibernate
      Configuration.configure
      1. org.hibernate.cfg.AnnotationBinder.bindOneToOne(AnnotationBinder.java:1302)
      2. org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:757)
      3. org.hibernate.cfg.AnnotationBinder.processElementsOfAClass(AnnotationBinder.java:573)
      4. org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:436)
      5. org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:94)
      6. org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:235)
      7. org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1285)
      8. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1267)
      9. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1234)
      10. org.hibernate.cfg.Configuration.configure(Configuration.java:1196)
      10 frames
    3. com.cantorindex.persistence
      HibernateSessionFactory.<init>
      1. com.cantorindex.persistence.HibernateSessionFactory.<init>(HibernateSessionFactory.java:39)
      2. com.cantorindex.persistence.HibernateSessionFactory.<init>(HibernateSessionFactory.java:28)
      2 frames
    4. com.cantorindex.busobj
      OrderTest.<clinit>
      1. com.cantorindex.busobj.OrderTest.<clinit>(OrderTest.java:24)
      1 frame
    5. Java RT
      Class.forName
      1. java.lang.Class.forName0(Native Method)
      2. java.lang.Class.forName(Class.java:164)
      2 frames
    6. JUnit
      BaseTestRunner.loadSuiteClass
      1. junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLoader.java:11)
      2. junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.java:193)
      2 frames
    7. IDEA
      TextTestRunner2.getTest
      1. com.intellij.rt.execution.junit.TextTestRunner2.loadSuiteClass(TextTestRunner2.java:45)
      2. com.intellij.rt.execution.junit.TestRunnerUtil.getTestImpl(TestRunnerUtil.java:61)
      3. com.intellij.rt.execution.junit.TextTestRunner2.getTest(TextTestRunner2.java:36)
      3 frames
    8. JUnit
      TestRunner.start
      1. junit.textui.TestRunner.start(TestRunner.java:171)
      1 frame
    9. IDEA
      TextTestRunner2.startRunnerWithArgs
      1. com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(TextTestRunner2.java:23)
      1 frame
    10. com.intellij.rt
      JUnitStarter.main
      1. com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:97)
      2. com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
      2 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    12. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
      1 frame