You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Marinschek (JIRA)" <my...@incubator.apache.org> on 2005/10/20 16:29:56 UTC
[jira] Closed: (MYFACES-715) ArrayStoreException in _SharedRendererUtils.getConvertedUISelectManyValue()
[ http://issues.apache.org/jira/browse/MYFACES-715?page=all ]
Martin Marinschek closed MYFACES-715:
-------------------------------------
Fix Version: Nightly
Resolution: Fixed
Assign To: Martin Marinschek
> ArrayStoreException in _SharedRendererUtils.getConvertedUISelectManyValue()
> ---------------------------------------------------------------------------
>
> Key: MYFACES-715
> URL: http://issues.apache.org/jira/browse/MYFACES-715
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Versions: Nightly
> Environment: JBoss 4, Windows XP, MyFaces nightly build for 20051016
> Reporter: Ampie Barnard
> Assignee: Martin Marinschek
> Fix For: Nightly
>
> I get the following exception when submitting values for a UISelectMany:
> java.lang.ArrayStoreException: businesssaver.segment.Segment
> at org.apache.myfaces.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(_SharedRendererUtils.java:148)
> at org.apache.myfaces.renderkit.RendererUtils.getConvertedUISelectManyValue(RendererUtils.java:680)
> at org.apache.myfaces.renderkit.html.HtmlListboxRendererBase.getConvertedValue(HtmlListboxRendererBase.java:127)
> at javax.faces.component.UISelectMany.getConvertedValue(UISelectMany.java:344)
> at javax.faces.component.UIInput.validate(UIInput.java:265)
> at javax.faces.component.UISelectMany.validate(UISelectMany.java:333)
> After further inspection, the following two lines seem to be the culprit.
> Line 144:
> Object [] convertedValues = (Object []) Array.newInstance(
> arrayComponentType==null?Object[].class:arrayComponentType,len);
> They result in the creation of an array of arrays of objects - Object[][], resulting in an incorrect assignment
> of an object where an array of objects is expected:
> Line 148:
> convertedValues[i]
> = converter.getAsObject(facesContext, component, submittedValue[i]);
> I apologise for not sending a patch, but unfortunately our co's firewall does not allow me checkout from CVS
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira