我正在尝试使用以下代码在调试模式下运行一个类
public void columnsList(List<TableRecord> records){
Collections.sort(records, new StampDateComparator());
for(TableRecord record : records){
Table table = record.getTable();
Field[] fields = table.fields();
for(Field field : fields){
field.getName();
record.getValue(field);
}
}
}
public static void main(String a[]){
AuditLogComponent comp = new AuditLogComponent();
List<TableRecord> records = new ArrayList<TableRecord>();
records.add(new LogFolderRecord());
records.add(new LogPeopleRecord());
comp.columnsList(records);
}
我在线程“main”java.lang.IllegalStateException中收到异常异常:没有可用的执行我在这里做错了什么?