--
I just need to clarify whether I have found a bug with JServ or its our
code. Basically we have developed our own upLoadFile servlet class that
handles 'File' type.
This code is running wonderfully well on JRun with no problems however when
run in JServ it is giving:
24/Jun 16:41.44: java.lang.ArrayIndexOutOfBoundsException: 1024
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:69)
at com.nary.db.parseMultiForm.getParameter(parseMultiForm.java:100)
while ( (noData=In.readLine(buffer,0,buffer.length)) != -1 ){
if ( buffer[0] == '-' ){
tester = new String( buffer, 0, noData, "ISO-8859-1");
if ( tester.length() >= delimitor.length() &&
tester.indexOf(delimitor) == 0 )
break;
}else
_Out.write( buffer, 0, noData );
}
The buffer is set at 1024 and i have tried it at 4096 and bigger numbers but
the same results. It seems the underlying ServletInputStream.readLine()
method is running past the end of the buffer.
Is this a bug with JServ, or should I continue looking at our code? Like I
say, it works within other environments?
Thanks
Alan
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]