B2B Integration

 View Only
  • 1.  B2Bi 6.1.0.2 - java.io.IOException:- Cannot create directory

    Posted Thu June 03, 2021 04:56 AM
    We're running B2Bi 6.1.0.2 in a clustered architecture on Windows Server 2016. We have two app nodes, pointed to several file shares. When the fileshares are mounted as lettered drives (F:\, S:\) on the Windows system, the B2Bi application is unable to write to the directories, throwing a error "java.io.IOException:- Cannot create directory". When the same file shares are referenced using UNC paths (\\servername\directory), the application can write to the directory without issue. What is also strange is that, when navigating the OS with the same service account that runs the B2Bi Windows services, we are able to write to the NFS shares in both the UNC reference and as the mounted drive.  
    All Windows services are set to use the service account. We've changed the directory references to us two slashes (\\). Nothing we've done seems to alleviate the specific error that the B2Bi app cannot write to the mounted drive.
    Has anyone run into this issue before?


    ------------------------------
    Barrett Lyles
    ------------------------------


  • 2.  RE: B2Bi 6.1.0.2 - java.io.IOException:- Cannot create directory

    Posted Fri June 04, 2021 07:37 AM
    Hi,
    This error occurrs due to insufficient privileges, Please check whether you have write permission and admin permissions.
    Thanks,
    +Asi

    ------------------------------
    Nageswararao Asi
    ------------------------------



  • 3.  RE: B2Bi 6.1.0.2 - java.io.IOException:- Cannot create directory

    Posted Fri June 04, 2021 09:43 AM
    Hi Barrett,

    Can you please share your business process? and the Exception Stacktrace form the log files? Are you getting this error while using File System Adapter?

    Meanwhile, I hope you have already gone through this support documentation: https://www.ibm.com/support/pages/how-configure-file-system-adapter-write-shared-network-drive-within-cluster-sci90402

    Thanks

    ------------------------------
    BHARAT BALOTHIA
    ------------------------------



  • 4.  RE: B2Bi 6.1.0.2 - java.io.IOException:- Cannot create directory

    Posted Fri June 11, 2021 01:50 PM
    Instead of mounting external shares as separate lettered drives, we mounted them on the same drive where sterling is installed, using this command.

    mklink /d "c:\data\shareddata" "\\server\shareddata\"

    We use c:\data\shareddata in the FSA adapter and read/write from the shared drive.


    ------------------------------
    Kishore Reddy
    ------------------------------



  • 5.  RE: B2Bi 6.1.0.2 - java.io.IOException:- Cannot create directory

    Posted Tue June 15, 2021 01:35 PM
    Thank you Kishore! This will work for us.
    We will move away from mounted drives and use symbolic links.

    ------------------------------
    Barrett Lyles
    ------------------------------