[jcifs] StringIndexOutOfBoundsException from SmbFile.java

Gary Rambo c-grambo at aventail.com
Tue Oct 7 09:20:44 EST 2003


Posted.

Michael B Allen wrote:

>Run this with -Dlog=ALL and post the OP.
>
>java -cp ../../jcifs-0.7.13.jar:. -Dlog=ALL ListFiles smb://
>
>  
>
>>I'm getting a StringIndexOutOfBoundsException from SmbFile.java from a
>>ListFiles query with the smb url "smb://":
>>
>>java -cp ../../jcifs-0.7.13.jar:. ListFiles smb://
>>Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
>>String index out of range: -1
>>       at java.lang.String.charAt(String.java:444)
>>       at jcifs.smb.SmbFile.<init>(SmbFile.java:503)
>>       at jcifs.smb.SmbFile.listFiles(SmbFile.java:1357)
>>       at jcifs.smb.SmbFile.listFiles(SmbFile.java:1303)
>>       at ListFiles.main(ListFiles.java:13)
>>    
>>
>
>  
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OP.zip
Type: application/zip
Size: 4411 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20031006/d4d1c040/OP.zip


More information about the jcifs mailing list