javax.persistence.PersistenceException: Error build callback listeners; entity [org.example.ExampleEntity was already processed

Hibernate JIRA | Felix Feisst | 3 years ago
  1. 0

    When a class is mapped more than once, as defined in the documentation - http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html/ch05.html#mapping-entityname - a PersistenceException is thrown when creating the EntityManagerFactory. stack trace: javax.persistence.PersistenceException: Error build callback listeners; entity [org.example.ExampleEntity was already processed at org.hibernate.jpa.event.internal.jpa.CallbackRegistryImpl.addEntityCallbacks(CallbackRegistryImpl.java:131) at org.hibernate.jpa.event.internal.jpa.LegacyCallbackProcessor.processCallbacksForEntity(LegacyCallbackProcessor.java:71) at org.hibernate.jpa.event.spi.JpaIntegrator.integrate(JpaIntegrator.java:150) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:310) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843) at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:399) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842) at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:73) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:54) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)

    Hibernate JIRA | 3 years ago | Felix Feisst
    javax.persistence.PersistenceException: Error build callback listeners; entity [org.example.ExampleEntity was already processed
  2. 0

    When a class is mapped more than once, as defined in the documentation - http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html/ch05.html#mapping-entityname - a PersistenceException is thrown when creating the EntityManagerFactory. stack trace: javax.persistence.PersistenceException: Error build callback listeners; entity [org.example.ExampleEntity was already processed at org.hibernate.jpa.event.internal.jpa.CallbackRegistryImpl.addEntityCallbacks(CallbackRegistryImpl.java:131) at org.hibernate.jpa.event.internal.jpa.LegacyCallbackProcessor.processCallbacksForEntity(LegacyCallbackProcessor.java:71) at org.hibernate.jpa.event.spi.JpaIntegrator.integrate(JpaIntegrator.java:150) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:310) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843) at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:399) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842) at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:73) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:54) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)

    Hibernate JIRA | 3 years ago | Felix Feisst
    javax.persistence.PersistenceException: Error build callback listeners; entity [org.example.ExampleEntity was already processed
  3. 0

    Course Material Code Causing SQL Grammar Error - Listing 5.23 Callback methods in Detail to recalculate parent amount

    openxava | 5 months ago | tianschoeman
    javax.persistence.PersistenceException: Callback methods annotated in a listener bean class must return void and take one argument: javax.persistence.PreUpdate - private void co.elsumo.werp.model.Detail.onUpdate()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Migrating to Spring Boot - 'Error build callback listeners; entity was already processed'

    Stack Overflow | 2 years ago | Wim Deblauwe
    javax.persistence.PersistenceException: Error build callback listeners; entity [com.traficon.domain.message.data.impl.BicycleDataMessageImpl was already processed
  6. 0

    Caused by: javax.persistence.PersistenceException: Error build callback listeners; entity was already processed

    Stack Overflow | 2 years ago | sanitg
    javax.persistence.PersistenceException: Error build callback listeners; entity was already processed

    1 unregistered visitors
    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. javax.persistence.PersistenceException

      Error build callback listeners; entity [org.example.ExampleEntity was already processed

      at org.hibernate.jpa.event.internal.jpa.CallbackRegistryImpl.addEntityCallbacks()
    2. org.hibernate.jpa
      JpaIntegrator.integrate
      1. org.hibernate.jpa.event.internal.jpa.CallbackRegistryImpl.addEntityCallbacks(CallbackRegistryImpl.java:131)
      2. org.hibernate.jpa.event.internal.jpa.LegacyCallbackProcessor.processCallbacksForEntity(LegacyCallbackProcessor.java:71)
      3. org.hibernate.jpa.event.spi.JpaIntegrator.integrate(JpaIntegrator.java:150)
      3 frames
    3. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:310)
      2. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857)
      2 frames
    4. org.hibernate.jpa
      EntityManagerFactoryBuilderImpl$4.perform
      1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)
      2. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843)
      2 frames
    5. org.hibernate.boot
      ClassLoaderServiceImpl.withTccl
      1. org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:399)
      1 frame
    6. org.hibernate.jpa
      HibernatePersistenceProvider.createEntityManagerFactory
      1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842)
      2. org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:73)
      2 frames
    7. Hibernate EJB
      HibernatePersistence.createEntityManagerFactory
      1. org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:54)
      1 frame
    8. JavaEE 7
      Persistence.createEntityManagerFactory
      1. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
      1 frame