axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Armbrust <daniel.armbrust.l...@gmail.com>
Subject Re: String Array regression?
Date Fri, 27 May 2005 20:00:40 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hmm, I'm really not very familiar with the axis development or testing
environments.&nbsp; Otherwise I would attempt to fix it myself...<br>
<br>
Is there an official bug open for this, or workarounds?&nbsp; This is a show
stopping bug for me....&nbsp; <br>
<br>
Dan<br>
<br>
Tom Jordahl wrote:
<blockquote
 cite="mid39A72E1EBF03EB44AACFD8036D1489F9962F10@p02exm01.macromedia.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered)">
  <style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:-moz-fixed;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";
	color:black;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
p
	{margin-right:0in;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle17
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Hi Dan,</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Yes, I think
we do have some serious
regressions in the array area since RC2.</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Test cases
that run in our harness would
be most welcome, that will ensure that we don&#8217;t break it again.&nbsp; </span></font><font
 color="navy" face="Wingdings" size="2"><span
 style="font-size: 10pt; font-family: Wingdings; color: navy;">L</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <div>
  <p><font color="navy" face="Times New Roman" size="2"><span
 style="font-size: 10pt; color: navy;">--<br>
Tom Jordahl<br>
Macromedia Server Development</span></font></p>
  </div>
  <div
 style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color
-moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;"> Dan
Armbrust [<a class="moz-txt-link-freetext" href="mailto:daniel.armbrust.list@gmail.com">mailto:daniel.armbrust.list@gmail.com</a>]
<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Friday, May
27,
2005 11:18
AM<br>
  <b><span style="font-weight: bold;">To:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:axis-dev@ws.apache.org">axis-dev@ws.apache.org</a><br>
  <b><span style="font-weight: bold;">Subject:</span></b> String Array
regression?</span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
  <div>
  <p class="MsoNormal" style="margin-bottom: 12pt;"><font color="black"
 face="-moz-fixed" size="2"><span
 style="font-size: 10pt; font-family: -moz-fixed;">This
seems to be a serious regression bug... But maybe I'm doing something
wrong... <br>
  <br>
I was using 1.2 RC2, and everything was working for me.&nbsp; Now under 1.2
final, the handling of arrays appears broken. <br>
  <br>
Here is the error: <br>
org.apache.axis.AxisFaultorg.xml.sax.SAXException: Found character data
inside
an array element while deserializing <br>
  <br>
Here is the message that it choked on: <br>
&lt;soapenv:Envelope xmlns:soapenv=<a
 href="http://schemas.xmlsoap.org/soap/envelope/">"http://schemas.xmlsoap.org/soap/envelope/"</a>
xmlns:xsd=<a href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
xmlns:xsi=<a href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>&gt;
  <br>
&nbsp;&lt;soapenv:Body&gt; <br>
&nbsp;&nbsp; &lt;getSupportedMatchAlgorithmsResponse
xmlns="urn://hl7.org/CTSVAPI"&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;getSupportedMatchAlgorithmsReturn
xmlns:ns1="urn://hl7.org/CTSVAPI"
xsi:type="ns1:ArrayOf_xsd_string"&gt;IdenticalIgnoreCase&lt;/getSupportedMatchAlgorithmsReturn&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;
&lt;getSupportedMatchAlgorithmsReturn&gt;StartsWithIgnoreCase&lt;/getSupportedMatchAlgorithmsReturn&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;
&lt;getSupportedMatchAlgorithmsReturn&gt;EndsWithIgnoreCase&lt;/getSupportedMatchAlgorithmsReturn&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;
&lt;getSupportedMatchAlgorithmsReturn&gt;ContainsPhraseIgnoreCase&lt;/getSupportedMatchAlgorithmsReturn&gt;
  <br>
&nbsp;&nbsp; &lt;/getSupportedMatchAlgorithmsResponse&gt; <br>
&nbsp;&lt;/soapenv:Body&gt; <br>
&lt;/soapenv:Envelope&gt; <br>
  <br>
  <br>
What it is supposed to be returning is a simple String[]. <br>
A snippit&nbsp; from the wsdl file: <br>
&nbsp; &lt;element name="getSupportedMatchAlgorithms"&gt; <br>
&nbsp;&nbsp; &lt;complexType/&gt; <br>
&nbsp; &lt;/element&gt; <br>
&nbsp; &lt;element name="getSupportedMatchAlgorithmsResponse"&gt; <br>
&nbsp;&nbsp; &lt;complexType&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;sequence&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;element maxOccurs="unbounded"
name="getSupportedMatchAlgorithmsReturn"
type="xsd:string"/&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;/sequence&gt; <br>
&nbsp;&nbsp; &lt;/complexType&gt; <br>
&nbsp; &lt;/element&gt; <br>
  <br>
  <br>
My build process is kind of complicated - my initial definition of the
API is
in IDL.&nbsp; The idl is compiled into Java.&nbsp; Then, my WSDL is generated
by the java2wsdl tool, using the "-y WRAPPED"&nbsp; option. <br>
  <br>
Then, I generate java using wsdl2java tool - and I implement my API
using the
resulting java classes.&nbsp; One thing that I noted here, was that 1.2 beta
generated&nbsp; "ArrayOf_X" classes&nbsp; for each array object,
while 1.2 final does not generate any ArrayOf_X classes. <br>
  <br>
Finally I install the code into my Axis server, and try it out.&nbsp; I can
call most of the methods in my API - but anything that returns an Array
throws
an exception, as detailed above. <br>
  <br>
Thanks for any advice, <br>
  <br>
Dan <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  </span></font></p>
  </div>
  </div>
  </div>
</blockquote>
</body>
</html>

Mime
View raw message