[jcifs] NullPointer exceptions

Shawn Carnahan Shawn_Carnahan at Telestream.net
Wed Jan 9 10:07:04 EST 2002


Mike:

We've been using the JCIFS client to periodically scan network file systems.
On 0.6b6 we have noticed several unhandled NullPointerExceptions when a
remote server is powered down or rebooted, specifcally, in
SmbTransport.tryClose() the socket is null when you try to close it, here's
the call stack:

SmbFile.exists()
SmbFile.updateAttributes()
SmbFile.queryPath()
SmbTransport.negotiate()
SmbTransport.send()
SmbTransport.tryClose(inError = true)

Also for those of us stuck with 1.1, is it the intent to maintain 1.1
compatibility in 0.6? The java.net.URLDecoder class was the only exception I
ran across in upgrading.

Thanks,

Shawn Carnahan


-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list