PK07045: USING OVERLOADED METHODS IN WEB SERVICES DOES NOT WORK.

 Fixes are available

5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for AIX
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for HP-UX
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for Linux
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for AIX
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for AIX
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for HP-UX
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for Solaris
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for Windows
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for Linux
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for Linux
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for Solaris
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for Windows
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for Solaris
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for Windows
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for Solaris
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for Windows
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for AIX
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for AIX
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for Linux
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for AIX
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for Windows
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for Windows
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for HP-UX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for Solaris
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for Solaris
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for Windows
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for Solaris
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for AIX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for AIX
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for Linux
5.1.1.6: WebSphere Application Server Version 5.1.1 Cumulative Fix 6
5.1.1.7: WebSphere Application Server Version 5.1.1 Cumulative Fix 7
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for HP-UX
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for AIX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for Windows
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for HP-UX
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for AIX
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for AIX
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for Linux
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for HP-UX
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for Linux
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for HP-UX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for Linux
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for HP-UX
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for Windows
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for Solaris
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for Windows
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for AIX
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for Windows
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for Solaris
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for Solaris
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for Linux
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for Windows
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for HP-UX
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for AIX
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for Windows
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for Solaris
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for Windows
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for AIX
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for Linux
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for HP-UX
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for Solaris
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for Solaris
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for AIX
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for Windows
5.0.2.13: WebSphere Application Server 5.0.2 Cumulative Fix 13
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for HP-UX
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for Solaris
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for Solaris
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for Linux
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for AIX
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for Linux
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for Windows
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for Windows
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for Linux
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for HP-UX
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for HP-UX
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for Linux
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for HP-UX
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for Linux
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for Solaris
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for AIX
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for HP-UX
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for HP-UX
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for Linux
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for Linux
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for HP-UX



APAR status
Closed as program error.

Error description
There are problems with using overloaded methods in Web
Services.  The following appears in the log:

<log>
[6/1/05 15:11:31:346 CDT] 63fb2fe0 enterprise    I
com.ibm.ws.webservices.engine.enterprise  TRAS0014I: The
following
exception was logged WebServicesFault
 faultCode: Server.generalException
 faultString: WSWS3281E: Error: Tried to invoke method public
mypackage.methodReturn
mypackage.myMethod(java.lang.String,java.
lang.String) with arguments
java.lang.String,java.util.ArrayList.  The
arguments do not match the signature.
 faultActor: null
 faultDetail:

WSWS3281E: Error: Tried to invoke method public
mypackage.methodReturn
mypackage.myMethod(java.lang.String,java.
lang.String) with arguments
java.lang.String,java.util.ArrayList.  The arguments do not
match the signature.
 at
com.ibm.ws.webservices.engine.xmlsoap.builders.SOAPFaultBuilder.
createFa
ult(SOAPFaultBuilder.java:228)
 at
com.ibm.ws.webservices.engine.xmlsoap.builders.SOAPFaultBuilder.
endEleme
nt(SOAPFaultBuilder.java:156)
 at
com.ibm.ws.webservices.engine.events.P2DConverter.endElement(P2D
Converte
r.java:409)
 at sax.SAX2DocumentEntityParserBase.endElementAction(Unknown
Source)
</log>

They have a method called "myMethod" with the following
prototypes:
public methodReturn myMethod(String username, String password)
public methodReturn myMethod(String username, String password,
String version)

Investigating the trace, it looks like the three parameters are
being sent in, and the last two parameters are being interpreted
as an array:

<tcp trace>
<myMethod xmlns="http://mypackage">
  <username xsi:type="xsd:string" xmlns="">myusername</username>
  <password xsi:type="xsd:string" xmlns="">mypassword</password>
  <version xsi:type="xsd:string" xmlns="">1.1</version>
</myMethod>
</tcp trace>

<trace.log>
[6/7/05 10:17:55:605 CDT] 14b37dd4 JavaUtils     d
com.ibm.ws.webservices.engine.utils.JavaUtils  Trying to convert
java.util.ArrayList to java.lang.String
[6/7/05 10:17:55:616 CDT] 14b37dd4 RPCProvider   d
com.ibm.ws.webservices.engine.providers.java.RPCProvider
value: [mypassword, 1.1]
</trace.log>

The parameters are myusername, mypassword, and 1.1.  Notice that
the ArrayList consists of mypassword and 1.1.
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users of web    *
*                 services                                     *
****************************************************************
* PROBLEM DESCRIPTION: Using overloaded methods in web         *
*                      services does not work.                 *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
There are problems with using overloaded methods in Web
Services.  The following appears in the log:

<log>
[6/1/05 15:11:31:346 CDT] 63fb2fe0 enterprise    I
com.ibm.ws.webservices.engine.enterprise  TRAS0014I: The
following
exception was logged WebServicesFault
 faultCode: Server.generalException
 faultString: WSWS3281E: Error: Tried to invoke method public
mypackage.methodReturn
mypackage.myMethod(java.lang.String,java.
lang.String) with arguments
java.lang.String,java.util.ArrayList.  The
arguments do not match the signature.
 faultActor: null
 faultDetail:

WSWS3281E: Error: Tried to invoke method public
mypackage.methodReturn
mypackage.myMethod(java.lang.String,java.
lang.String) with arguments
java.lang.String,java.util.ArrayList.  The arguments do not
match the signature.
 at
com.ibm.ws.webservices.engine.xmlsoap.builders.SOAPFaultBuilder.
createFault(SOAPFaultBuilder.java:228)
 at
com.ibm.ws.webservices.engine.xmlsoap.builders.SOAPFaultBuilder.
endElement(SOAPFaultBuilder.java:156)
 at
com.ibm.ws.webservices.engine.events.P2DConverter.endElement
(P2DConverter.java:409)
 at sax.SAX2DocumentEntityParserBase.endElementAction(Unknown
Source)
</log>

They have a method called "myMethod" with the following
prototypes:
public methodReturn myMethod(String username, String password)
public methodReturn myMethod(String username, String password,
String version)

Investigating the trace, it looks like the three parameters are
being sent in, and the last two parameters are being interpreted
as an array:

<tcp trace>
<myMethod xmlns="http://mypackage">
  <username xsi:type="xsd:string" xmlns="">myusername</username>
  <password xsi:type="xsd:string" xmlns="">mypassword</password>
  <version xsi:type="xsd:string" xmlns="">1.1</version>
</myMethod>
</tcp trace>

<trace.log>
[6/7/05 10:17:55:605 CDT] 14b37dd4 JavaUtils     d
com.ibm.ws.webservices.engine.utils.JavaUtils  Trying to convert
java.util.ArrayList to java.lang.String
[6/7/05 10:17:55:616 CDT] 14b37dd4 RPCProvider   d
com.ibm.ws.webservices.engine.providers.java.RPCProvider
value: [mypassword, 1.1]
</trace.log>

The parameters are myusername, mypassword, and 1.1.  Notice that
the ArrayList consists of mypassword and 1.1.
Problem conclusion
Resolved issue with overloaded operation's parameters.

The fix for this APAR is currently targeted for inclusion in
fixpacks 5.0.2.13 and 5.1.1.6. Please refer to the Recommended
Updates page for delivery information:

http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Temporary fix Comments
APAR information
APAR number PK07045
Reported component name WAS NETWRK DEPL
Reported component ID 5630A3601
Reported release 00A
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2005-06-09
Closed date 2005-06-17
Last modified date 2005-06-17

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
WEBSRVCE          

Publications Referenced

Fix information
Fixed component name WAS NETWRK DEPL
Fixed component ID 5630A3601

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


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 00A
Software edition:
Reference #: PK07045
IBM Group: Software Group
Modified date: Jun 17, 2005