Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7356

WELD-001303 error when executing thread-racing quickstart

XMLWordPrintable

      After pressing the INSERT COIN button in thread-racing quickstart, the following error is produced by EAP:

      09:00:25,763 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped
      09:00:25,764 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:689)
      09:00:25,765 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.getIfExists(ContextualInstanceStrategy.java:90)
      09:00:25,766 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.weld.bean.ContextualInstanceStrategy$CachingContextualInstanceStrategy.getIfExists(ContextualInstanceStrategy.java:165)
      09:00:25,766 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.weld.bean.ContextualInstance.getIfExists(ContextualInstance.java:63)
      09:00:25,766 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:83)
      09:00:25,766 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99)
      09:00:25,766 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.wildfly.extension.messaging.activemq.deployment.injection.RequestedJMSContext$Proxy$_$$_WeldClientProxy.getContext(Unknown Source)
      09:00:25,766 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.wildfly.extension.messaging.activemq.deployment.injection.InjectedJMSContext.getDelegate(InjectedJMSContext.java:91)
      09:00:25,767 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.wildfly.extension.messaging.activemq.deployment.injection.JMSContextWrapper.createTemporaryQueue(JMSContextWrapper.java:252)
      09:00:25,767 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.as.quickstarts.threadracing.stage.jms.JMSRaceStage.run(JMSRaceStage.java:52)
      09:00:25,767 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.as.quickstarts.threadracing.Racer.runRaceStages(Racer.java:152)
      09:00:25,767 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.as.quickstarts.threadracing.Racer.access$100(Racer.java:39)
      09:00:25,767 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.jboss.as.quickstarts.threadracing.Racer$1.run(Racer.java:130)
      09:00:25,767 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at java.lang.Thread.run(Thread.java:745)
      09:00:25,767 ERROR [stderr] (EE-ManagedThreadFactory-default-Thread-2) 	at org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)
      

      The application itself then shows the following output:

      Ready... Set... Go!

      Sebastien Throeb completed the Batch 1.0 stage.
      Michael Thrumacher completed the Batch 1.0 stage.
      Valentino Throssi completed the Batch 1.0 stage.
      Jimmie Thronson completed the Batch 1.0 stage.
      Sebastien Throeb completed the EE Concurrency 1.0 stage.
      Michael Thrumacher completed the EE Concurrency 1.0 stage.
      Valentino Throssi completed the EE Concurrency 1.0 stage.
      Jimmie Thronson completed the EE Concurrency 1.0 stage.
      Sebastien Throeb PIT STOP in 96ms
      Jimmie Thronson PIT STOP in 96ms
      Valentino Throssi PIT STOP in 96ms
      Michael Thrumacher PIT STOP in 96ms
      Sebastien Throeb completed the JAX-RS 2.0 stage.
      Jimmie Thronson completed the JAX-RS 2.0 stage.
      Valentino Throssi completed the JAX-RS 2.0 stage.
      Michael Thrumacher completed the JAX-RS 2.0 stage.
      Michael Thrumacher aborted the race... such a looser! Reason: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped
      Valentino Throssi aborted the race... such a looser! Reason: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped
      Jimmie Thronson aborted the race... such a looser! Reason: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped
      Sebastien Throeb aborted the race... such a looser! Reason: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped

              jmesnil1@redhat.com Jeff Mesnil
              sgilda_jira Sande Gilda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: