• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jcifs.smb.SmbException: Failed to connect to server

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have requirement to transfer file from Linux to Windows server. But seeing the below mentioned error while running. Please help me to resolve the issue

jcifs.smb.SmbException: Failed to connect to server
java.net.UnknownHostException: ..__MSBROWSE__.<01>
       at jcifs.netbios.NbtAddress.doNameQuery(NbtAddress.java:317)
       at jcifs.netbios.NbtAddress.getByName(NbtAddress.java:422)
       at jcifs.netbios.NbtAddress.getByName(NbtAddress.java:403)
       at jcifs.smb.SmbFile.getFirstAddress(SmbFile.java:850)
       at jcifs.smb.SmbFile.connect(SmbFile.java:951)
       at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
       at jcifs.smb.SmbFile.open0(SmbFile.java:972)
       at jcifs.smb.SmbFile.open(SmbFile.java:1006)
       at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
       at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
       at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
       at JavaCode.main(JavaCode.java:38)

       at jcifs.smb.SmbFile.connect0(SmbFile.java:882)
       at jcifs.smb.SmbFile.open0(SmbFile.java:972)
       at jcifs.smb.SmbFile.open(SmbFile.java:1006)
       at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
       at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
       at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
       at JavaCode.main(JavaCode.java:38)
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Yes, I'd say that's not the name of any host in your network. I'm sure that the real host name is somewhere else but your code isn't getting it from there, so I'd suggest looking into the code which claims to be getting the host name.
 
Kumar Geo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the response. But the concerned host is in the same network and is reachable in the network. Could see the ping results are showing healthy.  Any other thoughts to look into it
 
Paul Clapham
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You really have a host named "..__MSBROWSE__.<01>" in your network?
 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic