undertow/cdi: IllegalStateException while destroying sessions
rhanus Jun 10, 2013 11:18 AMHi,
following exception is raised when a session timeouts:
17:14:36,695 ERROR [stderr] (default task-5) Exception in thread "default task-5" java.lang.IllegalStateException: JBAS016071: Singleton not set for ModuleClassLoader for Module "org.wildfly.extension.io:main" from local module loader @266bd4a9 (finder: local module finder @7156b6f3 (roots: d:\jboss\wildfly-8.0.0.Alpha1\modules,d:\jboss\wildfly-8.0.0.Alpha1\modules\system\layers\base)). This means that you are trying to access a weld deployment with a Thread Context ClassLoader that is not associated with the deployment.
17:14:36,707 ERROR [stderr] (default task-5) at org.jboss.as.weld.services.ModuleGroupSingletonProvider$TCCLSingleton.get(ModuleGroupSingletonProvider.java:75)
17:14:36,713 ERROR [stderr] (default task-5) at org.jboss.weld.Container.instance(Container.java:54)
17:14:36,718 ERROR [stderr] (default task-5) at org.jboss.weld.context.http.HttpSessionContextImpl.getConversationContext(HttpSessionContextImpl.java:63)
17:14:36,723 ERROR [stderr] (default task-5) at org.jboss.weld.context.http.HttpSessionContextImpl.destroy(HttpSessionContextImpl.java:39)
17:14:36,734 ERROR [stderr] (default task-5) at org.jboss.weld.servlet.WeldListener.sessionDestroyed(WeldListener.java:128)
17:14:36,739 ERROR [stderr] (default task-5) at io.undertow.servlet.core.ApplicationListeners.sessionDestroyed(ApplicationListeners.java:215)
17:14:36,751 ERROR [stderr] (default task-5) at io.undertow.servlet.core.SessionListenerBridge.sessionDestroyed(SessionListenerBridge.java:38)
17:14:36,756 ERROR [stderr] (default task-5) at io.undertow.server.session.SessionListeners.sessionDestroyed(SessionListeners.java:38)
17:14:36,767 ERROR [stderr] (default task-5) at io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:276)
17:14:36,772 ERROR [stderr] (default task-5) at io.undertow.server.session.InMemorySessionManager$SessionImpl$1$1.run(InMemorySessionManager.java:139)
17:14:36,783 ERROR [stderr] (default task-5) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
17:14:36,787 ERROR [stderr] (default task-5) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
17:14:36,799 ERROR [stderr] (default task-5) at java.lang.Thread.run(Thread.java:722)
Radim