[jboss-jira] [JBoss JIRA] (WFLY-4308) Proxies created via ContextService.createContextualProxy(...) are not Serializable

Stephen Coy (Jira) issues at jboss.org
Sat Jan 26 02:56:00 EST 2019


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

Stephen Coy commented on WFLY-4308:
-----------------------------------

I hate to "necro" this old issue, but it is currently still broken in the same way in WildFly 15.

The transient {{SecurityIdentity}} in the {{org.jboss.as.ee.concurrent.IdentityAwareProxyInvocationHandler}} obviously does not survive serialisation, which happens in JMS use cases.


> Proxies created via ContextService.createContextualProxy(...) are not Serializable
> ----------------------------------------------------------------------------------
>
>                 Key: WFLY-4308
>                 URL: https://issues.jboss.org/browse/WFLY-4308
>             Project: WildFly
>          Issue Type: Bug
>          Components: EE
>    Affects Versions: 9.0.0.Alpha1
>            Reporter: Paul Ferraro
>            Assignee: Darran Lofthouse
>            Priority: Critical
>             Fix For: 10.0.0.CR1
>
>
> Setting priority to critical since, I believe, this is a matter of compliance with the concurrency utilities specification.
> Section 3.3.4 of the specification states that:
> "All invocation handlers for the contextual proxy implementation must implement java.io.Serializable."
> While the invocation handler of the generated proxy does indeed implement Serializable, it contains a reference to org.jboss.as.server.moduleservice.ServiceModuleLoader (among others), which is not serializable, thus attempts to serialize the proxies generated via ContextService.createContextualProxy(...) via JBoss Marshalling throw a org.infinispan.commons.marshall.NotSerializableException: org.jboss.as.server.moduleservice.ServiceModuleLoader



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list