org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:243)
org.apache.struts2.json.JSONWriter.process(JSONWriter.java:165)
org.apache.struts2.json.JSONWriter.value(JSONWriter.java:131)
org.apache.struts2.json.JSONWriter.write(JSONWriter.java:99)
org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:112)
org.apache.struts2.json.JSONResult.execute(JSONResult.java:198)
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
报这样的错用ext写的从数据库读取数据
action
List<Employeeinfo> elist;
RoleInfoBiz roleInfoBiz;
String json;
Employeeinfo employeeinfo;
public String allEmployeeinfo() {
elist=roleInfoBiz.allEmp();
String result="[";
for (int i=0;i<elist.size();i++) {
result+="{employeeId:"+elist.get(i).getEmployeeId()+"',employeeName:'"+elist.get(i).getEmployeeName()+"',gender'"+elist.get(i).getGender()+"',tbUser:'"+elist.get(i).getTbUser().getRole().getRoleName()+"',departinfo:'"+elist.get(i).getDepartinfo().getDepartName()+
"',phone:'"+elist.get(i).getPhone()+"',qq:'"+elist.get(i).getQq()+"',email:'"+elist.get(i).getEmail()+"',address:'"+elist.get(i).getAddress()+"}";
if (i!=elist.size()-1){
result+=",";
}
}
result+="]";
json="{\"success\":true,\"elist\":"+result+"}";
System.out.println(json);
return SUCCESS;
}
public List<Employeeinfo> getElist() {
return elist;
}
public void setElist(List<Employeeinfo> elist) {
this.elist = elist;
}
public RoleInfoBiz getRoleInfoBiz() {
return roleInfoBiz;
}
public void setRoleInfoBiz(RoleInfoBiz roleInfoBiz) {
this.roleInfoBiz = roleInfoBiz;
}
@JSON(serialize=false)
public String getJson() {
return json;
}
public void setJson(String json) {
this.json = json;
}
public Employeeinfo getEmployeeinfo() {
return employeeinfo;