On EJbPostCreate I get an
"IndexOutOfBoundsexception: Index: 0, Size: 0"

The following is the complete EjbPostCreate method code that fails:
                public void ejbPostCreate(StatusLocal statusLocal, Long userId) 
  | throws javax.ejb.CreateException, ApplicationException {
  |             Iterator relations;
  |             relations = statusLocal.getReasons().iterator();
  |             while (relations.hasNext()) {
  |                     ReasonLocal reasonLocal = (ReasonLocal) 
relations.next();
  |                     ReasonLocalHome reasonLocalHome = (ReasonLocalHome) 
reasonLocal.getEJBLocalHome();
  |                     
this.getReasons().add(reasonLocalHome.create(reasonLocal, userId));
  |             }
  | 
  |     }

The dump points to the second line:
relations = statusLocal.getReasons().iterator();

here is a part of the Dump:
 java.lang.IndexOutOfBoundsException: Index:0, Size:0
  | at java.util.ArrayList.RangeCheck(ArrayList.java:546)
  | at java.util.ArrayList.get(ArrayList.java:321)
  | at com.emi.framework.bo.model.StatusBean.ejbPostCreate(StatusBean.java:120)
  | ...
  | 

This code was written a long time ago with JDK 1.4.2 and is now running under 
JDK1.5.0_06 on Solaris.

Thnx

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947172#3947172

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947172


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to