Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4001

Union Deserialization of attributes is broken

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: adb
    • Labels:
      None

      Description

      Deserialization of attributes union extension is broken.
      Attached is the schema and JUnit test sample.

      During deserialization, it threw the following exception:
      java.lang.IllegalStateException: Current state not START_ELEMENT
      at com.ctc.wstx.sr.BasicStreamReader.getAttributeValue(BasicStreamReader.java:641)
      at org.example.www.unionextension.TestUnionExtensionType$Factory.parse(TestUnionExtensionType.java:533)
      at org.apache.axis2.schema.extension.UnionExtensionTest.testUnionExtension(UnionExtensionTest.java:24)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      while attempting to read the attribute value after deserializing the element type.

      Side note: The attributes are also not serialized.

      1. unionError.xsd
        0.8 kB
        Jan Pernica
      2. unionExtension.xsd
        0.8 kB
        Chyi Pin Lim
      3. UnionExtensionTest.java
        2 kB
        Chyi Pin Lim

        Activity

        Hide
        chyipin Chyi Pin Lim added a comment -

        XML Schema for union extension.

        Show
        chyipin Chyi Pin Lim added a comment - XML Schema for union extension.
        Hide
        chyipin Chyi Pin Lim added a comment -

        JUnit Test

        Show
        chyipin Chyi Pin Lim added a comment - JUnit Test
        Hide
        pernicajan@volny.cz Jan Pernica added a comment -

        I have similar problem. See attached XSD.
        The KeyTypeEnum does not have extended attributes.

        Show
        pernicajan@volny.cz Jan Pernica added a comment - I have similar problem. See attached XSD. The KeyTypeEnum does not have extended attributes.
        Hide
        pernicajan@volny.cz Jan Pernica added a comment -

        XYZ and ZYX not generated for Child

        Show
        pernicajan@volny.cz Jan Pernica added a comment - XYZ and ZYX not generated for Child

          People

          • Assignee:
            Unassigned
            Reporter:
            chyipin Chyi Pin Lim
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development