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

Not able to debug the java service Error : Cannot connect to server "

  • 1.  Not able to debug the java service Error : Cannot connect to server "

    Posted Tue February 20, 2024 03:12 AM

    not able to debug the java service due to below

    Error :Cannot connect to server “127.0.0.1:5001”

    Can any one suggest what could be the issue ?


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Not able to debug the java service Error : Cannot connect to server "

    Posted Tue February 20, 2024 09:42 AM

    Hi,

    hopefully, you have checked that the server was started on the same machine on the mentioned port, before trying to test the service.
    If so, there should be a more detailed error message, why the test service cannot connect to the service to be tested.

    You might want to edit the main()-method, so that you can pass the server in the args on the commandline.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Not able to debug the java service Error : Cannot connect to server "

    Posted Wed February 21, 2024 03:33 AM

    Thanks the issue is resolved
    .


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Not able to debug the java service Error : Cannot connect to server "

    Posted Tue February 20, 2024 11:01 AM

    On the machine where you are using Designer (i.e., localhost), open a browser and try to access this IS. Make sure that you can reach the server via the browser, before you try again in Designer.

    There could be multiple reasons - server online on the right port (as Holger says), or the port not being open for connections (firewall rules) even if it’s on your own/same machine.

    KM


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Not able to debug the java service Error : Cannot connect to server "

    Posted Wed February 21, 2024 04:10 AM

    The 5001 port is https port .

    I have tried it bypassing the http port too but I thing needed to do some other setting in designer

    in General > network connections.

    can you guys suggest how to do that .


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Not able to debug the java service Error : Cannot connect to server "

    Posted Wed February 21, 2024 03:33 AM

    Thanks the issue is resolved


    #webMethods
    #Integration-Server-and-ESB