IBM Support

PI56058: JAX-WS THROWS XMLSTREAMEXCEPTION UPON AN XML-SOAP MESSAGE WRITE ATTEMPT

Fixes are available

9.0.0.2: WebSphere Application Server traditional V9.0 Fix Pack 2
8.5.5.11: WebSphere Application Server V8.5.5 Fix Pack 11
9.0.0.3: WebSphere Application Server traditional V9.0 Fix Pack 3
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
9.0.0.4: WebSphere Application Server traditional V9.0 Fix Pack 4
8.5.5.12: WebSphere Application Server V8.5.5 Fix Pack 12
9.0.0.5: WebSphere Application Server traditional V9.0 Fix Pack 5
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
9.0.0.6: WebSphere Application Server traditional V9.0 Fix Pack 6
8.5.5.13: WebSphere Application Server V8.5.5 Fix Pack 13
9.0.0.7: WebSphere Application Server traditional V9.0 Fix Pack 7
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
9.0.0.8: WebSphere Application Server traditional V9.0 Fix Pack 8
8.5.5.14: WebSphere Application Server V8.5.5 Fix Pack 14
9.0.0.9: WebSphere Application Server traditional V9.0 Fix Pack 9
9.0.0.10: WebSphere Application Server traditional V9.0 Fix Pack 10
8.5.5.15: WebSphere Application Server V8.5.5 Fix Pack 15
9.0.0.11: WebSphere Application Server traditional V9.0 Fix Pack 11
9.0.5.0: WebSphere Application Server traditional Version 9.0.5 Refresh Pack
9.0.5.1: WebSphere Application Server traditional Version 9.0.5 Fix Pack 1
9.0.5.2: WebSphere Application Server traditional Version 9.0.5 Fix Pack 2
8.5.5.17: WebSphere Application Server V8.5.5 Fix Pack 17
9.0.5.3: WebSphere Application Server traditional Version 9.0.5 Fix Pack 3
9.0.5.4: WebSphere Application Server traditional Version 9.0.5 Fix Pack 4
9.0.5.5: WebSphere Application Server traditional Version 9.0.5 Fix Pack 5
WebSphere Application Server traditional 9.0.5.6
9.0.5.7: WebSphere Application Server traditional Version 9.0.5 Fix Pack 7
9.0.5.8: WebSphere Application Server traditional Version 9.0.5.8
8.5.5.20: WebSphere Application Server V8.5.5.20
8.5.5.18: WebSphere Application Server V8.5.5 Fix Pack 18
8.5.5.19: WebSphere Application Server V8.5.5 Fix Pack 19
9.0.5.9: WebSphere Application Server traditional Version 9.0.5.9
9.0.5.10: WebSphere Application Server traditional Version 9.0.5.10
8.5.5.16: WebSphere Application Server V8.5.5 Fix Pack 16
8.5.5.21: WebSphere Application Server V8.5.5.21
9.0.5.11: WebSphere Application Server traditional Version 9.0.5.11

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • [mm/dd/yyyy ...] ... WSWS7263E: The following exception
    occured:
    org.apache.axis2.AxisFault:
    An invalid XML character (Unicode: 0xffffffff) was found in the
    element content of the document.
    
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at
    org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOA
    PMessageFormatter.java:78)
    
    at
    com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.writeMessag
    e(SOAPOverHTTPSender.java:3451)
    at
    com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.sendChunked
    Request(SOAPOverHTTPSender.java:905)
    at
    com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.sendSOAPReq
    uest(SOAPOverHTTPSender.java:824)
    at
    com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.send(SOAPOv
    erHTTPSender.java:596)
    at
    com.ibm.ws.websvcs.transport.http.HTTPTransportSender.invoke(HTT
    PTransportSender.java:366)
    
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:556)
    at
    org.apache.axis2.description.OutInAxisOperationClient.send(OutIn
    AxisOperation.java:406)
    at
    org.apache.axis2.description.OutInAxisOperationClient.executeImp
    l(OutInAxisOperation.java:229)
    at
    org.apache.axis2.client.OperationClient.execute(OperationClient.
    java:165)
    at
    org.apache.axis2.jaxws.core.controller.impl.AxisInvocationContro
    ller.execute(AxisInvocationController.java:578)
    at
    org.apache.axis2.jaxws.core.controller.impl.AxisInvocationContro
    ller.doInvoke(AxisInvocationController.java:127)
    at
    org.apache.axis2.jaxws.core.controller.impl.InvocationController
    Impl.invoke(InvocationControllerImpl.java:93)
    at
    org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIM
    ethod(JAXWSProxyHandler.java:419)
    at
    org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAX
    WSProxyHandler.java:213)
    at com.sun.proxy.$Proxy81.callSampleBean(Unknown Source)
    
    at {my.class.here}.. call jax-ws http client to send ...
    
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWr
    apper.java:1232)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser
    vletWrapper.java:781)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser
    vletWrapper.java:480)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest
    (ServletWrapperImpl.java:178)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(We
    bAppFilterChain.java:136)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebApp
    FilterChain.java:97)
    
    at {... my.servlet.myFilter... }.doFilter()
    
    at
    com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(Fi
    lterInstanceWrapper.java:195)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebApp
    FilterChain.java:91)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebA
    ppFilterManager.java:967)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters
    (WebAppFilterManager.java:1107)
    at
    com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:
    3926)
    at
    com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.j
    ava:304)
    at
    com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.
    java:1007)
    at
    com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContai
    ner.java:1817)
    at
    com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLin
    k.java:200)
    
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscr
    imination(HttpInboundLink.java:463)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRe
    quest(HttpInboundLink.java:530)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequ
    est(HttpInboundLink.java:316)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complet
    e(HttpICLReadCallback.java:88)
    at
    com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureComp
    leted(AioReadCompletionListener.java:175)
    
    at
    com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyn
    cFuture.java:217)
    at
    com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncC
    hannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at
    com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at
    com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHand
    ler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1881)
    ...
    
    Caused by: javax.xml.stream.XMLStreamException: An invalid XML
    character (Unicode: 0xffffffff) was found in the element
    content of the document.
    
    at
    com.ibm.xml.xlxp2.api.stax.msg.StAXMessageProvider.throwWrappedX
    MLStreamException(StAXMessageProvider.java:76)
    at
    com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.produceFatalError
    Event(XMLStreamReaderImpl.java:2008)
    at
    com.ibm.xml.xlxp2.api.jaxb.JAXBXMLStreamReader.produceFatalError
    Event(JAXBXMLStreamReader.java:356)
    at
    com.ibm.xml.xlxp2.scan.DocumentScanner.reportFatalError(Document
    Scanner.java:4871)
    at
    com.ibm.xml.xlxp2.scan.DocumentScanner.reportFatalError(Document
    Scanner.java:1212)
    at
    com.ibm.xml.xlxp2.scan.DocumentScanner.scanContent2(DocumentScan
    ner.java:1921)
    at
    com.ibm.xml.xlxp2.scan.DocumentScanner.scanContent(DocumentScann
    er.java:1869)
    at
    com.ibm.xml.xlxp2.runtime.VMContext.scanContent(VMContext.java:5
    02)
    at
    com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner
    .java:1283)
    at
    com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.next(XMLStreamRea
    derImpl.java:581)
    at
    com.ibm.xml.xlxp2.api.stax.XMLInputFactoryImpl$XMLStreamReaderPr
    oxyImpl.next(XMLInputFactoryImpl.java:183)
    at
    com.ibm.xml.xlxp2.api.wssec.WSSXMLInputFactory$WSSStreamReaderPr
    oxy.next(WSSXMLInputFactory.java:55)
    
    at
    org.apache.axiom.om.impl.SwitchingWrapper.next(SwitchingWrapper.
    java:1019)
    at javax.xml.stream.util.StreamReaderDelegate.next(Unknown
    Source)
    at
    org.apache.axiom.om.util.OMXMLStreamReaderValidator.next(OMXMLSt
    reamReaderValidator.java:78)
    at
    org.apache.axiom.om.impl.serialize.StreamingOMSerializer.seriali
    zeNode(StreamingOMSerializer.java:145)
    at
    org.apache.axiom.om.impl.serialize.StreamingOMSerializer.seriali
    ze(StreamingOMSerializer.java:106)
    at
    org.apache.axiom.om.impl.serialize.StreamingOMSerializer.seriali
    ze(StreamingOMSerializer.java:75)
    at
    org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullSt
    ream(OMSerializerUtil.java:554)
    at
    org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSeriali
    ze(SOAPEnvelopeImpl.java:249)
    at
    org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndCon
    sume(OMSerializableImpl.java:207)
    at
    org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOA
    PMessageFormatter.java:74)
    ... 49 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server JAX-WS web services with             *
    *                  non-default file encodings.                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: When the JVM property                   *
    *                      -Dfile.encoding=(some encoding) is      *
    *                      set, an XMLStreamException might        *
    *                      occur.                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the JVM property -Dfile.encoding=(some encoding) is set,
    "XMLStreamException: An invalid XML character (Unicode:
    0xffffffff) was found in the element content of the document"
    might occur.
    

Problem conclusion

  • In this case a handler was present and the transformation of
    certain fields for use by the handler required a different
    encoding inconsistent with the one supplied by the
    -Dfile.encoding JVM argument.
    
    To allow this a JVM property is introduced,
    com.ibm.ws.websvcs.saaj.converter.defaultReturnEncoding.
    Setting this property to a value of UTF-8 (or some other
    encoding) allows the  handler to override the -Dfile.encoding
    argument and use the encoding it needs.
    
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.13, 8.5.5.11, and 9.0.0.2.  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

    PI56058

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-01-26

  • Closed date

    2016-08-23

  • Last modified date

    2016-12-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
04 May 2022