---
title: "Struts2 jsonplugin JSONException"
author: "cargoj"
date: "2012-04-26T20:19:19Z"
tags: []
categories: ["互联网"]
slug: "struts2-jsonplugin-jsonexception"
draft: false
lastmod: "2012-04-26T20:19:19Z"
id: 1500163
url: "https://cargoj.iteye.com/blog/1500163"
---

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.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers "public"

 

就是序列化了不能序列化的对象，在我的项目中是由于Hibernate懒加载造成的。