axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Armbrust (JIRA)" <>
Subject [jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
Date Wed, 01 Jun 2005 17:16:10 GMT
     [ ]
Dan Armbrust commented on AXIS-2021:

Correct, this WSDL was generated using the -y WRAPPED option.

Here is the ant debug output of the actual command (ignore the [java] stuff):

     [echo] Generating build/wsdl/VocabBrowser.wsdl from org.hl7.CTSVAPI.BrowserOperations
     [java] Executing 'C:\Program Files\Java\j2sdk_1.4.2_05\jre\bin\java.exe' with arguments:
     [java] '-classpath'
     [java] 'C:\Eclipse Projects\general-workspace\CTS\hl7spec\build\idljava\classes;C:\Eclipse
Projects\general-workspace\CTS\hl7spec\extLib\xerces.jar;C:\Eclipse Projects\general-workspace\CTS\hl7spec\extLib\xml-apis.jar;C:\Eclipse
Projects\general-workspace\CTS\hl7spec\build\lib\ctsImpl.jar;C:\Eclipse Projects\general-workspace\CTS\hl7spec\extLib\CTSUtility.jar;C:\Eclipse
Projects\general-workspace\CTS\hl7spec\build\wsdljava\classes;C:\Eclipse Projects\general-workspace\CTS\hl7spec\extLib\axis\activation.jar;C:\Eclipse
Projects\general-workspace\CTS\hl7spec\extLib\axis\axis-ant.jar;C:\Eclipse Projects\general-workspace\CTS\hl7spec\extLib\axis\axis.jar;C:\Eclipse
Projects\general-workspace\CTS\hl7spec\extLib\axis\commons-discovery-0.2.jar;C:\Eclipse Projects\general-workspace\CTS\hl7spec\extLib\axis\commons-logging-1.0.4.jar;C:\Eclipse
Projects\general-workspace\CTS\hl7spec\extLib\axis\jaxrpc.jar;C:\Eclipse Projects\general-workspace\CTS\hl7spec\extLib\axis\log4j-1.2.8.jar;C:\Eclipse
Projects\general-workspace\CTS\hl7spec\extLib\axis\mail.jar;C:\Eclipse Projects\general-workspace\CTS\hl7spec\extLib\axis\saaj.jar;C:\Eclipse
     [java] 'org.apache.axis.wsdl.Java2WSDL'
     [java] '-o'
     [java] 'build/wsdl/VocabBrowser.wsdl'
     [java] '-n'
     [java] 'urn://'
     [java] '-i'
     [java] 'org.hl7.CTSVAPI.refImpl.BrowserOperationsImpl'
     [java] '-lhttp://localhost:8080/axis/services/VocabBrowserService'
     [java] '-porg.hl7.cts.types=urn://'
     [java] '-porg.hl7.CTSMAPI=urn://'
     [java] '-porg.hl7.CTSVAPI=urn://'
     [java] '-y'
     [java] 'WRAPPED'
     [java] 'org.hl7.CTSVAPI.BrowserOperations'
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.

> String Array Regression causes SAXException: Found character data ...
> ---------------------------------------------------------------------
>          Key: AXIS-2021
>          URL:
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2
>  Environment: Server - Tomcat 5.0.25 on Java 1.4.2_01 on Fedora Core 3
> Client - Axis running on Java 1.4.2_05 On Window XP SP2
>     Reporter: Dan Armbrust
>     Priority: Blocker
>  Attachments: VocabBrowser.wsdl
> This seems to be a serious regression bug... But maybe I'm doing something wrong...
> I was using 1.2 RC2, and everything was working for me.  Now under 1.2 final, the handling
of arrays appears broken.
> Here is the error:
> org.apache.axis.AxisFaultorg.xml.sax.SAXException: Found character data inside an array
element while deserializing
> Here is the message that it choked on:
> <soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
>  <soapenv:Body>
>    <getSupportedMatchAlgorithmsResponse xmlns="urn://">
>      <getSupportedMatchAlgorithmsReturn xmlns:ns1="urn://" xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase</getSupportedMatchAlgorithmsReturn>
>      <getSupportedMatchAlgorithmsReturn>StartsWithIgnoreCase</getSupportedMatchAlgorithmsReturn>
>      <getSupportedMatchAlgorithmsReturn>EndsWithIgnoreCase</getSupportedMatchAlgorithmsReturn>
>      <getSupportedMatchAlgorithmsReturn>ContainsPhraseIgnoreCase</getSupportedMatchAlgorithmsReturn>
>    </getSupportedMatchAlgorithmsResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> What it is supposed to be returning is a simple String[].
> A snippit  from the wsdl file:
>   <element name="getSupportedMatchAlgorithms">
>    <complexType/>
>   </element>
>   <element name="getSupportedMatchAlgorithmsResponse">
>    <complexType>
>     <sequence>
>      <element maxOccurs="unbounded" name="getSupportedMatchAlgorithmsReturn" type="xsd:string"/>
>     </sequence>
>    </complexType>
>   </element>
> So I don't know why that ArrayOf_xsd_string gunk is in the response.
> My build process is kind of complicated - my initial definition of the API is in IDL.
 The idl is compiled into Java.  Then, my WSDL is generated by the java2wsdl tool, using the
"-y WRAPPED"  option.
> Then, I generate java using wsdl2java tool - and I implement my API using the resulting
java classes.  One thing that I noted here, was that 1.2 rc2 generated  "ArrayOf_X" classes
 for each array object, while 1.2 final does not generate any ArrayOf_X classes.
> Finally I install the code into my Axis server, and try it out.  I can call most of the
methods in my API - but anything that returns an a String Array throws the SAXException (as
noted above) while trying to parse the response, which has stuff in it it shouldn't.
> Dan

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message