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


    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)
  • 相关阅读:
    Swing中GridBagLayout布局的使用
    Android下Slidingmenu和actionbarsherlock的使用
    Swing基础知识
    Android下的ActionBar
    android下ADT的更新
    spark插件入门完整版本
    IOS开发准备 资料集锦
    Java调用本地浏览器
    Android源码在线查看网址
    Android中ProgressBar
  • 原文地址:https://www.cnblogs.com/QuestionsZhang/p/10312752.html
Copyright © 2020-2023  润新知