IBM Support

PM93229: IOEXCEPTION THROWN DURING MTOM PROCESSING EVEN IF THE WEBSERVICES APPLICATION WORKS FINE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In WebServices application Using MTOM attachemnts any of the
    following exceptions may be thrown even if the the application
    works fine
    
    ExtendedMessage: WSWS3227E:  Error:
    Exception:java.io.IOException: WSWS3251E: Error: Stream closed.
    at
    com.ibm.ws.webservices.engine.attachments.MultiPartRelatedInputS
    tream.read(MultiPartRelatedInputStream.java:788)
    at java.io.FilterInputStream.read(FilterInputStream.java:127)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource$FilterIS.rea
    d(WebServicesInputSource.java:805)
    at com.ibm.ws.webservices.utils.BAIS.create(BAIS.java:77)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource.getBAISConte
    nt(WebServicesInputSource.java:744)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource.getByteArray
    Content(WebServicesInputSource.java:710)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource.getStringCon
    tent(WebServicesInputSource.java:674)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource.getString(We
    bServicesInputSource.java:425)
    at
    com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart
    .java:1090)
    at
    com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPar
    t.java:628)
    at
    com.ibm.ws.webservices.engine.SOAPPart.getEnvelope(SOAPPart.java
    :656)
    at
    com.ibm.websphere.webservices.soap.IBMSOAPMessage.getSOAPHeader(
    IBMSOAPMessage.java:67)
    at
    com.ibm.ws390.wsba.WSBASOAPRequestMonitor.handleRequest(WSBASOAP
    RequestMonitor.java:72)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPRequestMonitorManager.dr
    iveHandleRequest(SOAPRequestMonitorManager.java:120)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPConnectionLink.processRe
    quest(SOAPConnectionLink.java:255)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPConnectionLink.ready(SOA
    PConnectionLink.java:156)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscr
    imination(HttpInboundLink.java:452)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRe
    quest(HttpInboundLink.java:511)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequ
    est(HttpInboundLink.java:305)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpI
    nboundLink.java:276)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannel.newConnectionCommon(Z
    AioTCPChannel.java:738)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannel.readCompletedNewConne
    ction(ZAioTCPChannel.java:560)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannelCPPUtilities.readCompl
    etedNewConnection(ZAioTCPChannelCPPUtilities.java:159)
    
    OR
    
    [7/12/11 6:57:23:237 GMT]     FFDC
    Exception:java.io.IOException
    SourceId:com.ibm.ws.webservices.engine.utils.MCUtils.interceptDe
    serializationException ProbeId:%C
    java.io.IOException: WSWS3251E: Error: Stream closed.
    at
    com.ibm.ws.webservices.engine.attachments.BoundaryDelimitedStrea
    m.read(BoundaryDelimitedStream.java:308)
    at
    com.ibm.ws.webservices.engine.attachments.BoundaryDelimitedStrea
    m.read(BoundaryDelimitedStream.java:427)
    at
    com.ibm.ws.webservices.engine.attachments.BoundaryDelimitedStrea
    m.close(BoundaryDelimitedStream.java:471)
    at
    com.ibm.ws.webservices.engine.attachments.MultiPartInputStream.c
    lose(MultiPartInputStream.java:150)
    at java.io.FilterInputStream.close(FilterInputStream.java:166)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource$FilterIS.clo
    se(WebServicesInputSource.java:813)
    at
    com.ibm.ws.webservices.engine.encoding.DeserializationContextImp
    l.parse(DeserializationContextImpl.java:300)
    at
    com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart
    .java:1064)
    at
    com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPar
    t.java:628)
    at
    com.ibm.ws.webservices.engine.SOAPPart.getEnvelope(SOAPPart.java
    :656)
    at
    com.ibm.ws.Transaction.wstx.WSATHandlerHelper.getCoordinationCon
    text(WSATHandlerHelper.java:120)
    at
    com.ibm.ws.Transaction.wstx.WSATSOAPRequestMonitor.handleRequest
    (WSATSOAPRequestMonitor.java:74)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPRequestMonitorManager.dr
    iveHandleRequest(SOAPRequestMonitorManager.java:120)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPConnectionLink.processRe
    quest(SOAPConnectionLink.java:255)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPConnectionLink.ready(SOA
    PConnectionLink.java:156)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscr
    imination(HttpInboundLink.java:452)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRe
    quest(HttpInboundLink.java:511)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequ
    est(HttpInboundLink.java:305)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpI
    nboundLink.java:276)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannel.newConnectionCommon(Z
    AioTCPChannel.java:739)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannel.readCompletedNewConne
    ction(ZAioTCPChannel.java:561)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannelCPPUtilities.readCompl
    etedNewConnection(ZAioTCPChannelCPPUtilities.java:160)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V6.1                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: In a WebServices application using      *
    *                      MTOM attachments, an exception may be   *
    *                      thrown even if the the application      *
    *                      works fine.                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    In a WebServices application Using MTOM attachments any of the
    following exceptions may be thrown even if the the application
    works fine
    ExtendedMessage: WSWS3227E:  Error:
    Exception:java.io.IOException: WSWS3251E: Error: Stream closed.
    at
    com.ibm.ws.webservices.engine.attachments.MultiPartRelatedInputS
    tream.read(MultiPartRelatedInputStream.java:788)
    at java.io.FilterInputStream.read(FilterInputStream.java:127)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource$FilterIS.rea
    d(WebServicesInputSource.java:805)
    at com.ibm.ws.webservices.utils.BAIS.create(BAIS.java:77)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource.getBAISConte
    nt(WebServicesInputSource.java:744)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource.getByteArray
    Content(WebServicesInputSource.java:710)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource.getStringCon
    tent(WebServicesInputSource.java:674)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource.getString(We
    bServicesInputSource.java:425)
    at
    com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart
    .java:1090)
    at
    com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPar
    t.java:628)
    at
    com.ibm.ws.webservices.engine.SOAPPart.getEnvelope(SOAPPart.java
    :656)
    at
    com.ibm.websphere.webservices.soap.IBMSOAPMessage.getSOAPHeader(
    IBMSOAPMessage.java:67)
    at
    com.ibm.ws390.wsba.WSBASOAPRequestMonitor.handleRequest(WSBASOAP
    RequestMonitor.java:72)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPRequestMonitorManager.dr
    iveHandleRequest(SOAPRequestMonitorManager.java:120)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPConnectionLink.processRe
    quest(SOAPConnectionLink.java:255)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPConnectionLink.ready(SOA
    PConnectionLink.java:156)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscr
    imination(HttpInboundLink.java:452)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRe
    quest(HttpInboundLink.java:511)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequ
    est(HttpInboundLink.java:305)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpI
    nboundLink.java:276)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannel.newConnectionCommon(Z
    AioTCPChannel.java:738)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannel.readCompletedNewConne
    ction(ZAioTCPChannel.java:560)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannelCPPUtilities.readCompl
    etedNewConnection(ZAioTCPChannelCPPUtilities.java:159)
    OR
    [7/12/11 6:57:23:237 GMT]     FFDC
    Exception:java.io.IOException
    SourceId:com.ibm.ws.webservices.engine.utils.MCUtils.interceptDe
    serializationException ProbeId:%C
    java.io.IOException: WSWS3251E: Error: Stream closed.
    at
    com.ibm.ws.webservices.engine.attachments.BoundaryDelimitedStrea
    m.read(BoundaryDelimitedStream.java:308)
    at
    com.ibm.ws.webservices.engine.attachments.BoundaryDelimitedStrea
    m.read(BoundaryDelimitedStream.java:427)
    at
    com.ibm.ws.webservices.engine.attachments.BoundaryDelimitedStrea
    m.close(BoundaryDelimitedStream.java:471)
    at
    com.ibm.ws.webservices.engine.attachments.MultiPartInputStream.c
    lose(MultiPartInputStream.java:150)
    at java.io.FilterInputStream.close(FilterInputStream.java:166)
    at
    com.ibm.ws.webservices.utils.WebServicesInputSource$FilterIS.clo
    se(WebServicesInputSource.java:813)
    at
    com.ibm.ws.webservices.engine.encoding.DeserializationContextImp
    l.parse(DeserializationContextImpl.java:300)
    at
    com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart
    .java:1064)
    at
    com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPar
    t.java:628)
    at
    com.ibm.ws.webservices.engine.SOAPPart.getEnvelope(SOAPPart.java
    :656)
    at
    com.ibm.ws.Transaction.wstx.WSATHandlerHelper.getCoordinationCon
    text(WSATHandlerHelper.java:120)
    at
    com.ibm.ws.Transaction.wstx.WSATSOAPRequestMonitor.handleRequest
    (WSATSOAPRequestMonitor.java:74)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPRequestMonitorManager.dr
    iveHandleRequest(SOAPRequestMonitorManager.java:120)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPConnectionLink.processRe
    quest(SOAPConnectionLink.java:255)
    at
    com.ibm.ws.soapchannel.monitor.impl.SOAPConnectionLink.ready(SOA
    PConnectionLink.java:156)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscr
    imination(HttpInboundLink.java:452)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRe
    quest(HttpInboundLink.java:511)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequ
    est(HttpInboundLink.java:305)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpI
    nboundLink.java:276)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannel.newConnectionCommon(Z
    AioTCPChannel.java:739)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannel.readCompletedNewConne
    ction(ZAioTCPChannel.java:561)
    at
    com.ibm.ws.tcp.channel.impl.ZAioTCPChannelCPPUtilities.readCompl
    etedNewConnection(ZAioTCPChannelCPPUtilities.java:160)
    

Problem conclusion

  • Fixed the code so that the IO stream is closed after flushing
    it and the exception no longer occurs.
    
    APAR PM93229 is currently targeted for inclusion in Service
    Level 6.1.0.47 of WebSphere Application Server.
    
    Please refer to URL:
    //www.ibm.com/support/docview.wss?rs=404&uid=swg27006970
    for Fix Pack availability.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM93229

  • Reported component name

    WEBSPHERE FOR Z

  • Reported component ID

    5655I3500

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-07-17

  • Closed date

    2013-07-23

  • Last modified date

    2013-10-04

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

    PM80602

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

Fix information

  • Fixed component name

    WEBSPHERE FOR Z

  • Fixed component ID

    5655I3500

Applicable component levels

  • R610 PSY UK97031

       UP13/09/07 P F309

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 February 2022