Home » Developer & Programmer » JDeveloper, Java & XML » ClassCastException while try to cast from RowSetIterator (EBS 12)
ClassCastException while try to cast from RowSetIterator [message #564782] Tue, 28 August 2012 11:58
kissvikk
Messages: 1
Registered: August 2012
Junior Member

public void deleteRule(Number costCenterRuleId){

OAViewObject vo = getXxhwCostCenterRuleVO();
XxhwCostCenterRuleVORowImpl row = null;

int fetchedRowCount = vo.getFetchedRowCount();

RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");

if (fetchedRowCount > 0){

deleteIter.setRangeStart(0);
deleteIter.setRangeSize(fetchedRowCount);

for(int i=0; i < fetchedRowCount; i++){

Number primaryKey = (Number)deleteIter.getRowAtRangeIndex(i).getAttribute("CostCenterRuleId");

row = (XxhwCostCenterRuleVORowImpl)deleteIter.getRowAtRangeIndex(i);


<-- got ClassCastException at this point.
(oracle.apps.fnd.framework.OAException: java.lang.ClassCastException)

Can anybody help me out?

Thanks
Viktoria
Previous Topic: error on jsf
Next Topic: rss feed generation
Goto Forum:
  


Current Time: Tue Jul 29 14:32:02 CDT 2014

Total time taken to generate the page: 0.10011 seconds