org.hibernate.HibernateException: instance not of expected entity type: java.util.HashMap is not a: Superclass

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Hibernate JIRA by Adam Warski, 1 year ago
instance not of expected entity type: java.util.HashMap is not a: Superclass
via Hibernate JIRA by Adam Warski, 1 year ago
instance not of expected entity type: java.util.HashMap is not a: Superclass
via hivmr.com by Unknown author, 1 year ago
instance not of expected entity type: org.jbpm.context.exe.variableinstance.UnpersistableInstance is not a: org.jbpm.context.exe.VariableInstance
org.hibernate.HibernateException: instance not of expected entity type: java.util.HashMap is not a: Superclass
at org.jboss.envers.test.working.MyPersister.getSubclassEntityPersister(MyPersister.java:22)
at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:512)
at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:70)
at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:618)
at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:592)
at org.jboss.envers.test.working.WorkingMain.main(WorkingMain.java:62)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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