IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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
  • 1.  Catching a pub.client:http Time Out

    Posted Tue March 08, 2022 05:11 AM

    Hello.

    Sometimes, when I invoke pub.client:http for an URL that gives out a time out error, the error I get is [ISC.0064.9324] and even if I give out a Timeout in the Sequence or put it in a Try-Catch sections, they won’t get caught so I cannot process the error message at all. Is there a way to catch such error in webMethods? If yes, how and where did I go wrong in setting up the Timeout on Sequence or putting the Try-Catch parts?

    Thanks.


    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Catching a pub.client:http Time Out

    Posted Tue March 08, 2022 08:20 AM

    Hi,

    If there are no other errors in between, getLastError will provide you the last reported error. You are referring [ISC.0064.9324], are you not getting NetException/Net504Exception when such error occurs?

    The timeout in sequence is different, where you will receive a com.wm.lang.flow.FlowTimeoutException if the sequence step is not completed in that time period.

    Thanks


    #Flow-and-Java-services
    #webMethods


  • 3.  RE: Catching a pub.client:http Time Out

    Posted Tue March 08, 2022 09:42 PM

    Hi @Prasanta_Malik

    I’ve tried manually setting the timeout part of pub.client:http (to 10), and then putting it in a TRY-CATCH steps with pub.flow:getLastError being the first step in CATCH.

    It doesn’t even enter the CATCH section. Yes, indeed I did get a com.wm.net.Net504Exception [ISC.0064.9324] in the Results, but the flow just immediately quits there, it’s not getting caught to the CATCH section. Can you help me figure out how to ensure that exception gets caught in CATCH section?


    #Flow-and-Java-services
    #webMethods


  • 4.  RE: Catching a pub.client:http Time Out

    Posted Tue March 08, 2022 09:59 PM

    Please provide me the sample flow to have a look.

    Thanks


    #webMethods
    #Flow-and-Java-services


  • 5.  RE: Catching a pub.client:http Time Out

    Posted Tue March 08, 2022 10:11 PM

    trycatch
    It’s just this kind of simple thing. The data-String and URL… well I’m not quite sure if I can reveal that, but my method is post and loadAs is set to bytes.

    Even when the timeout is set to 10, it always gives that error.

    The weird thing is that it doesn’t give out the Net504Exception if done in my local MSR. Within our MSR which is put inside OpenShift and has API Gateway, it catches Net504Exception. But regardless, on both parts, none of them get into the Catch block.


    #Flow-and-Java-services
    #webMethods


  • 6.  RE: Catching a pub.client:http Time Out

    Posted Tue March 08, 2022 11:04 PM

    If you are sure that pub.client:http is throwing Net504Exception without try-catch used, that should ideally get caught through the getLastError when wrapped using flow try-catch , I just get tested in my local MSR and works fine. May be you could also give a try using flow Sequence.

    Thanks


    #webMethods
    #Flow-and-Java-services


  • 7.  RE: Catching a pub.client:http Time Out

    Posted Wed March 09, 2022 01:54 AM

    It works fine too in my local Server.

    But in my other Server where it’s attached in OpenShift, it’s not working and giving Gateway Timeout errors.

    Perhaps I should check the setting of that other server. I just don’t know what could have influenced it. Any hint?


    #Flow-and-Java-services
    #webMethods


  • 8.  RE: Catching a pub.client:http Time Out

    Posted Tue March 08, 2022 11:38 AM

    Hi,

    Remember that getLastError needs to be the first step in the CATCH-Sequence, otherwise the error gets lost.

    Regards,
    Holger


    #Flow-and-Java-services
    #webMethods