Axis2
  1. Axis2
  2. AXIS2-4827

ADB class org.apache.axis2.databinding.types.Union does not implement java.io.Serializable

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.4, 1.6.0
    • Component/s: adb
    • Labels:
      None

      Description

      When ADB is used as the databinding, all generated code is generated as serializable. In our application, we actually have a SOAP gateway that acts as a proxy to another application and we pass the ADB beans directly between the gateway and the application using RMI. We want to use xsd:union in our WSDL, but currently can not because the generated class extends Union which is not declared as serializable.

      If this was just an oversight, then the fix is trivial. Make org.apache.axis2.databinding.types.Union implement Serializable. If the concern is that the 'localObject' value within might not be serializable, then I would either suggest that the declaration of said variable be made serializable or you take a 'who cares' approach to its serializability (i.e. if someone puts something that isn't serializable in the Union object and tries to send it over RMI, then they've dug their own grave).

        Activity

        Aaron Gourley created issue -
        Andreas Veithen made changes -
        Field Original Value New Value
        Assignee Andreas Veithen [ veithen ]
        Fix Version/s 1.6 [ 12313622 ]
        Fix Version/s 1.5.4 [ 12315568 ]
        Andreas Veithen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Andreas Veithen
            Reporter:
            Aaron Gourley
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development