[weld-issues] [JBoss JIRA] Commented: (WELD-976) "WELD-001500 Failed to deserialize proxy object" on failover

Radoslav Husar (JIRA) jira-events at lists.jboss.org
Thu Sep 22 09:26:26 EDT 2011


    [ https://issues.jboss.org/browse/WELD-976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629883#comment-12629883 ] 

Radoslav Husar commented on WELD-976:
-------------------------------------

https://github.com/weld/core/commit/9e3f906adbd3e727b3a7196699668d5b700dc097

> "WELD-001500 Failed to deserialize proxy object" on failover
> ------------------------------------------------------------
>
>                 Key: WELD-976
>                 URL: https://issues.jboss.org/browse/WELD-976
>             Project: Weld
>          Issue Type: Bug
>          Components: Clustering
>         Environment: AS 7.0.1.Final 
>            Reporter: Radoslav Husar
>            Assignee: Stuart Douglas
>            Priority: Blocker
>             Fix For: 1.2.0.Beta1
>
>
> 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:
> {code}
> 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]
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list