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

Paul Ferraro (JIRA) issues at jboss.org
Tue Feb 3 08:58:50 EST 2015


     [ https://issues.jboss.org/browse/WFLY-4308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Ferraro updated WFLY-4308:
-------------------------------
    Description: 
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, 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

  was:
Setting priority to critical since 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 does indeed implement Serializable, it contains a reference to org.jboss.as.server.moduleservice.ServiceModuleLoader, which is not serializable, thus the invocation handler cannot be serialized.



> 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: David Lloyd
>            Priority: Critical
>
> 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, 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
(v6.3.11#6341)


More information about the jboss-jira mailing list