You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/07/23 15:42:37 UTC
DO NOT REPLY [Bug 30296] New: -
java.lang.ArrayIndexOutOfBoundsException: 122 when posting a form
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30296>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30296
java.lang.ArrayIndexOutOfBoundsException: 122 when posting a form
Summary: java.lang.ArrayIndexOutOfBoundsException: 122 when
posting a form
Product: Tomcat 4
Version: 4.1.18
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Critical
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jdogny@camaieu.fr
On an application, there is a big form (200 lines).
So it is 200 hundred times these lines in a html table :
<TR ALIGN='CENTER' BGCOLOR='#FAE4D1'>
<TD><B>1.</B></TD>
<TD><INPUT TYPE='TEXT' NAME="FRI_BAIN" VALUE="" SIZE='25' maxlength='15'></TD>
<TD><INPUT TYPE='TEXT' Name="FRI_REF_PIECE" VALUE="" SIZE='22'
maxlength='20'></TD>
<TD><INPUT TYPE='TEXT' NAME="FRI_PDS_NET" VALUE="" SIZE='10' maxlength='7'></TD>
<TD><INPUT TYPE='TEXT' NAME="FRI_PDS_BRUT" VALUE="" SIZE='10' maxlength='7'></TD>
<TD><INPUT TYPE='TEXT' NAME="FRI_QTE_LIVREE" VALUE="" SIZE='10'
maxlength='5'></TD>
</TR>
Send when i post the form using the POST method, i somtimes get an error :
java.lang.ArrayIndexOutOfBoundsException: 108
at
camaieu.deliveryform.action.SaveRollInformation.setParameters(SaveRollInformation.java:373)
and this in the function that checks what was entered.
I get this exception on any indexes. I just entered 4 lines and i get this erron
on index 108.
It is like all the fields are not sent.
To get the values, I use :
paramsFriBain = request.getParameterValues("FRI_BAIN");
paramsFriRefPiece = request.getParameterValues("FRI_REF_PIECE");
paramsFriPdsNet = request.getParameterValues("FRI_PDS_NET");
paramsFriPdsBrut = request.getParameterValues("FRI_PDS_BRUT");
paramsFriQteLivree = request.getParameterValues("FRI_QTE_LIVREE");
then do a for i=0 to i<paramsFriBain.length to check if information is correct
and then insert the lines in a databse.
thanks for telling where it could come from.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org