json返回报错 浏览器报错500 InternalServer Error
2016-09-09 17:12
309 查看
1.json返回报错 浏览器报错500 InternalServer Error
JSONException:org.apache.struts2.json.JSONException: org.apache.struts2.json
.JSONException: org.apache.struts2.json.JSONException:java.lang.IllegalAccessException: Class org.apache
.struts2.json.JSONWritercan not access a member of classorg.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
。。。。。。。。
解决方案:
在jsonAction中的service 的get方法上添加@JSON(serialize=false)
因为json回去将不必要的内容转换成json内容,所以会报错
JSONException:org.apache.struts2.json.JSONException: org.apache.struts2.json
.JSONException: org.apache.struts2.json.JSONException:java.lang.IllegalAccessException: Class org.apache
.struts2.json.JSONWritercan not access a member of classorg.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
。。。。。。。。
解决方案:
在jsonAction中的service 的get方法上添加@JSON(serialize=false)
因为json回去将不必要的内容转换成json内容,所以会报错
相关文章推荐
- SpringMVC3中返回json字符串时500 Internal Server Error的处理方案
- Spring MVC+hibernate 使用@ResponseBody返回json报500 (Internal Server Error)
- ajax返回json格式 报500 Internal Server Error
- Apache 2.2 安装好后新建任意 PHP 文件访问时返回 500 Internal Server Error 解决方法
- 一个ASP.NET MVC中ajax调用WebApi返回500 Internal Server Error的调错方法。
- 各种HTTP返回错误代码大全 HTTP 403 Forbidden / 404 Not Found / 500 Internal Server Error / 502 Bad Gateway / 50
- IIS 7.5, ASP.NET MVC. HTTP Error 500 (Internal Server Error) 但是调试又不进入后台,浏览器只报500错误
- python urllib2导出elasticsearch数据时 返回 "urllib2.HTTPError: HTTP Error 500: Internal Server Error"
- http 500 Internal Server Error的错误 ajax请求SpringMVC后台中返回500 Internal Server Error
- FCKeditor出现"XML request error: Internal Server Error(500)"错误的解决办法
- FCKeditor 的 the server didn't send back a proper XML responser (xml request error:internal server error (500))终极解决方案
- HTTP/1.1 500 Internal Server Error
- 500 Internal Server Error 解决
- godaddy win主机 500 - Internal server error. 错误.完美解决方法
- http/1.1 500 internal server error
- BUG: You receive an "HTTP 500 - Internal server error" error message when you try to view an ASP page after you install Visual S
- Status: 500 Internal Server Error
- 创建.net web项目出错HTTP/1.1 500 Internal Server Error
- Fckeditor XML Request error:internal server error (500) 一例
- 创建.net web项目出错HTTP/1.1 500 Internal Server Error