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
Expand all | Collapse all

getLastError full stack trace

  • 1.  getLastError full stack trace

    Posted Tue March 24, 2020 01:12 PM

    Hi,

    If I have something like this :

    - SEQUENCE (Exit On SUCCESS)
    -- SEQUENCE (Exit On FAILURE)
    --- INVOKE myPkg:flow1
    -- SEQUENCE (Exit On DONE)
    --- INVOKE pub.flow:getLastError

    And the myPkg:Flow1 :

    - INVOKE pub.math:divideInt(num1 = 1, num2 = 0)

    In getLastError my document error have only one line in callStack document list (I see only pub.math:divideInt).
    Does exist a way to obtain the complete stacketrace ? In my case not just on record with pub.math:divideInt but another one with myPkg:flow1


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: getLastError full stack trace

    Posted Tue March 24, 2020 03:55 PM

    Hi Vital,

    Sorry,I am not getting you but What else do you expect to see in the getLastError output under doc error/pipeline?

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: getLastError full stack trace

    Posted Wed March 25, 2020 12:51 AM

    Check the attached screen shot, is this how you need the getLastError output to look like?


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: getLastError full stack trace

    Posted Wed March 25, 2020 03:36 AM

    Hello Vital,
    the exception happened just in second level of service… hence u see only 1 service in callStack.
    if the exception happened in say 4th or 5th level down… then u will see the complete stack of flow steps and details

    HTH


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: getLastError full stack trace

    Posted Wed March 25, 2020 04:23 AM

    OK rmg and Mahesh K. Sreenivas

    I know what u mean.
    You said to me to do a getLastError in flow each time I encountered an exception and put in in Pipeline.
    It’s smart but I would prefere to not make the code with more statement in child services.
    I would prefer to view the complete stack trace only in service I call getLastError.


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: getLastError full stack trace

    Posted Wed March 25, 2020 05:01 AM

    Hi!

    I made two services:

    • temp.gerardo_lisboa.experiments.lastError:main_service
    • temp.gerardo_lisboa.experiments.lastError:aux_service

    where the aux_service is just a call to pub.math:divideInts

    And as a result of calling with parameters (1;0), I get an informative lastError.

    I am using 10.1.
    What is your version?

    Best regards and Keep Safe.
    2020-03-25 08_56_25-workspace101 - Service Development - <a href=uxos155c.ores.net_51310@__TEMP_GerardoLisbo.png" data-base62-sha1="hSnes0oW2BUUSjwVmGewIKp6CvK" width="529" height="130">


    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: getLastError full stack trace

    Posted Wed March 25, 2020 05:14 AM

    Hi Gerardo Lisboa
    Thanks and keep safe you too.

    You use wM 10.1. I know the latest versions of wM use a better way for try/catch management.
    So, in your flow service you seems, to not use it but maybe the software is better for the stackTrace in getLastError service.

    I use wM 9.10 version. I do exactly the same thing than you.

    Or maybe it exists a watt to be more accurate.

    getLastError.PNG
    Child.PNG
    Parent.PNG


    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: getLastError full stack trace

    Posted Thu March 26, 2020 09:34 AM

    Hi Gerardo Lisboa

    As we are migrationg our wM 9.10 version to wM 10.5, I installed a designer 10.5 on my local desktop and I tried again the same kind of flow service. And I see that with the same behaviour, in error structure, I have only single flow server in my callStack document List. So if you have not the same behaviour, something is missing in my configuration.


    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: getLastError full stack trace

    Posted Thu March 26, 2020 11:31 AM

    Hi,

    I are using transformers.
    I used an invoke.

    That makes all the difference.
    Try it my way.

    Best regards,


    #webMethods
    #Integration-Server-and-ESB


  • 10.  RE: getLastError full stack trace

    Posted Thu March 26, 2020 11:33 AM

    Yes I thought the same things than you. I tried with a invoke insteaf of transformer and I have the exactly same result


    #webMethods
    #Integration-Server-and-ESB


  • 11.  RE: getLastError full stack trace

    Posted Fri March 27, 2020 08:02 AM

    I find the problem : it was because I was in debug.
    In run mode, I have the call stack


    #webMethods
    #Integration-Server-and-ESB


  • 12.  RE: getLastError full stack trace

    Posted Mon March 30, 2020 05:25 AM

    Ok,

    That makes sense.

    Unfortunately, debug mode in the IS not at all transparent… :frowning:

    Best regards,


    #Integration-Server-and-ESB
    #webMethods