[jcifs] Null pointer exception in ServerMessageBlock.java

Michael B Allen mba2000 at ioplex.com
Wed Jun 21 02:07:42 GMT 2006


On Tue, 20 Jun 2006 17:24:48 -0400
Jake Goulding <goulding at vivisimo.com> wrote:

> Thanks for the tip...
> 
> I traced the null String back to line 828 of SmbFile.java:
> 
> send( new SmbComNTCreateAndX( unc, flags, access, shareAccess, attrs, 
> options, null ), response );
> 
> unc is null here, so I added a call to getUncPath0() directly before the 
> if statement. Tracing into the call to getUncPath0(), I see that the if( 
> in[i] != '/' ) on line 986 is true, causing the function to return null. 
> Looking at the url given, I see the path is "#@pdc/IPC$/lsarpc". The 

That's not a valid path. The unc path should look like
\\server\IPC$\lsarpc. The SMB url should look like
smb://server/IPC$/lsarpc.

-- 
Michael B Allen
PHP Extension for SSO w/ Windows Group Authorization
http://www.ioplex.com/


More information about the jcifs mailing list