3 Replies Latest reply on Feb 3, 2020 11:36 AM by mohammedadel

    Bug in WildFly 9 session replication

    valsaraj007

      I 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?

        • 1. Re: Bug in WildFly 9 session replication
          pferraro

          Please post your infinispan subsystem configuration of your web cache container.

          • 2. Re: Bug in WildFly 9 session replication
            valsaraj007

            Hi Paul,

            Here is the conf:

            <subsystem xmlns="urn:jboss:domain:infinispan:3.0">

                            <cache-container name="server" default-cache="default" module="org.wildfly.clustering.server" aliases="singleton cluster">

                                <transport lock-timeout="60000"/>

                                <replicated-cache name="default" mode="SYNC">

                                    <transaction mode="BATCH"/>

                                </replicated-cache>

                            </cache-container>

                            <cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan">

                                <transport lock-timeout="60000"/>

                                <distributed-cache name="dist" mode="ASYNC" owners="2" l1-lifespan="0">

                                    <locking isolation="REPEATABLE_READ"/>

                                    <transaction mode="BATCH"/>

                                    <file-store/>

                                </distributed-cache>

                            </cache-container>

                            <cache-container name="ejb" default-cache="dist" module="org.wildfly.clustering.ejb.infinispan" aliases="sfsb">

                                <transport lock-timeout="60000"/>

                                <distributed-cache name="dist" mode="ASYNC" owners="2" l1-lifespan="0">

                                    <locking isolation="REPEATABLE_READ"/>

                                    <transaction mode="BATCH"/>

                                    <file-store/>

                                </distributed-cache>

                            </cache-container>

                            <cache-container name="hibernate" default-cache="local-query" module="org.hibernate.infinispan">

                                <transport lock-timeout="60000"/>

                                <local-cache name="local-query">

                                    <eviction strategy="LRU" max-entries="10000"/>

                                    <expiration max-idle="100000"/>

                                </local-cache>

                                <invalidation-cache name="entity" mode="SYNC">

                                    <transaction mode="NON_XA"/>

                                    <eviction strategy="LRU" max-entries="10000"/>

                                    <expiration max-idle="100000"/>

                                </invalidation-cache>

                                <replicated-cache name="timestamps" mode="ASYNC"/>

                            </cache-container>

                        </subsystem>

             

            Thank you!

            • 3. Re: Bug in WildFly 9 session replication
              mohammedadel

              did you have any solution to this bug ?