java.net.UnknownHostException: \\HostIP\Trans-serv\1_NBWCPSUP\Test Files\My Folder-Cycle 1\hi.txt

Coderanch | santosh batta | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Problem with Windows Folders having Spaces

    Coderanch | 4 years ago | santosh batta
    java.net.UnknownHostException: \\HostIP\Trans-serv\1_NBWCPSUP\Test Files\My Folder-Cycle 1\hi.txt

    Root Cause Analysis

    1. java.net.UnknownHostException

      \\HostIP\Trans-serv\1_NBWCPSUP\Test Files\My Folder-Cycle 1\hi.txt

      at jcifs.UniAddress.getAllByName()
    2. jCIFS
      SmbFileInputStream.<init>
      1. jcifs.UniAddress.getAllByName(UniAddress.java:315)
      2. jcifs.smb.SmbFile.getFirstAddress(SmbFile.java:862)
      3. jcifs.smb.SmbFile.connect(SmbFile.java:951)
      4. jcifs.smb.SmbFile.connect0(SmbFile.java:880)
      5. jcifs.smb.SmbFile.open0(SmbFile.java:972)
      6. jcifs.smb.SmbFile.open(SmbFile.java:1006)
      7. jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:73)
      8. jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:65)
      8 frames
    3. Unknown
      WinFileTransfer.main
      1. WinFileTransfer.main(WinFileTransfer.java:37)
      1 frame