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
  • 1.  using WmPublic.getFile on network files

    Posted 12/30/13 11:16 AM

    I have a clustered 8.2 environment. I am passing a file path to wmPublic.getFile and it will execute with no issues on 3 out of 4 windows servers. The path is something like this…\prodServer1\webMethods82\test\myFile.html

    Our development,test and the server in the file path above can open the file with no issues. The other production server is the problem.

    All of the webMethods instance’s are running as a windows service. From the physical server above and the others we have verified the file can be reached and opened with no issues. We also granted EVERYONE read/write access to eliminate the possible issue of the service account running the IS instance.

    We are only using the getFile() service right now but did update the fileAccessControl.cnf to include the path. Any ideas ?


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 2.  RE: using WmPublic.getFile on network files

    Posted 01/01/14 08:13 AM

    What’s the error message or exception?


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: using WmPublic.getFile on network files

    Posted 01/03/14 09:25 AM

    Simply - File not found…

    $error [ISS.0086.9256] File [\ndhap50184\webMethods82\MSSSContractFiles\DeltaDetailReport\BM04277-A_3720301_571_GSTJH_201312301026.html] does not exist
    $errorType com.wm.app.b2b.server.ServiceException

    Using the same path noted above the other three servers reach it no problem.


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: using WmPublic.getFile on network files

    Posted 01/03/14 09:59 AM

    Can you access this file from the issue server directly with windows explorer?


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: using WmPublic.getFile on network files

    Posted 01/03/14 10:04 AM

    Yes we can (from all 4 of the servers we are working on).


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 6.  RE: using WmPublic.getFile on network files

    Posted 01/03/14 11:59 PM

    It’s strange. Can you try this simple java service below to check the file exist?

    String input : filename
    String output : exist
    Import : java.io.File

    
    IDataCursor pipelineCursor = pipeline.getCursor();
    String filename = IDataUtil.getString( pipelineCursor, "filename" );
    IDataUtil.put( pipelineCursor, "exist", String.valueOf(new File(filename).exists()) );
    pipelineCursor.destroy();

    And regarding to the filename, can you try to replace the machine name with IP address?


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: using WmPublic.getFile on network files

    Posted 01/08/14 09:39 AM

    Thanks for the help…We did resolve this. The issue was the Windows DNS. Since the DNS could not resolve properly it gave the file not found exception. .


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 8.  RE: using WmPublic.getFile on network files

    Posted 01/08/14 09:51 PM

    Glad to hear that. Can you share how you identify it’s a DNS issue and how to fix it?
    I remember that you can access this file from the issue server directly with windows explorer.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods