FasterXML / jackson-databind

General data-binding package for Jackson (2.x): works on streaming API (core) implementation(s)
Apache License 2.0
3.51k stars 1.38k forks source link

getting - failed to serialize payload error for boolean field intermittently #4715

Open fc76gsk opened 1 hour ago

fc76gsk commented 1 hour ago

Search before asking

Describe the bug

getting - failed to serialize payload error for boolean field intermittently with java liberty servers, few times a week and then all the requests are getting same error until the server is restarted. we are using java 1.8, ibm websphere application server liberty 21.0.0.9 2.15.2 version of jackson databind

Version Information

2.15.2

Reproduction

<-- Any of the following

  1. Brief code sample/snippet: include here in preformatted/code section
  2. Longer example stored somewhere else (diff repo, snippet), add a link
  3. Textual explanation: include here -->
    // Your code here
    public class BaseRequest{
    private boolean isStatus = false;
    //getters, setters, few other fields
    }

    The payload is not having this field being sent, but intermittently we are getting failed to serialize payload error for this and then the particular server on which it started this error will start for all the other api calls and the server becomes non-responsive, after restart of the server the server becomes normal and no error for most of the time, and then happens once a week or two weeks

Expected behavior

no serialization error

Additional context

No response

pjfanning commented 1 hour ago

We prefer to get cases where the problem is minimised to just involving Jackson. Noone is going to voluntarily try to reproduce your scenario which is far from fully described - which if I repeat it here, involves purchasing licenses for Websphere, setting up an instance, coding and deploying a POC and sending it messages for a week or 2 and then debugging.

Have you even looked at the possibility that some of the messages are malformed and how your code reacts to those malformed messages?

fc76gsk commented 51 minutes ago

The same requests work on other servers, same server after the server restart.

yihtserns commented 24 minutes ago

It could be anything: maybe your JVM server got corrupted, maybe there's memory problem, firewall problem, could be anything. 🤷‍♂️

You should get your team's/company's senior devs to investigate this.