javax.persistence.NoResultException: No entity found for query

Stack Overflow | Mr.X | 3 months ago
  1. 0

    No entity found for query - Exception

    Stack Overflow | 3 months ago | Mr.X
    javax.persistence.NoResultException: No entity found for query
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

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. javax.persistence.NoResultException

    No entity found for query

    at org.hibernate.jpa.internal.QueryImpl.getSingleResult()
  2. org.hibernate.jpa
    QueryImpl.getSingleResult
    1. org.hibernate.jpa.internal.QueryImpl.getSingleResult(QueryImpl.java:498)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
    1 frame
  3. sessions
    BazenSessionManager.loginVlasnik
    1. sessions.BazenSessionManager.loginVlasnik(BazenSessionManager.java:40)[BazenEJB.jar:]
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[rt.jar:1.8.0_25]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[rt.jar:1.8.0_25]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[rt.jar:1.8.0_25]
    4. java.lang.reflect.Method.invoke(Method.java:483)[rt.jar:1.8.0_25]
    4 frames
  5. JBoss Application Server: EE
    ManagedReferenceMethodInterceptor.processInvocation
    1. org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
    1 frame
  6. JBoss Application Server Server
    WeavedInterceptor.processInvocation
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    2. org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
    2 frames
  7. JBoss Application Server: EE
    UserInterceptorFactory$1.processInvocation
    1. org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
    1 frame
  8. JBoss Application Server Server
    InterceptorContext$Invocation.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    2. org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
    2 frames
  9. Weld
    Jsr299BindingsInterceptor.processInvocation
    1. org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)[wildfly-weld-8.2.0.Final.jar:8.2.0.Final]
    2. org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)[wildfly-weld-8.2.0.Final.jar:8.2.0.Final]
    2 frames
  10. JBoss Application Server: EE
    UserInterceptorFactory$1.processInvocation
    1. org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
    1 frame
  11. JBoss Application Server Server
    WeavedInterceptor.processInvocation
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    2. org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
    2 frames
  12. JBoss Application Server: EE
    UserInterceptorFactory$1.processInvocation
    1. org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
    1 frame
  13. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    1 frame
  14. JBoss Application Server: EJB Subsystem
    ExecutionTimeInterceptor.processInvocation
    1. org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)[wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
    1 frame
  15. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    1 frame
  16. JPA
    SBInvocationInterceptor.processInvocation
    1. org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)[wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
    1 frame
  17. JBoss Application Server Server
    InterceptorContext$Invocation.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    2. org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
    2 frames
  18. Weld Implementation
    AbstractEJBRequestScopeActivationInterceptor.aroundInvoke
    1. org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)[weld-core-impl-2.2.6.Final.jar:2014-10-03 10:05]
    1 frame
  19. Weld
    EjbRequestScopeActivationInterceptor.processInvocation
    1. org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)[wildfly-weld-8.2.0.Final.jar:8.2.0.Final]
    1 frame
  20. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    1 frame
  21. WildFly: EE
    ConcurrentContextInterceptor.processInvocation
    1. org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)[wildfly-ee-8.2.0.Final.jar:8.2.0.Final]
    1 frame
  22. JBoss Application Server Server
    ChainedInterceptor.processInvocation
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    2. org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
    3. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    4. org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
    4 frames
  23. JBoss Application Server: EE
    ComponentDispatcherInterceptor.processInvocation
    1. org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
    1 frame
  24. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    1 frame
  25. JBoss Application Server: EJB Subsystem
    NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation
    1. org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59)[wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
    1 frame
  26. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
    1 frame
  27. JBoss Application Server: EJB Subsystem
    CMTTxInterceptor.invokeInOurTx
    1. org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)[wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
    1 frame