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 "Steve Green (JIRA)" <ax...@ws.apache.org> on 2005/01/05 21:20:13 UTC

[jira] Created: (AXIS-1752) xs:list attributes do not serialize

xs:list attributes do not serialize
-----------------------------------

         Key: AXIS-1752
         URL: http://issues.apache.org/jira/browse/AXIS-1752
     Project: Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: current (nightly)    
    Reporter: Steve Green
 Attachments: 1752.diff

When sending messages that contain attributes consisting of a list, the attribute is not serialized.

The problem appears to be for 2 reasons.

1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".

2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=all ]

Steve Green updated AXIS-1752:
------------------------------

    Attachment: Test1752.java

Attached is a totally self contained version of the test program.  No wsdl or further code generation is needed.

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752-02.02.05.diff, 1752-and-1762-diff.txt, 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java, Test1752.java
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=history ]

Steve Green updated AXIS-1752:
------------------------------

    Attachment: 1752_try2.patch

This patch replaces the previous patch.

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff, 1752_try2.patch
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1752) xs:list attributes do not serialize

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=comments#action_58189 ]
     
Davanum Srinivas commented on AXIS-1752:
----------------------------------------

steve,

other peoples code (that depend on this behavior) is not in axis' cvs.

-- dims

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=all ]

Steve Green updated AXIS-1752:
------------------------------

    Attachment: 1752-and-1762-simpler.patch

Attached is a much simpler version of the attribute list {de}serialization bug patch.

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752-02.02.05.diff, 1752-and-1762-diff.txt, 1752-and-1762-simpler.patch, 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java, Test1752.java, testcase.tar
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=history ]

Steve Green updated AXIS-1752:
------------------------------

    Attachment: Test.java

Test program showing the bug.  Proper output should contain an attribute called newEntryIDs with value "a b c".

As far as the request for creating a new datatype, I can do that if you prefer however I do believe that I've already changed all of the relevant 2's to 3's in JavaBeanWriter.

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1752) xs:list attributes do not serialize

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=comments#action_58045 ]
     
Davanum Srinivas commented on AXIS-1752:
----------------------------------------

Steve,

Do you have a test case/wsdl i can use to verify the patch/fix?

thanks,
dims

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff, 1752.diff-u, 1752_try2.patch
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=history ]

Steve Green updated AXIS-1752:
------------------------------

    Attachment: 1752-02.02.05.diff

This is a new patch that has the new data structure in it, as well the 'names' array has been renamed to 'fields' in order to force refactoring of dependant code.

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752-02.02.05.diff, 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1752) xs:list attributes do not serialize

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=all ]
     
Davanum Srinivas resolved AXIS-1752:
------------------------------------

    Resolution: Fixed

fixed. 

thanks,
dims

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752-02.02.05.diff, 1752-and-1762-diff.txt, 1752-and-1762-simpler.patch, 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java, Test1752.java, testcase.tar
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=all ]

Tom Jordahl updated AXIS-1752:
------------------------------

    Attachment: 1752-and-1762-diff.txt

I am attaching an updated version of the patch for both this bug and 1762.  This patch causes the test/wsdl/gateway functional test to fail.  Steve, if you can resolve this problem I can submit this patch.


> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752-02.02.05.diff, 1752-and-1762-diff.txt, 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=all ]

Steve Green updated AXIS-1752:
------------------------------

    Attachment: testcase.tar

Attached is a test case.

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752-02.02.05.diff, 1752-and-1762-diff.txt, 1752-and-1762-simpler.patch, 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java, Test1752.java, testcase.tar
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=history ]

Steve Green updated AXIS-1752:
------------------------------

    Attachment: 1752.diff

This patch adds the code to generate the indexed getter and setter, as well as the code to serialize attributes that are indexed.  Please note that this diff is big mainly because I changed tabs to spaces and refactored some code into a function.

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1752) xs:list attributes do not serialize

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=comments#action_66579 ]
     
Davanum Srinivas commented on AXIS-1752:
----------------------------------------

Steve,

Since everything is working except for "attributes that are lists". i'd consider it a bug.

thanks,
dims

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752-02.02.05.diff, 1752-and-1762-diff.txt, 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java, Test1752.java
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=comments#action_58191 ]
     
Steve Green commented on AXIS-1752:
-----------------------------------

Dims,

Creating a new data structure is definitely the way to go.  It's still going to break any code that depends on the items in the array however.  Would you like me to rename the array so as to force refactoring?


~S

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=history ]

Steve Green updated AXIS-1752:
------------------------------

    Attachment: 1752.wsdl

Sample WSDL

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1752) xs:list attributes do not serialize

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=comments#action_57413 ]
     
Davanum Srinivas commented on AXIS-1752:
----------------------------------------

email from steve to axis-dev
----------------------------

Dims, if you're out there, put a hold on AXIS-1752 for the time being.

The problem appears to be for 2 reasons.

1. wsdl2java does not generate the indexed getter and setter methods.
The bean introspector does not recognize the method as a list method and
thus the serializer fails when trying to serialize the "value".

2. BeanSerializer doesn't have any code to serialize attributes that are
indexed.

Fixing #1 and #2 seemed simple enough, but after fixing them, another
problem cropped up which seems to be in direct conflict with #1.

wsdl2java has some code which generates the indexed getter and setter if
the qname of the element in question has a '[' in the local part.  For
my attribute list case, the local part of the qname is something like
">foo>bar".  I thought I could just use the typeName, and search for '['
but that breaks base64Binary types.  They end up getting serialized as a
collection of byte.

I can think of a couple ways to solve the problem, but once again, I am
not really confident as to the best way.

1.  The TypeEntry for the element in question has a member called
isSimpleType().  It seems to be set to 'false' for the base64Binary
case, and 'true' for the attribute list case.  Can anyone tell me if
that is a safe assumption to make?

2.  JavaBeanWriter already has a bunch of special code for base64Binary
and hexBinary.  I could create another special case.

My inclination is #2, but before I clutter up JIRA anymore than I
already have, I'd like to get an opinion or two.

Thank you..

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1752) xs:list attributes do not serialize

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=comments#action_58049 ]
     
Davanum Srinivas commented on AXIS-1752:
----------------------------------------

Also, can you add another datastructure instead of adding stuff to names? i believe people have code that assume (+=2) to traverse and we will be breaking their code :(

thanks,
dims

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff, 1752.diff-u, 1752_try2.patch
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1752) xs:list attributes do not serialize

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=comments#action_57593 ]
     
Davanum Srinivas commented on AXIS-1752:
----------------------------------------

Steve,

Please upload "diff -u" version of the patch.

thanks,
dims

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff, 1752_try2.patch
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=history ]

Steve Green updated AXIS-1752:
------------------------------

    Attachment: 1752.diff-u

diff -u version of the previous patch

> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752.diff, 1752.diff-u, 1752_try2.patch
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1752) xs:list attributes do not serialize

Posted by "Steve Green (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1752?page=comments#action_66565 ]
     
Steve Green commented on AXIS-1752:
-----------------------------------

Tom, Dims, etc..

AXIS-1752, and AXIS-1762 may not be valid bugs.

I understand that all types must be registered in the type mapping in order to {de}serialize properly.  These bug reports address what I thought was a grey area.

The problem I've run across is that a bean with xs:list attributes does not serialize properly in a stand alone code fragment.  i.e. 

    Bean bean = new Bean();
    bean.setX(...);
    bean.setY(...);
    new MessageElement(.., .., bean).toString();

BeanSerializer can do everything (so far) except for attributes that are lists.

Attached is a test program that shows the problem in action.  You'll notice that the attribute values are not serialized.  If you say that Axis is working as designed (i.e. not working) then please close AXIS-1762 and AXIS-1752.

If these bugs are deemed valid, then a further review of my fixes is probably warranted.



> xs:list attributes do not serialize
> -----------------------------------
>
>          Key: AXIS-1752
>          URL: http://issues.apache.org/jira/browse/AXIS-1752
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Steve Green
>  Attachments: 1752-02.02.05.diff, 1752-and-1762-diff.txt, 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java, Test1752.java
>
> When sending messages that contain attributes consisting of a list, the attribute is not serialized.
> The problem appears to be for 2 reasons.
> 1.  wsdl2java does not generate the indexed getter and setter methods.  The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value".
> 2.  BeanSerializer doesn't have any code to serialize attributes that are indexed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira