jzerbe/MusicZones — Issue #4: jcifs cannot handle zone being Master Browser
Author: jzerbe
Created: 2011-12-23 02:36:16+00:00
State: open

As noted on the mailing list - [[jcifs] How to list all computers in LAN?](http://lists.samba.org/archive/jcifs/2011-June/009632.html) - there is no good way around the problem.

The following error illustrates what gets dumped:
Dec 22, 2011 8:31:11 PM musiczones.ZoneLibraryIndex$RefreshCIFSMediaTask run
WARNING: null
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.doNetServerEnum(SmbFile.java:1914)
at jcifs.smb.SmbFile.doEnum(SmbFile.java:1734)
at jcifs.smb.SmbFile.list(SmbFile.java:1709)
at jcifs.smb.SmbFile.list(SmbFile.java:1606)
at musiczones.ZoneLibraryIndex$RefreshCIFSMediaTask.run(ZoneLibraryIndex.java:580)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
at jcifs.smb.SmbFile.connect0(SmbFile.java:882)
at jcifs.smb.SmbFile.doNetServerEnum(SmbFile.java:1914)
at jcifs.smb.SmbFile.doEnum(SmbFile.java:1734)
at jcifs.smb.SmbFile.list(SmbFile.java:1709)
at jcifs.smb.SmbFile.list(SmbFile.java:1606)
at musiczones.ZoneLibraryIndex$RefreshCIFSMediaTask.run(ZoneLibraryIndex.java:580)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
ZLI RefreshSearchIndexTask - no workgroups found