java.lang.StackOverflowError: null

created at 08-09-2021 views: 154
2021-03-19 15:02:45.179 [http-nio-8081-exec-6] ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] 
- Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.StackOverflowError] with root cause
java.lang.StackOverflowError: null
    at com.xxx.service.impl.xxx.xx(xxxServiceImpl.java:290)

Solution

cyclic call, StackOverflowError is thrown when the program stack space is exhausted, usually caused by deep recursion, check the code.

created at:08-09-2021
edited at: 08-09-2021: