javax.persistence.PersistenceException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1881

  • org.hibernate.WrongClassException: Object with id: 1 was not of the specified subclass: org.openxava.invoicing.model.CommercialDocument (Discriminator: 0)
  • via Hibernate JIRA by Simon Kulessa, 1 year ago
    org.hibernate.WrongClassException: Object with id: testuser was not of the specified subclass: test.User (Discriminator: testuser)
  • via Hibernate JIRA by Simon Kulessa, 1 year ago
    org.hibernate.WrongClassException: Object with id: testuser was not of the specified subclass: test.User (Discriminator: testuser)
  • Stack trace

    • 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(AbstractEntityManagerImpl.java:614) at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:202) at org.openxava.model.impl.JPAPersistenceProvider.find(JPAPersistenceProvider.java:26) at org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:89) at org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:60) at org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1424) at org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1555) at org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:213) at org.openxava.model.MapFacade.findEntity(MapFacade.java:521) at org.openxava.tab.impl.EntityTabDataProvider.getEntity(EntityTabDataProvider.java:173) at org.openxava.tab.impl.EntityTabDataProvider.doCalculations(EntityTabDataProvider.java:125) at org.openxava.tab.impl.EntityTabDataProvider.nextChunk(EntityTabDataProvider.java:62) at org.openxava.tab.impl.EntityTab.nextChunk(EntityTab.java:298) at org.openxava.tab.impl.TableModelBean.getRow(TableModelBean.java:120) at org.openxava.tab.impl.TableModelBean.getValueAt(TableModelBean.java:171) at org.openxava.tab.impl.XTableModelDecoratorBase.getValueAt(XTableModelDecoratorBase.java:63) at org.openxava.tab.impl.HiddenXTableModel.getValueAt(HiddenXTableModel.java:70) at org.openxava.tab.Tab.createTableModel(Tab.java:271) at org.openxava.tab.Tab.getTableModel(Tab.java:250)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    6 times, 1 month ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    5 more bugmates