IBM Support

PK94492; 7.0.0.7: error occurs when an SCA JAX-WS service is invoked

Download


Abstract

An "Error reading XML:" error occurs when an SCA JAX-WS service is invoked.

Download Description

PK94492 resolves the following problem:

ERROR DESCRIPTION:
When a JAX-WS Web service export binding is invoked which has xsi:type declarations on the attributes, the following error is generated:

javax.xml.ws.WebServiceException: com.ibm.websphere.sca.
ServiceRuntimeException: javax.ejb.
TransactionRolledbackLocalException:; nested exception is:
com.ibm.websphere.sca.ServiceRuntimeException: An error
occurred while parsing native data: The error message is:
java.io.IOException: Error reading XML.
Caused By: java.io.IOException: Error reading XML: caused by: An
error occurred while parsing native data: The error message is:
java.io.IOException: Error reading XML.

LOCAL FIX:
Remove the xsi:type declaration on the attributes

PROBLEM SUMMARY

USERS AFFECTED:
IBM WebSphere Application Server users of JAX-WS with SCA

PROBLEM DESCRIPTION:
An "Error reading XML:" error occurs when an SCA JAX-WS service is invoked.

RECOMMENDATION:
Install a fixpack containing this APAR

The IBM WebSphere Process Server supports the Service Component Architecture (SCA) programming model. The SCA programming model can host a JAX-WS web service application.

If the incoming message contains a xsi:type attribute, an error may occur. Here is an example of a message with an xsi:type attribute:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/&quot;
xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<soapenv:Body>
<my:echo xmlns:my="http://my.service/"&gt;
<data xsi:type="xsd:string>hello</data>
</my:echo>
<soapenv:Body>
<soapenv:Envelope>

Here is an example error that may occur:

javax.xml.ws.WebServiceException: com.ibm.websphere.sca.
ServiceRuntimeException: javax.ejb.
TransactionRolledbackLocalException:; nested exception is:
com.ibm.websphere.sca.ServiceRuntimeException: An error
occurred while parsing native data: The error message is:
java.io.IOException: Error reading XML.
Caused By: java.io.IOException: Error reading XML: caused by: An
error occurred while parsing native data: The error message is:
java.io.IOException: Error reading XML.

PROBLEM CONCLUSION:
The SCA runtime uses a utility provided by the JAX-WS runtime to retrieve the payload of the message. The payload of the message is the xml element within the soapenv:Body. The payload also includes all necessary namespace declarations that are defined in the soapenv:Body and soapenv:Envelope.

The JAX-WS utility was not inspecting the contents of the xsi:type attribute. As a result, it failed to find and include the namespace for the prefix referenced in the xsi:type attribute. This missing namespace caused the error to occur.

The JAX-WS utility is changed to correctly inspect the xsi:type attribute and declare the associated namespace.

APAR PK94492 corrects this problem for the V6.1 WebSphere Application Server Feature Pack for Web Services.

The fix for this APAR is currently targeted for inclusion in
fix pack 7.0.0.9. Please refer to the Recommended Updates
page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

Prerequisites

Please download the UpdateInstaller below to install this fix.

[{"PRLabel":"UpdateInstaller","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991"}]

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"8613","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK94492/readme.txt"}]
On
[{"DNLabel":"7.0.0.7-WS-WAS-IFPK94492","DNDate":"4/22/2010","DNLang":"US English","DNSize":"35618","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.7-WS-WAS-IFPK94492&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK94492/7.0.0.7-WS-WAS-IFPK94492.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK94492/7.0.0.7-WS-WAS-IFPK94492.pak"}]

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server support web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV (U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Services (for example: SOAP or UDDI or WSGW or WSIF)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.7","Edition":"Base;Enterprise","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24026521