测试数组类类型对象时的Eclipse ClassNotLoadedException

时间:2013-04-09 19:11:36

标签: java eclipse debugging junit

错误:

org.eclipse.debug.core.DebugException:com.sun.jdi.ClassNotLoadedException:检索数组的组件类型时未发生类型

原因:

Typer[] typeResult;
for( String check : splitter )
{
  if ( check != null)
  {
    TypeResponse list = service.getGroup(name, id, value, db );
    typeResult = list.getCompany(); /* ERROR HERE */
    for ( int i = 0; i<typeResult.length; i++   )
    {
      String fvalue = typeResult[i].getCompManagerName();
    }
  }

}

ECLIPSE Java Compiler = 1.6 JAVA_HOME = 1.6

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

好像您的service.getGroup(name, id, value, db )返回null或垃圾值,因为此处的服务对象本身是NULL