[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12313296 ] Dan Armbrust commented on AXIS-2021: Verified fix in todays daily build. Thank you very much for fixing this! Dan > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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, VocabBrowser.wsdl, java.zip > > 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12313211 ] Davanum Srinivas commented on AXIS-2021: Checked in a fix to prevent the bad xsi:type showing up on the wire. Please use your original WSDL and try latest nightly / CVS thanks, dims > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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, VocabBrowser.wsdl, java.zip > > 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12313204 ] Davanum Srinivas commented on AXIS-2021: Tom, yes, you are right...a .NET client with the original wsdl works fine with the server-side code generated from the original wsdl. So the problem is out array serializer. Here is the bad soap message from our client. See the extra xsi:type stuff...if we get rid of it, then all's well. -- dims http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> 2.16.840.1.113883.5.4 TEXT StartsWithIgnoreCase en true textualPresentation1 textualPresentation2 textualPresentation3 textualPresentation4 A B C 0 10 > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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, VocabBrowser.wsdl, java.zip > > 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12313202 ] Tom Jordahl commented on AXIS-2021: --- An maxOccurrs=unbounded string array should work from WSDL. That is doesn't is a pretty big bug. :-( The ArrayOf stuff is ugly and we should be depending on typ mappings for that to recognize these simple structures. > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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, VocabBrowser.wsdl, java.zip > > 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12313199 ] Dan Armbrust commented on AXIS-2021: Ok, I just verified that your suggestion fixes the problem. In the parameters, I changed all my patterns of to this And it works correctly. Then I discovered that the same bug affects things that return a simple String [] as well - the 1.2.1 daily build was generated this snippit of code (from the VocabBrower.wsdl attached to this bug) I changed this to And now that works as well. Thank you very much for tracking this down - at least now I know how to hack it if necessary, so I can start using the 1.2.1 release - even if the proper fix doesn't make it into the java2wsdl tool in time. > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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, VocabBrowser.wsdl, java.zip > > 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12313194 ] Davanum Srinivas commented on AXIS-2021: yes please. thanks, dims > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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, 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12313191 ] Dan Armbrust commented on AXIS-2021: Thank you for your research - I will try the manual fix you metioned above today. The code that I run the Java2WSDL program on is actually code that is output by a IDL -> Java converter (to complicate things even more) Here are the parts of the class that I believe you are interested in: public interface BrowserOperations extends org.hl7.CTSVAPI.IdentificationOperations { org.hl7.CTSVAPI.ConceptId[] lookupConceptCodesByProperty (String codeSystem_id, String matchText, String matchAlgorithm_code, String language_code, boolean activeConceptsOnly, String[] properties, String[] mimeTypes, int timeout, int sizeLimit) throws org.hl7.CTSVAPI.UnknownCodeSystem, org.hl7.CTSVAPI.BadlyFormedMatchText, org.hl7.CTSVAPI.UnknownMatchAlgorithm, org.hl7.CTSVAPI.UnknownLanguageCode, org.hl7.CTSVAPI.UnknownPropertyCode, org.hl7.CTSVAPI.UnknownMimeTypeCode, org.hl7.CTSVAPI.TimeoutError, org.hl7.CTSVAPI.UnexpectedError; org.hl7.CTSVAPI.ConceptProperty[] lookupProperties (org.hl7.CTSVAPI.ConceptId concept_id, String[] properties, String matchText, String matchAlgorithm_code, String language_code, String[] mimeTypes) throws org.hl7.CTSVAPI.UnknownCodeSystem, org.hl7.CTSVAPI.UnknownConceptCode, org.hl7.CTSVAPI.BadlyFormedMatchText, org.hl7.CTSVAPI.UnknownLanguageCode, org.hl7.CTSVAPI.UnknownPropertyCode, org.hl7.CTSVAPI.UnknownMatchAlgorithm, org.hl7.CTSVAPI.UnknownMimeTypeCode, org.hl7.CTSVAPI.UnexpectedError; } I can zip up the entire java package of code, and attach it if you would like. > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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, 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12313189 ] Davanum Srinivas commented on AXIS-2021: Please replace the following 2 lines: with the following: And it works fine. Bug is in the Java2WSDL code. So i'll need more info from you. example the java code for lookupConceptCodesByProperty and RelatedCode...since both have arrays of string and RelatedCode's complexType looks fine. thanks, dims > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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, 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12312758 ] Dan Armbrust commented on AXIS-2021: I believe this is the same issue as http://issues.apache.org/jira/browse/AXIS-1883 > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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, 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_12312751 ] Dan Armbrust commented on AXIS-2021: I just tested with yesterdays daily build (6/5/05) and I am happy to report that there is progress. It no longer breaks on simple string returns. However, now I am seeing it break when the client code tries to submit a String[] of parameters. When I call my method "lookupConceptCodesByProperty" - with one item in the "properties" parameter - the following request is submitted: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> 2.16.840.1.113883.5.4 StartsWithIgnoreCase en true textualPresentation 0 10 And here is the response from the server: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> soapenv:Server.userException org.xml.sax.SAXException: Found character data inside an array element while deserializing http://xml.apache.org/axis/";>mir04 If I change my parameters, such that I don't submit any "properties" items, then the request looks like this: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> 2.16.840.1.113883.5.4 StartsWithIgnoreCase en true 0 10 And it works correctly. So the bug seems to be fixed, as far as the server returning correctly encoded arrays, and the client parses them correctly. But something remains broken with the client submitting arrays of parameters to the server. Here are snippits of the WSDL generated with this build: I'll attach the full WSDL as generated by Axis. > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_66755 ] 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 Projects\general-workspace\CTS\hl7spec\extLib\axis\wsdl4j-1.5.1.jar' [java] 'org.apache.axis.wsdl.Java2WSDL' [java] '-o' [java] 'build/wsdl/VocabBrowser.wsdl' [java] '-n' [java] 'urn://hl7.org/CTSVAPI' [java] '-i' [java] 'org.hl7.CTSVAPI.refImpl.BrowserOperationsImpl' [java] '-lhttp://localhost:8080/axis/services/VocabBrowserService' [java] '-porg.hl7.cts.types=urn://cts.hl7.org/types' [java] '-porg.hl7.CTSMAPI=urn://hl7.org/CTSMAPI' [java] '-porg.hl7.CTSVAPI=urn://hl7.org/CTSVAPI' [java] '-y' [java] 'WRAPPED' [java] 'org.hl7.CTSVAPI.BrowserOperations' [java] [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: http://issues.apache.org/jira/browse/AXIS-2021 > 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_66743 ] Davanum Srinivas commented on AXIS-2021: Just to confirm, Is this the WSDL generated by java2wsdl tool, using the "-y WRAPPED" option in your build process? thanks, dims > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2021) String Array Regression causes SAXException: Found character data ...
[ http://issues.apache.org/jira/browse/AXIS-2021?page=comments#action_66551 ] Davanum Srinivas commented on AXIS-2021: Please upload the complete WSDL thanks, dims > String Array Regression causes SAXException: Found character data ... > - > > Key: AXIS-2021 > URL: http://issues.apache.org/jira/browse/AXIS-2021 > 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 > > 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: > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase > > StartsWithIgnoreCase > > EndsWithIgnoreCase > > ContainsPhraseIgnoreCase > > > > What it is supposed to be returning is a simple String[]. > A snippit from the wsdl file: > > > > > > > type="xsd:string"/> > > > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira