[jcifs] StringIndexOutOfBoundsException from SmbFile.java
Michael B Allen
mba2000 at ioplex.com
Tue Oct 7 08:47:00 EST 2003
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)
--
A program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes the potential for it to be applied to tasks that are
conceptually similar and, more important, to tasks that have not
yet been conceived.
More information about the jcifs
mailing list