The exception is thrown after these lines of code are executed... SmbFile file = new SmbFile(URL, new Kerb5Authenticator(subject)); SmbFile[] files = file.listFiles();