Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-976

"WELD-001500 Failed to deserialize proxy object" on failover

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 1.1.2.Final
    • Fix Version/s: 1.1.3.Final
    • Component/s: Clustering
    • Labels:
      None

      Description

      After discussing AS7-1609 it seems that it is actually a WELD issue.

      Use the steps from AS7-1521 to reproduce the issue.

      The following exception is thrown when the second instance tries to read the session:

      12:55:57,019 WARN  [org.jboss.as.clustering.web.infinispan.DistributedCacheManager] (http--127.0.0.1-8180-1) Problem accessing session [V7****yEGKy7]: org.jboss.weld.exceptions.WeldException: WELD-001500 Failed to deserialize proxy object
      12:55:57,019 DEBUG [org.jboss.as.clustering.web.infinispan.DistributedCacheManager] (http--127.0.0.1-8180-1) Problem accessing session [V7****yEGKy7]: org.jboss.weld.exceptions.WeldException: WELD-001500 Failed to deserialize proxy object: org.jboss.weld.exceptions.WeldException: WELD-001500 Failed to deserialize proxy object
              at org.jboss.weld.bean.proxy.util.SerializableProxy.readObject(SerializableProxy.java:122) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]
              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
              at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:211)
              at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1570)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1231)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1673)
              at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1589)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1231)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadCollectionObject(RiverUnmarshaller.java:180)
              at org.jboss.marshalling.river.RiverUnmarshaller.readCollectionData(RiverUnmarshaller.java:769)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:649)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1673)
              at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1589)
              at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1553)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1231)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1673)
              at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1589)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1231)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1673)
              at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1589)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1231)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadMapObject(RiverUnmarshaller.java:195)
              at org.jboss.marshalling.river.RiverUnmarshaller.readMapData(RiverUnmarshaller.java:791)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:682)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)
              at org.jboss.as.clustering.SimpleMarshalledValue.get(SimpleMarshalledValue.java:92)
              at org.jboss.as.clustering.web.impl.SessionAttributeMarshallerImpl.unmarshal(SessionAttributeMarshallerImpl.java:70)
              at org.jboss.as.clustering.web.infinispan.CoarseSessionAttributeStorage.load(CoarseSessionAttributeStorage.java:65)
              at org.jboss.as.clustering.web.infinispan.DistributedCacheManager$3.invoke(DistributedCacheManager.java:283)
              at org.jboss.as.clustering.web.infinispan.DistributedCacheManager$3.invoke(DistributedCacheManager.java:268)
              at org.jboss.as.clustering.infinispan.invoker.RetryingCacheInvoker.invoke(RetryingCacheInvoker.java:67)
              at org.jboss.as.clustering.web.infinispan.DistributedCacheManager.getData(DistributedCacheManager.java:294)
              at org.jboss.as.clustering.web.infinispan.DistributedCacheManager.getSessionData(DistributedCacheManager.java:250)
              at org.jboss.as.web.session.DistributableSessionManager.loadSession(DistributableSessionManager.java:1410) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
              at org.jboss.as.web.session.DistributableSessionManager.findSession(DistributableSessionManager.java:701) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
              at org.jboss.as.web.session.DistributableSessionManager.findSession(DistributableSessionManager.java:84) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
              at org.apache.catalina.connector.Request.doGetSession(Request.java:2618) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at org.apache.catalina.connector.Request.getSession(Request.java:2375) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:841) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at org.jboss.weld.context.beanstore.http.LazySessionBeanStore.getSession(LazySessionBeanStore.java:68) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
              at org.jboss.weld.context.beanstore.http.LazySessionBeanStore.<init>(LazySessionBeanStore.java:60) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
              at org.jboss.weld.context.http.HttpSessionContextImpl.associate(HttpSessionContextImpl.java:36) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
              at org.jboss.weld.context.http.HttpSessionContextImpl.associate(HttpSessionContextImpl.java:17) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
              at org.jboss.weld.servlet.WeldListener.requestInitialized(WeldListener.java:154) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
              at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
      Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]
              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
              at org.jboss.weld.bean.proxy.util.SerializableProxy.readObject(SerializableProxy.java:118) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
              ... 66 more
      Caused by: java.io.InvalidObjectException: Shared/unshared object mismatch
              at org.jboss.marshalling.river.RiverUnmarshaller.sharedMismatch(RiverUnmarshaller.java:800)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:270)
              at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:153)
              at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:139)
              at org.jboss.marshalling.MarshallerObjectInputStream.readObjectOverride(MarshallerObjectInputStream.java:57)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:344) [:1.6.0_24]
              at org.jboss.weld.examples.numberguess.2106242444$Proxy$_$$_WeldDecoratorProxy.deserializeProxy(2106242444$Proxy$_$$_WeldDecoratorProxy.java) [classes:]
              ... 71 more
      Caused by: an exception which occurred:
              in object of type org.jboss.weld.bean.proxy.util.SerializableProxy
              in field instance
              in object of type org.jboss.weld.context.SerializableContextualInstanceImpl
              in element at index [0] of size [4]
              in field c
              in object of type java.util.Collections$SynchronizedList
              in field dependentInstances
              in object of type org.jboss.weld.context.CreationalContextImpl
              in field creationalContext
              in object of type org.jboss.weld.context.SerializableContextualInstanceImpl
              in map value at index [2] of size [5]
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swd847 Stuart Douglas
                  Reporter:
                  rhusar Radoslav Husar
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: