Showing posts with label stackoverflowerror. Show all posts
Showing posts with label stackoverflowerror. Show all posts

Thursday, September 29, 2022

Tracking of Stackoverflow Exception from Grails / Gradle Project - Caused by: java.lang.StackOverflowError: null

In many cases we may face Stackoverflow exception and in my many cases I didn't find the exact point where this exception occurred.
Then I start checked my debug output and found that from UrlMappingUtils.java class in package org.grails.web.mapping is the reason of StackoverflowException rather than throwing the main Exception.
This is because of handling of Exception is not handled properly.
Then I set a breakpoint inside method public static String forwardRequestForUrlMappingInfo and found the original Exception from there.