BUG记录-springMVC返回JSON报错:Handler processing failed; nested exception is java.lang.StackOverflowError

原创 2018年04月16日 09:23:16

新入职一家,,遇到一个JSON返回一直报堆栈溢出的错误.,框架配置过了JSON解析器,所有写法无误.于是纠结了三个小时没找到问题所在.

 后经排查是JAR使用不一致导致! 被坑了,非常郁闷! JSON解析器被要求用封装的工具类,这个工具类用的JSON包为:

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
实体继承的基类所用的JSON包为:
import com.fasterxml.jackson.annotation.JsonIgnore;

@JsonIgnore

忽略不会生效

所以解析时会不断去找另一个实体,那个实体为空,就递归了.前辈大佬封装的也不一定对,还是要多用自己写的

第一次写文章,这个样式看起来好尴尬,各位别喷.

spring mvc restful java.lang.Stackoverflowerror

[ERROR] Nested in org.springframework.web.util.NestedServletException: Handler processing failed; ne...
  • zqbx7
  • zqbx7
  • 2017-01-18 17:06:02
  • 2372

Initialization of bean failed; nested exception is java.lang.StackOverflowError

http://blog.csdn.net/jiankunking/article/details/53613268 作者:jiankunking 出处:http://blog.csdn.net/j...
  • xunzaosiyecao
  • xunzaosiyecao
  • 2016-12-13 21:30:42
  • 3684

@valid在SpringMVC中报错[Handler processing failed; nested exception is java.lang.NoSuchFieldError:TRACE

今天在使用SpringMVC的验证框架的时候报错 message:Handler processing failed; nested exception is java.lang.NoSuchFie...
  • qq_35430370
  • qq_35430370
  • 2017-08-09 14:19:19
  • 2313

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception i

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception i...
  • hwb1992
  • hwb1992
  • 2014-04-10 21:06:24
  • 3926

Handler processing failed; nested exception is

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is ...
  • koubi1234
  • koubi1234
  • 2017-02-10 17:58:25
  • 1175

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is

图片上传异常处理org.springframework.web.util.NestedServletException: Handler processing failed; nested excep...
  • iphone4grf
  • iphone4grf
  • 2015-06-05 14:54:47
  • 3740

springMVC开发|HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFou

搭建springMVC项目,前端jsp出现报错:HTTP Status 500 - Handler processing failed; nested exception is java.la...
  • twinkle2star
  • twinkle2star
  • 2017-07-05 15:55:42
  • 1248

HTTP Status 500 - Handler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen

HTTP Status 500 - Handler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen...
  • testcs_dn
  • testcs_dn
  • 2014-09-25 19:33:36
  • 71114

SpringMVC整合Mybatis报错org.springframework.web.util.NestedServletException: Request processing failed;

SpringMVC整合Mybatis报错org.springframework.web.util.NestedServletException: Request processing failed;...
  • tricerice
  • tricerice
  • 2017-02-05 12:18:18
  • 3159

【Debug】Hander processing failed; nested exception is java.lang.NoClassDefFoundError; javax/servlet/j

Hander processing failed; nested exception is java.lang.NoClassDefFoundError; javax/servlet/jsp/jstl...
  • Jin_Kwok
  • Jin_Kwok
  • 2016-06-13 16:06:50
  • 3778
收藏助手
不良信息举报
您举报文章:BUG记录-springMVC返回JSON报错:Handler processing failed; nested exception is java.lang.StackOverflowError
举报原因:
原因补充:

(最多只允许输入30个字)