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.  Debugging Java Services

    Posted Fri January 02, 2015 07:53 AM

    Hi,

    I have written a java service which reads an excel file from the Unix box and processes it.

    To debug that service, I have created a TestHarness.java

    The problem I face is, when I run that service in designer using the Run Configurations set for IS Service, I am able to get that excel file from the Unix box.

    Whereas when I run it from the Configurations set for Java Application(Test Harness configured), I am getting IO file exception(System cannot find the path specified). Is there something else that needs to be set in Run Configurations created under Java Application?

    Thanks,
    Ganesh


    #webMethods
    #Integration-Server-and-ESB
    #B2B-Integration


  • 2.  RE: Debugging Java Services

    Posted Mon January 05, 2015 11:06 AM

    Based on the IO error you are getting are you sure it has the correct path from the java application to access the file?

    What is the path you are giving can you type here?

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration


  • 3.  RE: Debugging Java Services

    Posted Mon January 05, 2015 12:54 PM

    Just brainstorming:

    it might be that the second configuration tries to read the file from the machine where designer is runnig instead of using the file on the server side?

    Regards,
    Holger


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Debugging Java Services

    Posted Mon January 05, 2015 11:50 PM

    One more point under brainstorming -

    Do check the file separators. U - “/” or W - “[b][/b]”.


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB