webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

java.io.IOException: Closed Connection pub.io:streamToString webmwthodsn Local

  • 1.  java.io.IOException: Closed Connection pub.io:streamToString webmwthodsn Local

    Posted Wed April 12, 2023 09:24 PM

    Hi All,

    Can someone please help.
    I am getting below error while converting stream to string using pub.io:streamToString in webMethods 10.11 local setup.

    error: java.io.IOException: Closed Connection

    com.wm.app.b2b.server.ServiceException: java.io.IOException: Closed Connection
    at pub.CommonUtils.throwAsServiceException(CommonUtils.java:173)
    at pub.io.streamToString(io.java:624)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:404)
    at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:759)
    at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39)

    the same service works fine in higher environment.

    Thanks and Regards
    Tahaseen T S


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: java.io.IOException: Closed Connection pub.io:streamToString webmwthodsn Local

    Posted Thu April 13, 2023 12:33 AM

    Hello @tahaseenshaik999 ,

    Can you check whether you are on latest fix level on 10.11 ?

    Regards,
    Bharath


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: java.io.IOException: Closed Connection pub.io:streamToString webmwthodsn Local

    Posted Thu April 13, 2023 10:47 AM

    In addition to Bharath’s question, please check the following

    • What is the difference between the environment with error and the higher environment where it works?
    • What is the inputstream that is passed to the pub. io:streamToString ?
    • Where is the inputstream coming from? Does it work if the same stream is passed in the other environment?

    -NP


    #webMethods
    #Integration-Server-and-ESB