0 Replies Latest reply on Jun 13, 2011 12:37 PM by richard yang

    Singleton not set error

    richard yang Newbie
      I got this Singleton not set error. But do not know based on the stack trace which bean is not set.
      I am using jboss as6 final. Interesting thing is that sometimes it does not give me this error even there is no code change. I guess it is because of timing. I checked that I don't have circular dependencies. Could anybody tell me how to figure out which bean is not set or injected?

      Unexpected error occurred while routing responses.: java.lang.IllegalStateException: Singleton not set for org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@4a2edb3
              at org.jboss.weld.integration.provider.JBossSingletonProvider$EarSingleton.get(JBossSingletonProvider.java:59)
              at org.jboss.weld.Container.instance(Container.java:58) [:6.0.0.Final]
              at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:72)
              at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:87)
              at com.pearson.epen.impl.service.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$C:$apps$jboss$jboss-6$0$0$Final$server$epen_mysql$deploy$ResponseServiceTest$war"-ManagedBean-class_com$pearson$epen$impl$service$ResponseServiceImpl_$$_WeldClientProxy.getNextResponseForRouter(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$C:$apps$jboss$jboss-6$0$0$Final$server$epen_mysql$deploy$ResponseServiceTest$war"-ManagedBean-class_com$pearson$epen$impl$service$ResponseServiceImpl_$$_WeldClientProxy.java)
              at com.pearson.epen.impl.workflow.RouterThread.call(RouterThread.java:44) [:]
              at com.pearson.epen.impl.workflow.RouterThread.call(RouterThread.java:14) [:]
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [:1.6.0_24]
              at java.util.concurrent.FutureTask.run(Unknown Source) [:1.6.0_24]
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_24]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_24]
              at java.lang.Thread.run(Unknown Source) [:1.6.0_24]
      ||