org.hibernate.hql.internal.ast.QuerySyntaxException: User is not mapped

codegur.online | 4 months ago
  1. 0

    Spring boot + Hibernate - User is not mapped

    codegur.online | 4 months ago
    org.hibernate.hql.internal.ast.QuerySyntaxException: User is not mapped
  2. 0

    Spring boot + Hibernate - User is not mapped

    Stack Overflow | 1 year ago | bontade
    org.hibernate.hql.internal.ast.QuerySyntaxException: User is not mapped
  3. 0

    org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: * near line 1

    Stack Overflow | 1 year ago | Crazy Coder
    org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: * near line 1, column 8 [SELECT * FROM com.rhcloud.giveme.entity.User u WHERE u.email = :email]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    null check for joined entity not working

    GitHub | 4 months ago | Kernle32DLL
    org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected AST node: is not null [select person from de.com.steep.radoclid2.model.entities.Person person order by person.radiationExposedPerson is not null asc]
  6. 0

    PersistentEnum should use proper mappedClass as returnedClass()

    GitHub | 2 years ago | Antonnz
    org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [id.co.bippo.promotion.impl.PromoWithPositioner]. Expected arguments are: java.util.UUID, java.lang.Enum, java.lang.Enum, int [SELECT NEW id.co.bippo.promotion.impl.PromoWithPositioner(p.id, p.kind, p.scope, p.positioner) FROM id.co.bippo.promotion.jpa.Promo p]

  1. MoYapro 1 times, last 1 week ago
  2. MoYapro 1 times, last 1 month ago
  3. marcbouvierdav 1 times, last 2 months ago
  4. davidvanlaatum 1 times, last 5 months ago
  5. tfr 1 times, last 4 months ago
30 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.hql.internal.ast.QuerySyntaxException

    User is not mapped

    at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister()
  2. Hibernate
    SessionImpl.createQuery
    1. org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:189)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    2. org.hibernate.hql.internal.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:109)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    3. org.hibernate.hql.internal.ast.tree.FromClause.addFromElement(FromClause.java:95)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    4. org.hibernate.hql.internal.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:332)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    5. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3678)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    6. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3567)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    7. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:708)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    8. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:564)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    9. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:301)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    10. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:249)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    11. org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:278)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    12. org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:206)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    13. org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:158)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    14. org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:131)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    15. org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:93)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    16. org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:167)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    17. org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:301)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    18. org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:236)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    19. org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1800)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    19 frames
  3. org.hibernate.jpa
    AbstractEntityManagerImpl.createQuery
    1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:328)[hibernate-entitymanager-4.3.11.Final.jar:4.3.11.Final]
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_65]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_65]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_65]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_65]
    4 frames
  5. Spring ORM
    ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:344)[spring-orm-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    1 frame
  6. com.sun.proxy
    $Proxy86.createQuery
    1. com.sun.proxy.$Proxy86.createQuery(Unknown Source)[na:na]
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_65]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_65]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_65]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_65]
    4 frames
  8. Spring ORM
    SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:293)[spring-orm-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    1 frame
  9. com.sun.proxy
    $Proxy86.createQuery
    1. com.sun.proxy.$Proxy86.createQuery(Unknown Source)[na:na]
    1 frame
  10. pl.test.model
    UserDAO$$FastClassBySpringCGLIB$$5e7d5fdc.invoke
    1. pl.test.model.dao.UserDAO.getAll(UserDAO.java:34)[classes/:na]
    2. pl.test.model.dao.UserDAO$$FastClassBySpringCGLIB$$5e7d5fdc.invoke(<generated>)[classes/:na]
    2 frames
  11. Spring Core
    MethodProxy.invoke
    1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)[spring-core-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    1 frame
  12. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:718)[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2 frames
  13. Spring Tx
    PersistenceExceptionTranslationInterceptor.invoke
    1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    1 frame
  14. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    1 frame
  15. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    3 frames
  16. Spring AOP
    CglibAopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:654)[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2 frames
  17. pl.test.model
    UserDAO$$EnhancerBySpringCGLIB$$5d5ea102.getAll
    1. pl.test.model.dao.UserDAO$$EnhancerBySpringCGLIB$$5d5ea102.getAll(<generated>)[classes/:na]
    1 frame
  18. pl.test.web
    WelcomeController.welcome
    1. pl.test.web.WelcomeController.welcome(WelcomeController.java:29)[classes/:na]
    1 frame
  19. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_65]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_65]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_65]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_65]
    4 frames
  20. Spring
    InvocableHandlerMethod.invokeForRequest
    1. org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2 frames
  21. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:814)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:737)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    8 frames
  22. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:622)[tomcat-embed-core-8.0.28.jar:8.0.28]
    1 frame
  23. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    1 frame
  24. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[tomcat-embed-core-8.0.28.jar:8.0.28]
    1 frame
  25. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2 frames
  26. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-embed-websocket-8.0.28.jar:8.0.28]
    1 frame
  27. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2 frames
  28. Spring Security
    FilterChainProxy.doFilter
    1. org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:207)[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
    2. org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
    2 frames
  29. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2 frames
  30. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2 frames
  31. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2 frames
  32. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2 frames
  33. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2 frames
  34. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2 frames
  35. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2 frames
  36. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2 frames
  37. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
    2 frames
  38. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.28.jar:8.0.28]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)[tomcat-embed-core-8.0.28.jar:8.0.28]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)[tomcat-embed-core-8.0.28.jar:8.0.28]
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)[tomcat-embed-core-8.0.28.jar:8.0.28]
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)[tomcat-embed-core-8.0.28.jar:8.0.28]
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[tomcat-embed-core-8.0.28.jar:8.0.28]
    8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)[tomcat-embed-core-8.0.28.jar:8.0.28]
    9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)[tomcat-embed-core-8.0.28.jar:8.0.28]
    9 frames
  39. Grizzly HTTP
    NioEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)[tomcat-embed-core-8.0.28.jar:8.0.28]
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)[tomcat-embed-core-8.0.28.jar:8.0.28]
    3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)[tomcat-embed-core-8.0.28.jar:8.0.28]
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)[tomcat-embed-core-8.0.28.jar:8.0.28]
    4 frames
  40. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_65]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_65]
    2 frames
  41. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.0.28.jar:8.0.28]
    1 frame
  42. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_65]
    1 frame