[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3495) getResultList() throwing arrayindexoutof bounds exception on empty result
kanwar sangha (JIRA)
jira-events at lists.jboss.org
Sun Oct 5 09:37:21 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12432527#action_12432527 ]
kanwar sangha commented on JBSEAM-3495:
---------------------------------------
earlier version had this in the generated entityList.java file which was causing the issue -
@Override
public List<String> getRestrictions() {
return Arrays.asList(RESTRICTIONS);
}
New version generates the following-
@Override
public List getRestrictions() {
// TODO Auto-generated method stub
return super.getRestrictions();
}
> getResultList() throwing arrayindexoutof bounds exception on empty result
> -------------------------------------------------------------------------
>
> Key: JBSEAM-3495
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3495
> Project: Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.1.0.CR1
> Environment: All
> Reporter: kanwar sangha
> Assignee: Pete Muir
> Fix For: 2.1.0.GA
>
>
> We are extending EntityQuery and overriding
> @Override
> public List getResultList() {
> edList = super.getResultList();
> return edList;
> }
> Sun-appserver 9.1
> mysql version - 6.0
> Seam - 2.1.0.CR1
> exception
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.jboss.seam.framework.Query.getRenderedEjbql(Query.java:240)
> at org.jboss.seam.framework.EntityQuery.createQuery(EntityQuery.java:175)
> at org.jboss.seam.framework.EntityQuery.initResultList(EntityQuery.java:73)
> at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:65)
> at com.prod.sps.session.EventdefinitionList.getResultList(EventdefinitionList.java:44)
> To Reproduce - Just do a seam-gen on a table try to pull up the "entitylist.xhtml" page with no data in the table.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list