myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perkins, Nate-P63196" <>
Subject RE: [Trinidad] IndexOutOfBoundsException on tr:selectOneChoice dropdowns.
Date Thu, 18 Oct 2007 16:32:42 GMT
We have had a similar, sporadic problem.  We found it could be avoided by placing our SelectItem
lists in page flow scope.  Hope that helps. 

Nate Perkins
General Dynamics C4 Systems

>This email message is for the sole use of the intended recipient(s) and may contain GDC4S
> confidential or privileged information. Any unauthorized review, use, disclosure or distribution
> is prohibited. If you are not an intended recipient, please contact the sender by reply
email and
> destroy all copies of the original message.

-----Original Message-----
From: Darren McEntee [] 
Sent: Thursday, October 18, 2007 1:24 AM
To: MyFaces Discussion
Subject: [Trinidad] IndexOutOfBoundsException on tr:selectOneChoice dropdowns.


We're using Trinidad v1.0.1. We seem to be getting an issue with an IndexOutOfBoundsException
on tr:selectOneChoice dropdowns.
We have two dropdowns, of which the second dropdown is populated (from DB) from the choice
on the first dropdown.

What seems to be happening is that every so often, we get this IndexOutOfBoundsException error
on a selection.
For example we select the first option from dropdown 1, which populates 10 values in dropdown
2. If we go back and select a different option in dropdown 1, which populates 4 values in
dropdown 2 it causes this error. Its difficult to reproduce the error as it occurs sporadically,
and not everytime.

The error is attached below. Does anyone else ever get this in their log output?
Is it a known bug in Trinidad? We're using Trinidad 1.0.1, with Sun App Server 8.2

Any info would be appreciated.


Servlet]: Servlet.service() for servlet Faces Servlet threw exception
java.lang.IndexOutOfBoundsException: SelectOne submittedValue's index 11 is out of bounds.
It should be between 0 and 3
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.__getIndex(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer._getSelectedIndex(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.encodeAllAsElement(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.encodeAll(
            at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.renderFieldCellContents(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll(
            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(
            at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(
            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ColumnRenderer.renderKids(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ColumnRenderer._renderKids(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ColumnRenderer._renderTD(
            at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ColumnRenderer._renderDataMode(
P Please consider the environment before printing this email
1. The information contained in this E-mail, including any files transmitted with it, is confidential
and may be legally privileged. This E-mail is intended only for the personal attention of
the stated addressee(s). Any access to this E-mail, including any files transmitted with it,
by any other person is unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in this E-mail or any
files transmitted with it. Such unauthorised use may be unlawful. If you have received this
E-mail in error, please inform the sender immediately and delete it and all copies from your
system. You may not forward this E-mail without the permission of the sender.
2. The views expressed in this E-mail are those of the author, and do not necessarily represent
the views of AMT-SYBEX. Internet communications are not secure and AMT-SYBEX cannot, therefore,
accept legal responsibility for the contents of this message nor for any damage caused by
AMT-SYBEX Limited is a UK company, registration number GB03036807 at address The Spirella
Building, Bridge Road, Letchworth, SG6 4ET. 
AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at address Edgewater
Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit

View raw message