求问一下 setExcludes 没有作用

在把 javabean对象转json数据格式时候,因为我有两个表,表A里包含表B集合(s new set(0)),然后我用:

 JsonConfig jsonConfig = new JsonConfig();
jsonConfig.setIgnoreDefaultExcludes(false);
jsonConfig.setExcludes(new String[]{"s"});
JSONArray rs = JSONArray.fromObject(List, jsonConfig);

去掉 不需要的 属性,结果还是报错:

 net.sf.json.JSONException: There is a cycle in the hierarchy!

可是程序在win7上能运行,在winXP上报异常,我觉得是兼容的问题,我用的有关jar包是:

图片说明