java.lang.reflect.InvocationTargetException in Java

Posted by manoj on Stack Overflow See other posts from Stack Overflow or by manoj
Published on 2010-05-27T09:54:14Z Indexed on 2010/05/27 10:01 UTC
Read the original article Hit count: 267

Filed under:
if(locs!=null)
{
    System.out.println("location are not null");
    Iterator ite = locs.iterator();
    DefaultComboItem locObj = null;
    ArrayList locCode = null;
    String cod=null;
    String name=null;
    while(ite.hasNext())
    {
        locCode = (ArrayList) ite.next();
        Iterator iter = locCode.iterator();
        while(iter.hasNext())
        {
            cod=(String)iter.next();
            System.out.println("Code="+cod);
            name=(String)iter.next();
            System.out.println("name="+name);
            locObj = new DefaultComboItem(cod, name);
            colRet.add(locObj);
        }
    }

}

on executing above code i am getting "java.lang.reflect.InvocationTargetException"

Please help me

© Stack Overflow or respective owner

Related posts about java