[jcifs] Re: jcifs-1.1.9 ArrayIndexOutOfBoundsException: -2146866174

madlg3 at vodafone.es madlg3 at vodafone.es
Wed Mar 2 10:05:45 GMT 2005


Hi Michael,
CIFS servers were Windows XP and Windows 2003.
OS where the test was carried out: Windows XP, Solaris, HP-UX PA-Risc 
and HP-UX True64. The problem turned up in all of them.

Attached you can find the exception and the T2Crawler. 

Coming back to my last question, I have been testing Jcifs under 
different plattforms and the error fixed in 1.1.9 only occurred in HP-
UX, I tried with 5 different HP-Ux machines and all of them had the 
problem. I tried with 3 windows, 2 linux (Fedora and Mandrake) and 2 
solaris and they didn´t have the problem of high load, even when the 
shares accessed and the code being tested were exactly the same. Do you 
know why the HP-UX machiens have "high-load" problems when  the other 
machines did not have the problem at all? Could this mean a JVM 
implementation problem in the HP plattform? It is even more weird if we 
take into account that the mandrake linux was running on a PIII 750Mhz 
box and was much faster that the HP-ux Machines. Jcifs running on HP-Ux 
machines required 3 times more(approx ) time than the Solaris, Linux 
and Windows machines to crawl the same CIFS share. All machines shared 
the same network and they were dedicated to the test, no other tasks 
were carried during the tests. Any ideas would be appreciated.

Thanks for the quick answer and for the great product.

Regards,

Michael


----- Mensaje Original -----
De: "Michael B Allen" <mba2000 at ioplex.com>
Fecha: Miércoles, Marzo 2, 2005 0:02 am
Asunto: Re: jcifs-1.1.9 ArrayIndexOutOfBoundsException: -2146866174

> What CIFS server is jCIFS communicating with (e.g. Windows 2003)? 
> What OS
> is jCIFS running on?
> 
> madlg3 at vodafone.es said:
> > Hi Mike,
> >
> > I modified the T2 crawler in order to simulate several users 
> performing> crawling and getting all ".doc" files. When I ran the 
> test for 50 users
> > I got an exception like this:
> >
> > java -Xms1024M -Xmx1024M -cp ".;jcifs-1.1.9.jar"
> > T2Crawler "smb://euk;euk:stinker@euk/euk-archive/" 50
> >
> > java.lang.ArrayIndexOutOfBoundsException: -2146866174
> 
> This exception is not complete. Some lines are truncated. Also the
> modified T2Crawler has some lines wrapped. Can you please send 
> both the
> execption and modified crawler as attachments?
> 
> > Do you have any idea about this problem?With older versions of jcifs
> > this didn´t occur. Before 1.1.19 I had problems with HP-UX machines
> > firing the EOF exception you commented on the 1.1.9 release
> > description. This problem never ocurred in Linux, windows and 
> solaris> machines executing the same code to access the same share 
> with same
> > number of users, do you have any idea why the HP-Ux machinew were
> > having this problem (I tried with PA-Risc and True64 and both 
> had the
> > problem)
> 
> If I could reproduce the problem I might be able to isolate the 
> issue. But
> it doesn't look like that's going to be easy.
> 
> Mike
> 
-------------- next part --------------
java -Xms1024M -Xmx1024M -cp ".;jcifs-1.1.9.jar" 
T2Crawler "smb://euk;euk:stinker@euk/euk-archive/" 50

java.lang.ArrayIndexOutOfBoundsException: -2146866174
        at jcifs.smb.ServerMessageBlock.readInt4
(ServerMessageBlock.java:137)
        at jcifs.smb.Trans2FindFirst2Response.readDataWireFormat
(Trans2FindFirst
        at jcifs.smb.SmbComTransactionResponse.readBytesWireFormat
(SmbComTransac
        at jcifs.smb.ServerMessageBlock.readWireFormat
(ServerMessageBlock.java:4
        at jcifs.smb.SmbTransport.run(SmbTransport.java:455)
        at java.lang.Thread.run(Thread.java:534)
smb://euk;euk:stinker@euk/euk-archive/19701011/Nokia/Poly So
jcifs.smb.SmbException: Timeout waiting for response from server: 
euk/10.21
        at 
jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:832)
        at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:246)
        at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
        at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:689)
        at jcifs.smb.SmbFile.queryPath(SmbFile.java:1230)
        at jcifs.smb.SmbFile.exists(SmbFile.java:1285)
        at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1358)
        at T2Crawler$CrawlerThread.run(T2Crawler.java:84)
smb://euk;euk:stinker@euk/euk-archive/19710607/jdk1.3.1_06/d
jcifs.smb.SmbException: Timeout waiting for response from server: 
euk/10.21
smb://euk;euk:stinker@euk/euk-archive/19710607/javadocs/2003
        at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:246)

smb://euk;euk:stinker@euk/euk-archive/19701011/Nokia/Poly So

        at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:689)
        at jcifs.smb.SmbFile.doFindFirstNext(SmbFile.java:1715)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1606)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1514)
        at T2Crawler$CrawlerThread.run(T2Crawler.java:74)
jcifs.smb.SmbException: Timeout waiting for response from server: 
euk/10.21
        at 
jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:832)
        at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:246)
        at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
        at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:689)
        at jcifs.smb.SmbFile.doFindFirstNext(SmbFile.java:1715)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1606)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1514)
        at T2Crawler$CrawlerThread.run(T2Crawler.java:74)
jcifs.smb.SmbException: Timeout waiting for response from server: 
euk/10.21
        at 
jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:832)
        at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:246)
        at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
        at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:689)
        at jcifs.smb.SmbFile.queryPath(SmbFile.java:1230)
        at jcifs.smb.SmbFile.exists(SmbFile.java:1285)
        at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1358)
        at T2Crawler$CrawlerThread.run(T2Crawler.java:84)
smb://euk;euk:stinker@euk/euk-archive/19710607/jdk1.3.1_06/d
java.lang.NullPointerException
        at 
jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:795)
        at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:246)
        at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
        at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:689)
        at jcifs.smb.SmbFile.doFindFirstNext(SmbFile.java:1715)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1606)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1514)
        at T2Crawler$CrawlerThread.run(T2Crawler.java:74)
smb://euk;euk:stinker@euk/euk-archive/19710607/jdk1.3.1_06/d
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T2Crawler.java
Type: application/octet-stream
Size: 6356 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20050302/35b60cea/T2Crawler.obj


More information about the jcifs mailing list