javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation @RequestScoped does not exist within current thread

incubator-deltaspike-users | Christian Beikov | 4 years ago
  1. 0

    Re: JPA Module Problem with Websphere 8

    incubator-deltaspike-users | 4 years ago | Christian Beikov
    javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation @RequestScoped does not exist within current thread
  2. 0

    Re: JPA Module Problem with Websphere 8

    incubator-deltaspike-users | 4 years ago | Christian Beikov
    javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation @RequestScoped does not exist within current thread
  3. 0

    JPA Module Problem with Websphere 8

    incubator-deltaspike-users | 4 years ago | Christian Beikov
    javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation @RequestScoped does not exist within current thread
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JPA Module Problem with Websphere 8

    incubator-deltaspike-users | 4 years ago | Christian Beikov
    javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation @RequestScoped does not exist within current thread
  6. 0

    cdi - javax.enterprise.context.ContextNotActiveException while using scoped beans in @Producer methods

    Stack Overflow | 1 year ago | ares
    javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation @ApplicationScoped does not exist within current thread

    4 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. javax.enterprise.context.ContextNotActiveException

      WebBeans context with scope type annotation @RequestScoped does not exist within current thread

      at org.apache.webbeans.container.BeanManagerImpl.getContext()
    2. OpenWebBeans Core
      NormalScopedBeanInterceptorHandler.invoke
      1. org.apache.webbeans.container.BeanManagerImpl.getContext(BeanManagerImpl.java:321)
      2. org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:124)
      3. org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:95)
      3 frames
    3. Apache DeltaSpike JPA-Module Impl
      TransactionalInterceptor.executeInTransaction
      1. org.apache.deltaspike.jpa.impl.transaction.context.TransactionBeanStorage_$$_javassist_370.isEmpty(TransactionBeanStorage_$$_javassist_370.java)
      2. org.apache.deltaspike.jpa.impl.transaction.ResourceLocalTransactionStrategy.execute(ResourceLocalTransactionStrategy.java:82)
      3. org.apache.deltaspike.jpa.impl.transaction.TransactionalInterceptor.executeInTransaction(TransactionalInterceptor.java:57)
      3 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    5. OpenWebBeans Core
      NormalScopedBeanInterceptorHandler.invoke
      1. org.apache.webbeans.intercept.InvocationContextImpl.proceedAroundInvokes(InvocationContextImpl.java:237)
      2. org.apache.webbeans.intercept.InvocationContextImpl.proceed(InvocationContextImpl.java:175)
      3. org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.callAroundInvokes(NormalScopedBeanInterceptorHandler.java:110)
      4. org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:266)
      5. org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:98)
      5 frames
    6. com.clevercure.dm
      StartupObserver.observe
      1. com.clevercure.dm.service.impl.DocumentServiceImpl_$$_javassist_367.setupData(DocumentServiceImpl_$$_javassist_367.java)
      2. com.clevercure.dm.service.event.handler.StartupObserver.observe(StartupObserver.java:27)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    8. OpenWebBeans Core
      EventImpl.fire
      1. org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:285)
      2. org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:455)
      3. org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:415)
      4. org.apache.webbeans.event.EventImpl.fire(EventImpl.java:76)
      4 frames
    9. com.clevercure.collab
      StartupObserver.observe
      1. com.clevercure.collab.service.event.handler.StartupObserver.observe(StartupObserver.java:29)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    11. OpenWebBeans Core
      EventImpl.fire
      1. org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:285)
      2. org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:455)
      3. org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:415)
      4. org.apache.webbeans.event.EventImpl.fire(EventImpl.java:76)
      4 frames
    12. com.clevercure.core
      StartupObserver.observe
      1. com.clevercure.core.event.handler.StartupObserver.observe(StartupObserver.java:29)
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    14. OpenWebBeans Core
      EventImpl.fire
      1. org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:285)
      2. org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:455)
      3. org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:415)
      4. org.apache.webbeans.event.EventImpl.fire(EventImpl.java:76)
      4 frames
    15. com.clevercure.web
      ApplicationStartupListener.contextInitialized
      1. com.clevercure.web.core.application.listener.ApplicationStartupListener.contextInitialized(ApplicationStartupListener.java:33)
      1 frame
    16. WebSphere
      ContextManagerImpl.runAsSystem
      1. com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1651)
      2. com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:410)
      3. com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
      4. com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
      5. com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:745)
      6. com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:633)
      7. com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
      8. com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
      9. com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1138)
      10. com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
      11. com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:638)
      12. com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
      13. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:744)
      14. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1332)
      15. com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2128)
      16. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
      17. com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
      18. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
      19. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
      20. com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)
      21. com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5315)
      22. com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5531)
      22 frames
    17. com.ibm.ws
      SecurityContext.runAsSystem
      1. com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
      1 frame
    18. WebSphere
      ApplicationMgrImpl.startApplication
      1. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)
      2. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
      3. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1224)
      3 frames
    19. Java RT
      JmxMBeanServer.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      5. sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
      6. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      7. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      8. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      9. java.lang.reflect.Method.invoke(Method.java:611)
      10. sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
      11. javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
      12. javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
      13. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
      14. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
      14 frames
    20. WebSphere
      AppManagementImpl.startApplication
      1. com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
      2. com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
      3. com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
      4. com.ibm.ws.management.application.AppManagementImpl._startApplication(AppManagementImpl.java:1433)
      5. com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1322)
      6. com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1271)
      6 frames
    21. Java RT
      JmxMBeanServer.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      5. sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
      6. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      7. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      8. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      9. java.lang.reflect.Method.invoke(Method.java:611)
      10. sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
      11. javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
      12. javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
      13. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
      14. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
      14 frames
    22. WebSphere
      AdminServiceImpl.invoke
      1. com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
      2. com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
      3. com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
      3 frames
    23. com.ibm.ws
      IPCConnectorInboundLink$IPCConnectorReadCallback.complete
      1. com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
      2. com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)
      3. com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:353)
      4. com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:595)
      4 frames
    24. WebSphere
      AioReadCompletionListener.futureCompleted
      1. com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      1 frame
    25. com.ibm.io
      ResultHandler$2.run
      1. com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      2. com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      3. com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
      4. com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
      5. com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
      6. com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
      6 frames
    26. com.ibm.ws
      ThreadPool$Worker.run
      1. com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1650)
      1 frame