org.springframework.web.util.NestedServletException : Handler processing failed; nested exception is java.lang.StackOverflowError分析

无情 阅读:227 2019-12-20 16:31:36 评论:0

1 ,错误原因,循环冗余检查

     result.setNearUsers(userList);
           Page page = new Page();
           page.setTotal(searchNearUser.getTotal());
           page.setSize(userList.size());
           page.setPage(discoverGetForm.getPaging());
           result.setPaging(page);
//         result.setData(result); 造成循环冗余检查的原因 setData 最好不要引用自己
           result.setSuccess( true);
           result.setMessage( "");
 
详细异常数据
  
<html><head><title>Apache Tomcat/7.0.57 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - Handler processing failed; nested exception is java.lang.StackOverflowError</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>Handler processing failed; nested exception is java.lang.StackOverflowError</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>org.springframework.web.util.NestedServletException : Handler processing failed; nested exception is java.lang.StackOverflowError 
       org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError( DispatcherServlet.java:1259) 
       org.springframework.web.servlet.DispatcherServlet.doDispatch( DispatcherServlet.java:945) 
       org.springframework.web.servlet.DispatcherServlet.doService( DispatcherServlet.java:856) 
       org.springframework.web.servlet.FrameworkServlet.processRequest( FrameworkServlet.java:915) 
       org.springframework.web.servlet.FrameworkServlet.doGet( FrameworkServlet.java:811) 
       javax.servlet.http.HttpServlet.service( HttpServlet.java:620) 
       org.springframework.web.servlet.FrameworkServlet.service( FrameworkServlet.java:796) 
       javax.servlet.http.HttpServlet.service( HttpServlet.java:727) 
       org.apache.tomcat.websocket.server.WsFilter.doFilter( WsFilter.java:52) 
</pre></p><p><b>root cause</b> <pre>java.lang.StackOverflowError 
       com.alibaba.fastjson.serializer.JSONSerializer.isEnabled( JSONSerializer.java:328) 
       com.alibaba.fastjson.serializer.JSONSerializer.containsReference( JSONSerializer.java:192) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source) 
       com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName( JSONSerializer.java:388) 
       Serializer_4.write1(Unknown Source) 
       Serializer_4.write(Unknown Source)

 

标签:javaException
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

发表评论
搜索
排行榜
关注我们

扫一扫关注我们,了解最新精彩内容