[jcifs] jCIFS 1.2.13 java.lang.ArrayIndexOutOfBoundsException:

Michael B Allen mba2000 at ioplex.com
Mon Apr 16 17:31:36 GMT 2007


On Mon, 16 Apr 2007 14:36:58 +0400
eugeny gladkih <john at drweb.com> wrote:

> Hi,
> 
> java.lang.ArrayIndexOutOfBoundsException: 52
>         at jcifs.smb.SmbException.getMessageByCode(SmbException.java:50)
>         at jcifs.smb.SmbException.<init>(SmbException.java:125)
>         at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:514)
> 
> it happened scanning HP printer. 

Clearly a bug. Looks like an off-by-one issue.

> why don't you use Hashtable for mapping between error codes and
> messages? ;)

Yes. That would be inefficient.

Mike

-- 
Michael B Allen
PHP Active Directory Kerberos SSO
http://www.ioplex.com/


More information about the jcifs mailing list