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
  1. 0

    Problema Ejercicio de ejemplo libro borrador2

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

    Message: Object with id: xxx was not of the specified subclass: rundeck.BaseReport (Discriminator: ExecReport)

    GitHub | 4 years ago | nca71
    org.hibernate.WrongClassException: Object with id: 146 was not of the specified subclass: rundeck.BaseReport (Discriminator: ExecReport)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Discriminator , WrongClassException JPA with Hibernate backend

    Stack Overflow | 6 years ago | Satish Kumar
    org.hibernate.WrongClassException: Object with id: 261 was not of the specified subclass: com.lmig.lit.lpew.model.criteria.SearchCriteria (Discriminator: DATE )

    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. org.hibernate.WrongClassException

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

      at org.hibernate.loader.Loader.getInstanceClass()
    2. Hibernate
      AbstractEntityPersister.load
      1. org.hibernate.loader.Loader.getInstanceClass(Loader.java:1477)
      2. org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1308)
      3. org.hibernate.loader.Loader.getRow(Loader.java:1230)
      4. org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:603)
      5. org.hibernate.loader.Loader.doQuery(Loader.java:724)
      6. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
      7. org.hibernate.loader.Loader.loadEntity(Loader.java:1881)
      8. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71)
      9. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:65)
      10. org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3072)
      10 frames
    3. Hibernate
      SessionImpl.get
      1. org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:434)
      2. org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:415)
      3. org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:165)
      4. org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)
      5. org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)
      6. org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)
      7. org.hibernate.impl.SessionImpl.get(SessionImpl.java:842)
      8. org.hibernate.impl.SessionImpl.get(SessionImpl.java:835)
      8 frames
    4. Hibernate EJB
      AbstractEntityManagerImpl.find
      1. org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:182)
      1 frame
    5. 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:521)
      7 frames
    6. 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