You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Chyi Pin Lim (JIRA)" <ji...@apache.org> on 2008/08/29 01:39:44 UTC

[jira] Created: (AXIS2-4001) Union Deserialization of attributes is broken

Union Deserialization of attributes is broken
---------------------------------------------

                 Key: AXIS2-4001
                 URL: https://issues.apache.org/jira/browse/AXIS2-4001
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
            Reporter: Chyi Pin Lim


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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-4001) Union Deserialization of attributes is broken

Posted by "Chyi Pin Lim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chyi Pin Lim updated AXIS2-4001:
--------------------------------

    Attachment: UnionExtensionTest.java

JUnit Test

> Union Deserialization of attributes is broken
> ---------------------------------------------
>
>                 Key: AXIS2-4001
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4001
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Chyi Pin Lim
>         Attachments: unionExtension.xsd, UnionExtensionTest.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-4001) Union Deserialization of attributes is broken

Posted by "Chyi Pin Lim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chyi Pin Lim updated AXIS2-4001:
--------------------------------

    Attachment: unionExtension.xsd

XML Schema for union extension.

> Union Deserialization of attributes is broken
> ---------------------------------------------
>
>                 Key: AXIS2-4001
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4001
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Chyi Pin Lim
>         Attachments: unionExtension.xsd, UnionExtensionTest.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-4001) Union Deserialization of attributes is broken

Posted by "Jan Pernica (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679209#action_12679209 ] 

Jan Pernica commented on AXIS2-4001:
------------------------------------

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

> Union Deserialization of attributes is broken
> ---------------------------------------------
>
>                 Key: AXIS2-4001
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4001
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Chyi Pin Lim
>         Attachments: unionExtension.xsd, UnionExtensionTest.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2-4001) Union Deserialization of attributes is broken

Posted by "Jan Pernica (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Pernica updated AXIS2-4001:
-------------------------------

    Attachment: unionError.xsd

XYZ and ZYX not generated for Child

> Union Deserialization of attributes is broken
> ---------------------------------------------
>
>                 Key: AXIS2-4001
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4001
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Chyi Pin Lim
>         Attachments: unionError.xsd, unionExtension.xsd, UnionExtensionTest.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.