javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not load an entity:

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

,
via Stack Overflow by Will Keeling

Check your annotations to use the proper table and column names.

Solutions on the web

via openxava by jafortti
, 1 year ago
org.hibernate.exception.SQLGrammarException: could not load an entity:
via openxava by njchenyi
, 1 year ago
org.hibernate.exception.SQLGrammarException: could not load an entity:
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)
via Stack Overflow by Dhanush Gopinath
, 2 years ago
org.hibernate.exception.JDBCConnectionException: could not inspect JDBC autocommit mode
via GitHub by KewlCat
, 2 years ago
org.hibernate.exception.SQLGrammarException: user lacks privilege or object not found: T_JOB
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not load an entity:
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1389)
at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:802)
at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:756)
at org.openxava.jpa.impl.EntityManagerDecorator.find(EntityManagerDecorator.java:147)
at org.openxava.model.impl.JPAPersistenceProvider.find(JPAPersistenceProvider.java:27)
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:1475)
at org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1608)
at org.openxava.model.impl.MapFacadeBean.getValuesImpl(MapFacadeBean.java:625)
at org.openxava.model.impl.MapFacadeBean.getValues(MapFacadeBean.java:100)
at org.openxava.model.MapFacade.getValues(MapFacade.java:396)
at org.openxava.actions.SearchByViewKeyAction.execute(SearchByViewKeyAction.java:51)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:403)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:320)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:514)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:320)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:514)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:320)
at org.openxava.controller.ModuleManager.execute(ModuleManager.java:280)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
6 times, 5 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
11 more bugmates

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