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 "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2004/11/24 00:36:28 UTC

[jira] Resolved: (AXIS-1466) Error with array of objects with in definition

     [ http://nagoya.apache.org/jira/browse/AXIS-1466?page=history ]
     
Davanum Srinivas resolved AXIS-1466:
------------------------------------

    Resolution: Fixed

Checked in variation of the patch. Please cross-check.

thanks,
dims

> Error with array of objects with <xsd:extension base="xsd:string"> in definition
> --------------------------------------------------------------------------------
>
>          Key: AXIS-1466
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1466
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2 Beta
>  Environment: java 1.4 / [ Win 2000 | linux ]
>     Reporter: An Tin
>     Priority: Critical
>  Attachments: diff.txt, patch_1466.txt
>
>  1) Modify example Address Book (folder samples\addr in standard destribution.
> File AddressBook.wsdl :
> Add element :
>  <xsd:complexType name="mytext">
>    <xsd:simpleContent>
>     <xsd:extension base="xsd:string">
>       <xsd:attribute name="aaabbb" type="xsd:string"/>
>     </xsd:extension>
>    </xsd:simpleContent>
>   </xsd:complexType>
> Modify element :
>       <xsd:complexType name="address">
>         <xsd:all>
>             <xsd:element name="streetNum" type="xsd:int"/>
>             <xsd:element name="streetName" type="xsd:string"/>
>             <xsd:element name="city" type="xsd:string"/>
>             <xsd:element name="state" type="typens:stateType"/>
>             <xsd:element name="zip" type="xsd:int"/>
>             <xsd:element name="phoneNumber" type="typens:phone"/>
>             <xsd:element name="text" type="typens:mytext"  minOccurs="0" maxOccurs="unbounded"/>
>         </xsd:all>
>       </xsd:complexType>
> File Main.java : in section STATIC add :
>         Mytext mt1 = new Mytext();
>          mt1.setAaabbb("en");
>          mt1.setValue("text1");
>         Mytext mt1_1 = new Mytext();
>           mt1_1.setAaabbb("en_1");
>           mt1_1.setValue("text1_1");
>         addr1.setText(new Mytext[]{mt1,mt1_1});
> 2) Run the example and get Exception.
> faultString: org.xml.sax.SAXParseException: Attribute "aaabbb" was already specified for element "multiRef".
> 3) This bug is stable. I found it in another application and modifyed example application to demonstrate it. Tried under win2000 and linux.

-- 
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