PK08257: WSWS3368E IS LOGGED WHEN A WEBSERVICES CLIENT TRIES TO DESERIALIZE AN EMPTY ARRAY DUE TO A SAXPARSEREXCEPTION | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description EXTERNAL SYMPTOMS: WebServices message fails to be processed correctly by a web services client. MESSAGES LOGGED: The following messages are logged in SystemOut and in the trace if WebServices=all=enabled is traced. WSWS3227E: WSWS3368E: Error: The deserialization event characters for ( ) was unexpected in The message number and where it is logged. RECREATION STEPS: A webservice message with the following tags is sent to the webservices client. <directoryCategories xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array" ns2:arrayType="ns1:DirectoryCategory■0"> </directoryCategories> ... <directoryCategory xsi:type="ns1:DirectoryCategory"> <fullViewableName xsi:type="xsd:string"></fullViewableName> <specialEncoding xsi:type="xsd:string"></specialEncoding> </directoryCategory> The same webservice message works fine on WebSphere AppServer 6.0 This is what the messages look like in the trace file. ■6/28/05 11:00:29:523 EDT 6b1d3500 Connection E com.ibm.ws.webservices.engine.client.Connection WSWS3227E: Error: Exception: ■6/28/05 11:00:29:573 EDT 6b1d3500 Connection E com.ibm.ws.webservices.engine.client.Connection TRAS0014I: The following exception was logged org.xml.sax.SAXException: WSWS3368E: Error: The deserialization event characters for ( ) was unexpected in com.ibm.ws.webservices.engine.encoding.ser.ArrayDeserializer. at com.ibm.ws.webservices.engine.encoding.ser.ArrayDeserializer.cha racters(ArrayDeserializer.java:534) at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConve rter.java:806) at com.ibm.ws.webservices.engine.events.P2DConverter.endElement(P2D Converter.java:395) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toEvents(SOAPE lement.java:1450) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toContainedEve nts(SOAPElement.java:1473) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toEvents(SOAPE lement.java:1448) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toContainedEve nts(SOAPElement.java:1473) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toEvents(SOAPE lement.java:1448) at com.ibm.ws.webservices.engine.xmlsoap.ext.RequestResponse.deseri alize(RequestResponse.java:334) at com.ibm.ws.webservices.engine.xmlsoap.ext.RequestResponse.getPar ams(RequestResponse.java:432) SEARCH KEYWORDS: wsdl array webservices client empty array 0-element zero-element deserialize deser serializeLocal fix Problem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server users of web * * services * **************************************************************** * PROBLEM DESCRIPTION: WSWS3368E is logged when a webservices * * client tries to deserialize an empty * * array due to a SAXPARSEREXCEPTION * **************************************************************** * RECOMMENDATION: * **************************************************************** WebServices message fails to be processed correctly by a web services client. MESSAGES LOGGED: The following messages are logged in SystemOut and in the trace if WebServices=all=enabled is traced. WSWS3227E: WSWS3368E: Error: The deserialization event characters for ( ) was unexpected in The message number and where it is logged. RECREATION STEPS: A webservice message with the following tags is sent to the webservices client. <directoryCategories xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array" ns2:arrayType="ns1:DirectoryCategory 0 "> </directoryCategories> ... <directoryCategory xsi:type="ns1:DirectoryCategory"> <fullViewableName xsi:type="xsd:string"></fullViewableName> <specialEncoding xsi:type="xsd:string"></specialEncoding> </directoryCategory> The same webservice message works fine on WebSphere AppServer 6.0 This is what the messages look like in the trace file. 6/28/05 11:00:29:523 EDT 6b1d3500 Connection E com.ibm.ws.webservices.engine.client.Connection WSWS3227E: Error: Exception: 6/28/05 11:00:29:573 EDT 6b1d3500 Connection E com.ibm.ws.webservices.engine.client.Connection TRAS0014I: The following exception was logged org.xml.sax.SAXException: WSWS3368E: Error: The deserialization event characters for ( ) was unexpected in com.ibm.ws.webservices.engine.encoding.ser.ArrayDeserializer. at com.ibm.ws.webservices.engine.encoding.ser.ArrayDeserializer.cha racters(ArrayDeserializer.java:534) at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConve rter.java:806) at com.ibm.ws.webservices.engine.events.P2DConverter.endElement(P2D Converter.java:395) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toEvents(SOAPE lement.java:1450) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toContainedEve nts(SOAPElement.java:1473) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toEvents(SOAPE lement.java:1448) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toContainedEve nts(SOAPElement.java:1473) at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.toEvents(SOAPE lement.java:1448) at com.ibm.ws.webservices.engine.xmlsoap.ext.RequestResponse.deseri alize(RequestResponse.java:334) at com.ibm.ws.webservices.engine.xmlsoap.ext.RequestResponse.getPar ams(RequestResponse.java:432)Problem conclusion Handle whitespace without deserialization failures. The fix for this APAR is currently targeted for inclusion in fixpack 5.0.2.14 and 5.1.1.7. Please refer to the recommended updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980Temporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
Publications Referenced
|
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 10W
Software edition:
Reference #: PK08257
IBM Group: Software Group
Modified date: Aug 23, 2005
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.