Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4308

Proxies created via ContextService.createContextualProxy(...) are not Serializable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 10.0.0.CR1
    • 9.0.0.Alpha1
    • EE
    • None

      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

            darran.lofthouse@redhat.com Darran Lofthouse
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: