Bug in WildFly 9 session replication
valsaraj007 Feb 9, 2016 5:40 AMI am seeing following error during failover when tested session replication in wildfly-9.0.2.Final:
2016-02-09 15:57:35,218 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /clusterbench/faces/jsfmanaged.xhtml: org.jboss.weld.exceptions.IllegalStateException: WELD-000227: Bean identifier index inconsistency detected - the distributed container probably does not work with identical applications
Expected hash: 1634059381
Current index: BeanIdentifierIndex [hash=-396451095, indexed=13]:
0: WELD%AbstractBuiltInBean%/D:/wildfly-9.0.2.Final-prod/content/clusterbench-ee7.ear/clusterbench-ee7-ejb.jar%HttpSession
1: WELD%AbstractBuiltInBean%/D:/wildfly-9.0.2.Final-prod/content/clusterbench-ee7.ear/clusterbench-ee7-web-default.war%HttpSession
2: WELD%AbstractBuiltInBean%/D:/wildfly-9.0.2.Final-prod/content/clusterbench-ee7.ear/clusterbench-ee7-web-passivating.war%HttpSession
3: WELD%AbstractBuiltInBean%clusterbench-ee7.ear%HttpSession
4: WELD%AbstractBuiltInBean%com.sun.jsf-impl:main.additionalClasses%HttpSession
5: WELD%AbstractBuiltInBean%org.hibernate.validator.cdi:main.additionalClasses%HttpSession
6: WELD%AbstractBuiltInBean%org.jberet.jberet-core:main.additionalClasses%HttpSession
7: WELD%AbstractBuiltInBean%org.jboss.as.jsf:main.additionalClasses%HttpSession
8: WELD%AbstractBuiltInBean%org.jboss.as.messaging:main.additionalClasses%HttpSession
9: WELD%AbstractBuiltInBean%org.jboss.resteasy.resteasy-cdi:main.additionalClasses%HttpSession
10: WELD%ManagedBean%clusterbench-ee7.ear|/D:/wildfly-9.0.2.Final-prod/content/clusterbench-ee7.ear/clusterbench-ee7-web-default.war|org.jboss.test.clusterbench.web.cdi.SessionScopedCdiSerialBean|null|false
11: WELD%ManagedBean%clusterbench-ee7.ear|/D:/wildfly-9.0.2.Final-prod/content/clusterbench-ee7.ear/clusterbench-ee7-web-passivating.war|org.jboss.test.clusterbench.web.cdi.SessionScopedCdiSerialBean|null|false
12: WELD%SessionBean%LocalStatefulSB%org.jboss.test.clusterbench.ejb.stateful.LocalStatefulSB
at org.jboss.weld.context.http.HttpSessionContextImpl.checkBeanIdentifierIndexConsistency(HttpSessionContextImpl.java:88)
at org.jboss.weld.context.http.HttpSessionContextImpl.associate(HttpSessionContextImpl.java:42)
at org.jboss.weld.context.http.HttpSessionContextImpl.associate(HttpSessionContextImpl.java:19)
at org.jboss.weld.servlet.HttpContextLifecycle.requestInitialized(HttpContextLifecycle.java:219)
at org.jboss.weld.servlet.WeldInitialListener.requestInitialized(WeldInitialListener.java:167)
at io.undertow.servlet.core.ApplicationListeners.requestInitialized(ApplicationListeners.java:216)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:281)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
What may be the reason?