Skip to content

Getting the following error. Please help me understand What led to this error? #710

Answered by brenuart
manindrakrishna asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Thanks for the feedback.
As far as I can tell, the problem is caused by Jackson that complains about a cycle in the object graph to serialise. See:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Direct self-reference leading to cycle (through reference chain: org.springframework.messaging.MessageDeliveryException["cause"]->org.springframework.integration.MessageDispatchingException["mostSpecificCause"])

This likely comes from an object you added to the log via the StructuredArguments feature. There is unfortunately not much logstash-logback-encoder can do about it... You should definitely look at what solution Jackson has to offer to work around this situation.

As a s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brenuart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants