[
http://issues.apache.org/jira/browse/AXIS-1838?page=comments#action_62810 ]
Guillaume Sauthier commented on AXIS-1838:
------------------------------------------
Question for Glen :
Why some methods have been added in ElementDesc and ElementDecl for
maxOccurs=unbounded case ? They are never used !
Even when we generate Helper classes (the code that write the ElementDesc(s)
for TypeDesc), we don't generate this kind of code :
if (elementDecl.getMaxOccursIsUnbounded()) {
out.println("desc.setMaxOccursUnbounded(true);")
}
But in ArrayDeserializer, we look inside the ElmementDesc to see if the
maxOccurs is unbounded. So because the setter is never called,
ElementDesc.isMaxOccursUnbounded() will always return false.
BTW, we still have problems in J2EE TCK :
* Caused by: org.xml.sax.SAXException: Found character data inside an array
element while deserializing
at
org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:489)
at
org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:966)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:177)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2436)
* some xml type swapping (soapenc<->xsd) with interop testing
> Array deserialization
> ---------------------
>
> Key: AXIS-1838
> URL: http://issues.apache.org/jira/browse/AXIS-1838
> Project: Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2RC3
> Environment: JOnAS 4.3.3
> Reporter: Guillaume Sauthier
> Assignee: Glen Daniels
> Priority: Blocker
> Attachments: axis-array-deser-error-patch.txt, axis-array-patch-update.txt,
> axis-array-patch-update.txt, diff.patch, echo2.zip
>
> When running TCK for JOnAS, sometimes, I fall on array deserialization issue :
> The SOAP Message contains 3 elements of the array, but the constructed array
> only has the last element. So its size is 1, instead of 3!
> The problem only occurs when using Array with Helper :
> ArrayofBook
> -> Book[] arrayOfBook
> +
> ArrayOfBook_Helper
> I'll attach a patch for test.holders that reproduce this problem.
> failures will appear for testInOutBookArray
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira