org.hibernate.MappingException: Unknown entity: test.TestVO

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 Spring JIRA by Dmitri, 1 year ago
Unknown entity: test.TestVO
via Spring JIRA by Dmitri, 1 year ago
Unknown entity: test.TestVO
via Coderanch by Abhinav Ranjan, 11 months ago
Unknown entity: com.t8.card8.hibernate.FileControl
via Coderanch by Samanthi perera, 11 months ago
Unknown entity: Annotation.User
org.hibernate.MappingException: Unknown entity: test.TestVO
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:513)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1321)
at org.hibernate.event.def.DefaultLockEventListener.onLock(DefaultLockEventListener.java:50)
at org.hibernate.impl.SessionImpl.fireLock(SessionImpl.java:608)
at org.hibernate.impl.SessionImpl.lock(SessionImpl.java:600)
at test.ServiceImpl.doSmth(ServiceImpl.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at undefined.$Proxy10.doSmth(Unknown Source)
at test.TestServlet.service(TestServlet.java:38)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Users with the same issue

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

Write tip

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