Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting java.lang.ArrayIndexOutOfBoundsException: 0 while getting a specific row in Managed Bean

User_4J48HApr 14 2022 — edited Apr 14 2022

Hi ,
I am getting java.lang.ArrayIndexOutOfBoundsException: 0 while getting a specific row in Managed Bean. I have done the following code in my bean.
public void gsiEmployeeLovReturnPopListnr(ReturnPopupEvent returnPopupEvent) {

RichInputListOfValues lovField =  
  (RichInputListOfValues)returnPopupEvent.getSource();  


ListOfValuesModel lovModel = lovField.getModel();  
CollectionModel collectionModel =  
  lovModel.getTableModel().getCollectionModel();  


JUCtrlHierBinding treeBinding =  
  (JUCtrlHierBinding)collectionModel.getWrappedData();  


RowKeySet rks = (RowKeySet)returnPopupEvent.getReturnValue();  


List tableRowKey = (List)rks.iterator().next();  


DCIteratorBinding dciter = treeBinding.getDCIteratorBinding();  


Key key = (Key)tableRowKey.get(0);  


Row rw = dciter.getViewObject().findByKey(key, 1)\[0\];  

   
OperationBinding op = ADFUtils.findOperation("getGsiEmpDetails");  
op.getParamsMap().put("empId", rw.getAttribute("EmployeeId"));  
op.getParamsMap().put("empName", rw.getAttribute("FullName"));  

....}
I am using 12.1.3. Can you please suggest a solution for me?

Comments
Post Details
Added on Apr 14 2022
10 comments
244 views