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 "David R Robison (JIRA)" <ax...@ws.apache.org> on 2004/11/23 00:37:18 UTC

[jira] Created: (AXIS-1679) Error serializing an array of elements with attributes

Error serializing an array of elements with attributes
------------------------------------------------------

         Key: AXIS-1679
         URL: http://nagoya.apache.org/jira/browse/AXIS-1679
     Project: Axis
        Type: Bug
  Components: Basic Architecture  
    Versions: current (nightly)    
 Environment: Windows XP
    Reporter: David R Robison


There is a problem with the ArraySerializer when serializing an array of elements where they contain data in attributes. Each element has the same attribute values as the first element. The following patch to ArraySerializer fixes the problem:

Index: ArraySerializer.java
===================================================================
RCS file: /home/cvspublic/ws-axis/java/src/org/apache/axis/encoding/ser/ArraySerializer.java,v
retrieving revision 1.61
diff -r1.61 ArraySerializer.java
371c371
<                     context.serialize(elementName, serializeAttr, aValue,
---

>>                     context.serialize(elementName, new AttributesImpl(serializeAttr), aValue,

379c379
<                     context.serialize(elementName, serializeAttr, aValue,
---

>>                     context.serialize(elementName, new AttributesImpl(serializeAttr), aValue,


***** CVS exited normally with code 1 *****





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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-1679) Error serializing an array of elements with attributes

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

    Resolution: Fixed

Applied a slight modification of the patch.

thanks,
dims

> Error serializing an array of elements with attributes
> ------------------------------------------------------
>
>          Key: AXIS-1679
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1679
>      Project: Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: Windows XP
>     Reporter: David R Robison

>
> There is a problem with the ArraySerializer when serializing an array of elements where they contain data in attributes. Each element has the same attribute values as the first element. The following patch to ArraySerializer fixes the problem:
> Index: ArraySerializer.java
> ===================================================================
> RCS file: /home/cvspublic/ws-axis/java/src/org/apache/axis/encoding/ser/ArraySerializer.java,v
> retrieving revision 1.61
> diff -r1.61 ArraySerializer.java
> 371c371
> <                     context.serialize(elementName, serializeAttr, aValue,
> ---
> >>                     context.serialize(elementName, new AttributesImpl(serializeAttr), aValue,
> 379c379
> <                     context.serialize(elementName, serializeAttr, aValue,
> ---
> >>                     context.serialize(elementName, new AttributesImpl(serializeAttr), aValue,
> ***** CVS exited normally with code 1 *****

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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