javax.persistence.PersistenceException: org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.engine.jdbc.spi.JdbcServices]

Stack Overflow | YouYou | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hibernate UnknownServiceException fired when executing query similar to one ran before

    Stack Overflow | 7 months ago | YouYou
    javax.persistence.PersistenceException: org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.engine.jdbc.spi.JdbcServices]

  1. mauritius 7 times, last 1 year ago
  2. linxiaolong 1 times, last 3 months ago
1 unregistered visitors

Root Cause Analysis

  1. org.hibernate.service.UnknownServiceException

    Unknown service requested [org.hibernate.engine.jdbc.spi.JdbcServices]

    at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService()
  2. Hibernate
    QueryImpl.list
    1. org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:184)
    2. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.getJdbcService(StatementPreparerImpl.java:206)
    3. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.access$100(StatementPreparerImpl.java:30)
    4. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:167)
    5. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:148)
    6. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1927)
    7. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1896)
    8. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1874)
    9. org.hibernate.loader.Loader.doQuery(Loader.java:919)
    10. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:336)
    11. org.hibernate.loader.Loader.doList(Loader.java:2610)
    12. org.hibernate.loader.Loader.doList(Loader.java:2593)
    13. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2422)
    14. org.hibernate.loader.Loader.list(Loader.java:2417)
    15. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:501)
    16. org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371)
    17. org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216)
    18. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1339)
    19. org.hibernate.internal.QueryImpl.list(QueryImpl.java:87)
    19 frames
  3. org.hibernate.jpa
    QueryImpl.getResultList
    1. org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:606)
    2. org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:483)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  5. Spring ORM
    SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:368)
    1 frame
  6. com.sun.proxy
    $Proxy153.getResultList
    1. com.sun.proxy.$Proxy153.getResultList(Unknown Source)
    1 frame
  7. com.see3.propelit
    AccountDaoImpl$$FastClassBySpringCGLIB$$a12ddd7f.invoke
    1. com.see3.propelit.dao.impl.BasicDaoImpl.getSingleResult(BasicDaoImpl.java:109)
    2. com.see3.propelit.dao.impl.AccountDaoImpl.loadAccountByEmail(AccountDaoImpl.java:44)
    3. com.see3.propelit.dao.impl.AccountDaoImpl$$FastClassBySpringCGLIB$$a12ddd7f.invoke(<generated>)
    3 frames
  8. Spring Core
    MethodProxy.invoke
    1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    1 frame
  9. Spring AOP
    CglibAopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:651)
    1 frame
  10. com.see3.propelit
    UniqueUsernamelValidator.validate
    1. com.see3.propelit.dao.impl.AccountDaoImpl$$EnhancerBySpringCGLIB$$d9829aca.loadAccountByEmail(<generated>)
    2. com.see3.propelit.service.impl.AccountServiceImpl.loadAccountByEmail(AccountServiceImpl.java:103)
    3. com.see3.propelit.web.util.jsf.validators.UniqueUsernamelValidator.isUsernameExisted(UniqueUsernamelValidator.java:63)
    4. com.see3.propelit.web.util.jsf.validators.UniqueUsernamelValidator.validate(UniqueUsernamelValidator.java:44)
    4 frames
  11. JavaEE 7
    UIViewRoot.processValidators
    1. javax.faces.component.UIInput.validateValue(UIInput.java:1164)
    2. javax.faces.component.UIInput.validate(UIInput.java:982)
    3. javax.faces.component.UIInput.executeValidate(UIInput.java:1248)
    4. javax.faces.component.UIInput.processValidators(UIInput.java:712)
    5. javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1261)
    6. javax.faces.component.UIForm.processValidators(UIForm.java:253)
    7. javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1261)
    8. javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1261)
    9. javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1195)
    9 frames
  12. JSF
    LifecycleImpl.execute
    1. com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
    2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
    3 frames
  13. JavaEE 7
    FacesServlet.service
    1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:658)
    1 frame
  14. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  15. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  16. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  17. org.netbeans.modules
    MonitorFilter.doFilter
    1. org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    1 frame
  18. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  19. com.see3.propelit
    CharacterEncodingFilter.doFilter
    1. com.see3.propelit.web.util.jsf.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:26)
    1 frame
  20. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  21. com.see3.propelit
    LoggedInFilter.doFilter
    1. com.see3.propelit.web.security.LoggedInFilter.doFilter(LoggedInFilter.java:53)
    1 frame
  22. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
    4. org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:106)
    5. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
    6. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    7. org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:142)
    8. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
    9. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    10. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
    11. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
    12. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
    12 frames
  23. Grizzly HTTP
    NioEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
    3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
    4 frames
  24. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    2 frames
  25. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    1 frame
  26. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame