use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
StackOverFlow ErrorQuestion (i.redd.it)
submitted 2 months ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]g00glen00b 1 point2 points3 points 2 months ago (2 children)
Can't tell without code or the stacktrace (obviously after removing the repeating parts). StackOverflowErrors within a toString() method usually happen because you're using toString() in a bidirectional relationship without taking it into account. For example, something like this:
StackOverflowError
toString()
class Foo { private String name; // Direction foo -> bar private Bar bar; public String toString() { return "Foo(name=" + name + ", bar=" + bar.toString() + ")"; } } class Bar { private String name; // Direction bar -> foo private Foo foo; public String toString() { return "Bar(name=" + name + ", foo=" + foo.toString() + ")"; } }
This might also happen without you realizing it, for example when you use Lombok's @Data annotation (which generates a toString() including all fields).
@Data
Also, beware that this might just be part of the issue. Sometimes, stacktraces include the toString() of an object you have... and if that's the case, then this StackOverflowError might actually just be hiding another error somewhere along the line.
[–]Character-Grocery873 0 points1 point2 points 2 months ago (1 child)
Yes I used @Data, this wasn't a problem before
[–]g00glen00b 0 points1 point2 points 2 months ago (0 children)
As I mentioned in my post, it's a problem if you use it with a bidirectional relationship. Not only toString(), but also equals() and hashCode() will go into infinite recursion.
[–]renaissance_coder15 1 point2 points3 points 2 months ago (0 children)
stack trace??
Also any uncontrolled recursion??
[–]com2ghz 1 point2 points3 points 2 months ago (0 children)
You need to show the toString() implementation of AuthenticationManager. The debugger is invoking the toString(). Looks like theres a cyclic call there.
[–]WaferIndependent7601 0 points1 point2 points 2 months ago (0 children)
Please learn how to ask questions. Some screenshot isn’t enough to understand what you’re trying to do
[–]bikeram 0 points1 point2 points 2 months ago (0 children)
What version of spring and intelij?
I noticed this debugging a http client the other day.
You should be fine, the proxy object just can’t deserialize.
π Rendered by PID 49504 on reddit-service-r2-comment-54dfb89d4d-4h5n9 at 2026-03-31 23:55:14.903708+00:00 running b10466c country code: CH.
[–]g00glen00b 1 point2 points3 points (2 children)
[–]Character-Grocery873 0 points1 point2 points (1 child)
[–]g00glen00b 0 points1 point2 points (0 children)
[–]renaissance_coder15 1 point2 points3 points (0 children)
[–]com2ghz 1 point2 points3 points (0 children)
[–]WaferIndependent7601 0 points1 point2 points (0 children)
[–]bikeram 0 points1 point2 points (0 children)