javax.persistence.PersistenceException: org.hibernate.WrongClassException: Object with id: 1 was not of the specified subclass: org.openxava.invoicing.model.CommercialDocument (Discriminator: 0)

openxava | mahc83 | 7 years 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

    Problema Ejercicio de ejemplo libro borrador2

    openxava | 7 years ago | mahc83
    javax.persistence.PersistenceException: org.hibernate.WrongClassException: Object with id: 1 was not of the specified subclass: org.openxava.invoicing.model.CommercialDocument (Discriminator: 0)
  2. 0

    upgrade ejbca from 3.11.2 to 4.0.1

    ejbca | 6 years ago | games1982
    javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.ejbca.core.ejb.log.LogConfigurationData.rowVersion
  3. 0

    Reading a Set in PostLoad on JPA/Hibernate

    Stack Overflow | 6 years ago | Christophe
    javax.persistence.PersistenceException: org.hibernate.LazyInitializationException: failed to lazily initialize a collection, no session or session was closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Glassfish not picking up POSTGRES properties

    Stack Overflow | 6 years ago | Dhanush Gopinath
    javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: could not inspect JDBC autocommit mode
  6. 0

    Hibernate LazyInitializationException on find() with EAGER @ElementCollection

    Stack Overflow | 5 years ago | fommil
    javax.persistence.PersistenceException: org.hibernate.LazyInitializationException: illegal access to loading collection

    2 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

      org.hibernate.WrongClassException: Object with id: 1 was not of the specified subclass: org.openxava.invoicing.model.CommercialDocument (Discriminator: 0)

      at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException()
    2. Hibernate EJB
      AbstractEntityManagerImpl.find
      1. org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
      2. org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:202)
      2 frames
    3. org.openxava.model
      MapFacade.findEntity
      1. org.openxava.model.impl.JPAPersistenceProvider.find(JPAPersistenceProvider.java:26)
      2. org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:89)
      3. org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:60)
      4. org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1424)
      5. org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1555)
      6. org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:213)
      7. org.openxava.model.MapFacade.findEntity(MapFacade.java:526)
      7 frames
    4. org.openxava.tab
      Tab.getTableModel
      1. org.openxava.tab.impl.EntityTabDataProvider.getEntity(EntityTabDataProvider.java:173)
      2. org.openxava.tab.impl.EntityTabDataProvider.doCalculations(EntityTabDataProvider.java:125)
      3. org.openxava.tab.impl.EntityTabDataProvider.nextChunk(EntityTabDataProvider.java:62)
      4. org.openxava.tab.impl.EntityTab.nextChunk(EntityTab.java:298)
      5. org.openxava.tab.impl.TableModelBean.getRow(TableModelBean.java:120)
      6. org.openxava.tab.impl.TableModelBean.getValueAt(TableModelBean.java:171)
      7. org.openxava.tab.impl.XTableModelDecoratorBase.getValueAt(XTableModelDecoratorBase.java:63)
      8. org.openxava.tab.impl.HiddenXTableModel.getValueAt(HiddenXTableModel.java:70)
      9. org.openxava.tab.Tab.createTableModel(Tab.java:271)
      10. org.openxava.tab.Tab.getTableModel(Tab.java:250)
      10 frames