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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via openxava by mahc83
, 1 year ago
org.hibernate.WrongClassException: Object with id: 1 was not of the specified subclass: org.openxava.invoicing.model.CommercialDocument (Discriminator: 0)
via hs-rm.de by Unknown author, 1 year ago
org.hibernate.MappingException: Named query not known: findAllKuchen
via JBoss Issue Tracker by Adam Warski, 1 year ago
org.hibernate.type.SerializationException: could not deserialize
via Stack Overflow by user714887
, 1 year ago
org.hibernate.exception.SQLGrammarException: could not load an entity: [com.ifs.ejb.product.entity.ServiceType#PAYMENT]
via Coderanch by Arun Kumar, 11 months ago
org.hibernate.exception.SQLGrammarException: could not load an entity: [com.titan.domain.Customer#1]
via xuebuyuan.com by Unknown author, 1 year ago
org.hibernate.type.SerializationException: could not deserialize
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:526)
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)

Users with the same issue

3 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.