java.lang.NoSuchMethodError: org.hibernate.event.spi.EventSource.accessTransaction()Lorg/hibernate/Transaction;

GitHub | bruce-genhot | 10 months 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

    Getting Error on entity persistence using hibernate

    GitHub | 10 months ago | bruce-genhot
    java.lang.NoSuchMethodError: org.hibernate.event.spi.EventSource.accessTransaction()Lorg/hibernate/Transaction;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.hibernate.event.spi.EventSource.accessTransaction()Lorg/hibernate/Transaction;

      at org.hibernate.envers.internal.synchronization.AuditProcessManager.get()
    2. org.hibernate.envers
      EnversPostInsertEventListenerImpl.onPostInsert
      1. org.hibernate.envers.internal.synchronization.AuditProcessManager.get(AuditProcessManager.java:34)
      2. org.hibernate.envers.event.spi.EnversPostInsertEventListenerImpl.onPostInsert(EnversPostInsertEventListenerImpl.java:36)
      2 frames
    3. Hibernate
      SessionImpl.saveOrUpdate
      1. org.hibernate.action.internal.EntityIdentityInsertAction.postInsert(EntityIdentityInsertAction.java:156)
      2. org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:102)
      3. org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:597)
      4. org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:232)
      5. org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:213)
      6. org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:256)
      7. org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:318)
      8. org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:275)
      9. org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:182)
      10. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:113)
      11. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)
      12. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)
      13. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:97)
      14. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)
      15. org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:651)
      16. org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:643)
      17. org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:638)
      17 frames
    4. Dropwizard Hibernate Support
      AbstractDAO.persist
      1. io.dropwizard.hibernate.AbstractDAO.persist(AbstractDAO.java:154)
      1 frame
    5. no.trinnvis.dabih
      AccountsResource.post
      1. no.trinnvis.dabih.db.AccountDAO.create(AccountDAO.java:26)
      2. no.trinnvis.dabih.resources.AccountsResource.createAccount(AccountsResource.java:327)
      3. no.trinnvis.dabih.resources.AccountsResource.post(AccountsResource.java:310)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    7. jersey-core-server
      JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch
      1. org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
      2. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
      3. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
      4. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:143)
      4 frames