APAR status
Closed as program error.
Error description
When a web service that uses Document/Literal Wrapped style WSDL
and it tries to return an array value that is empty, e.g. a
zero-length array, an ArrayIndexOutOfBoundsException is seen.
This is happening because the minOccurs field was not set for
the array type. This APAR fixes this issue by adding this
attribute to the wrapper for the array types and setting the
minOccurs="0". Now, the returned array should come back as null
since it's empty instead of causing this error.
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users of web *
* services *
****************************************************************
* PROBLEM DESCRIPTION: Zero-length array returns, causes *
* ArrayIndexOutOfBoundsException *
****************************************************************
* RECOMMENDATION: *
****************************************************************
When a web service that uses Document/Literal Wrapped style WSDL
and it tries to return an array value that is empty, e.g. a
zero-length array, an ArrayIndexOutOfBoundsException is seen.
This is happening because the minOccurs field was not set for
the array type. This APAR fixes this issue by adding this
attribute to the wrapper for the array types and setting the
minOccurs="0". Now, the returned array should come back as null
since it's empty instead of causing this error.
Problem conclusion
Modified types to remove issue with zero-length arrays.
Temporary fix
Java2WSDL has been fixed so that when creating Doc/Lit Wrapped s
tyle
WSDL, the minOccurs="0" attribute will be added to array types.
Comments
APAR information |
APAR number |
PQ87773 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
00W |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-04-20 |
Closed date |
2004-04-30 |
Last modified date |
2004-04-30 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|