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

Directory Read Permission Issue

  • 1.  Directory Read Permission Issue

    Posted Sun September 13, 2015 08:19 PM

    Hi,

    We are facing an issue while trying to access a unix directory and files in that directory via webMethods Integration Server.
    The permission of unix Directory “Monitoring” is set as owner=root and group= “master”.
    webMethods server is installed as user webmethqa in unix server and this user is part of “master” group.
    When we connect to machine via putty with user “webmethqa” and try to access directory “Monitoring” , then we can access it and see the files.
    But , when we are trying to list files via Integration server, its not working.
    We are getting following error:
    Null pointer exception and file doesn’t exist.

    Not able to understand when “webmethqa” user is able to access files then why not IS which is installed with “webmethqa” user.

    webMethods Server version: 7.1.2
    Fix Level: IS_7.1.2_Core_Fix45

    Please help me with this issue.

    Thanks,
    Amit


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


  • 2.  RE: Directory Read Permission Issue

    Posted Mon September 14, 2015 07:18 AM

    What is the service used to list file. Can you share the complete error.

    Also check mounting.


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


  • 3.  RE: Directory Read Permission Issue

    Posted Tue September 15, 2015 07:57 PM

    Hi Mahesh,

    I am using pub.file:getFile service to pick the file as bytes.

    I am getting error as :
    //b00/inbound/InterfaceName/Monitoring/abc.xml does not exist

    Could you please let me know what I should check in mounting as I am able to view this file via putty for same user with which webMethods is installed.

    Thanks,
    Amit


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


  • 4.  RE: Directory Read Permission Issue

    Posted Wed September 16, 2015 08:11 AM

    From the error its looks to me that the specified path is not correct. Can you check and confirm it again.

    Since you are in wM 7 there is no config file for getFile service where this is the not the case in wM 8 and above.


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


  • 5.  RE: Directory Read Permission Issue

    Posted Wed September 16, 2015 04:54 PM

    Amit- Make sure there are no links on the FS, also files exist on the required directory.

    THanks,


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


  • 6.  RE: Directory Read Permission Issue

    Posted Wed September 16, 2015 05:02 PM

    Amit- Make sure there are no links on the FS, also files exist on the required directory.

    THanks,


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


  • 7.  RE: Directory Read Permission Issue

    Posted Wed September 16, 2015 08:24 PM

    Hi,

    I have checked and can see path is correct.
    Also, file is also available in that location.

    Seems like more of user access issue as the directory in which file is present is having owner as root.

    Thanks,
    Amit


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


  • 8.  RE: Directory Read Permission Issue

    Posted Thu September 17, 2015 12:03 AM

    Is this file in local or network disk?


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


  • 9.  RE: Directory Read Permission Issue

    Posted Thu September 17, 2015 12:41 AM

    Hi Xiaowei ,

    It is local disk on unix solaris.

    Thanks,
    Amit


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


  • 10.  RE: Directory Read Permission Issue

    Posted Thu September 17, 2015 12:48 AM


  • 11.  RE: Directory Read Permission Issue

    Posted Thu September 17, 2015 12:59 AM

    I have tried with both single slash / and double slash // but none of them is working.
    Was going through other forums where putting double slash has resolved issue for other people.

    Thanks,
    Amit


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


  • 12.  RE: Directory Read Permission Issue

    Posted Thu September 17, 2015 01:21 AM

    One or two slash depends on where the file is, it should have a certain answer for that, no need to try.

    In my opinion, the path starts with two slash is used to access to remote directory in network, and the service pub.file:getFile could be used only for local, so you should always pass the path starts with one slash to this service.

    So the question is, is that really a local file? Because there is a folder named b00 under root really seems weird.
    Could you run this command successfully from shell?

    cat /b00/inbound/InterfaceName/Monitoring/abc.xml

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


  • 13.  RE: Directory Read Permission Issue

    Posted Mon September 28, 2015 09:22 PM

    Hi All,

    Just to update this issue has been resolved now.

    Solution:

    1. Changed the permissions to 770 for folder Monitoring.
    2. Rebooted the Unix machine on which webMethods server is installed
    3. Restarted webMethods IS
    4. Tried to access file in directory and it worked.

    Thanks everyone for your help.
    Much appreciated.

    Hoping this solution helps someone in future.

    Thanks,
    Amit


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


  • 14.  RE: Directory Read Permission Issue

    Posted Tue September 29, 2015 03:50 AM

    Thanks for your time and information.


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