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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Need Help In Understanding ISRuntimeExceptions

  • 1.  Need Help In Understanding ISRuntimeExceptions

    Posted 11/21/08 08:13 PM

    Hi all,

    Can anyone help me out in classifying whether the following exception is a ISRuntimeException or not.

    Exception:com.wm.app.b2b.server.ServiceException: java.net.ConnectException: Connection refused

    Regards,
    Kiran


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: Need Help In Understanding ISRuntimeExceptions

    Posted 11/23/08 07:21 AM

    The answer is within your post… It’s a “ServiceException”.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Need Help In Understanding ISRuntimeExceptions

    Posted 11/23/08 01:55 PM

    Dear,

    I think you want to know how to differentiate between transient and non transient error.

    –Shaik


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: Need Help In Understanding ISRuntimeExceptions

    Posted 11/24/08 06:27 AM

    Yes

    Can u please explain the difference between these type of errors

    Transient and Non-Transient errors

    TIA


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 5.  RE: Need Help In Understanding ISRuntimeExceptions

    Posted 11/24/08 11:03 AM

    ServiceException => Default exception type used by IS. You can “catch” these.
    ISRuntimeException => You can’t “catch” this. This is used commonly for retry.

    That’s why I was saying that your post itself contains the answer. It’s a ServiceException. Not ISRuntimeException.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Need Help In Understanding ISRuntimeExceptions

    Posted 11/26/08 08:30 AM

    how can we distinguished between them while handling…

    –shaik


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 7.  RE: Need Help In Understanding ISRuntimeExceptions

    Posted 04/14/09 12:19 PM

    Hi.
    I am having a problem that seams to relate to this issue…

    I am trying to explore the retry property in a trigger.
    I have already manage to create a trigger that retries ten times when the service called throws the exception.
    The service only does one thing: pub.flow.throwExceptionForRetry
    This works. Now I am trying to change the service to do a bit more.

    I am trying to add a structure (TRY-CATCH) by using a sequence with 2 inner sequences.

    1.Main_Sequence (exit on SUCCESS)
    a) Try_Sequence (exit on FAILURE)
    b) Catch_Sequence (exit on DONE)

    I was trying to place the pub.flow.throwExceptionForRetry on the Catch sequence so that when an error occured in the Try_Sequence, the Catch would raise the exception and the trigger would try again until it reached the maximum retry count.

    This is not working, and my first guess is that it has something to do with error handling…

    Any ideias? :confused:

    Thanks!


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 8.  RE: Need Help In Understanding ISRuntimeExceptions

    Posted 04/14/09 02:08 PM

    Your are on the right track. Move the throwExceptionForRetry outside of the try/catch sequence and you will be back in business. Normally what folks do is determine the error type in the catch sequence and then pass a parameter over to the throwExceptionForRetry sequence which has to be outside the try/catch block.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 9.  RE: Need Help In Understanding ISRuntimeExceptions