New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jakarta - EE 9 - Serialization issue in MongoDB IT PojoResourceTest #27506
Comments
/cc @evanchooly, @loicmathieu |
I remember a very specific issue with Yasson and |
@loicmathieu I will send an email to the list early next week with instructions on how to reproduce all these Jakarta issues. |
OK, I'll have a look next week then |
This issue is strange, when I launch the project locally and test it with curl I saw a NPE inside Yasson (which should never occurs).
The OptionalSerializer code looks like this, the NPE arrises at the
|
A simple test shows the same issue:
This test works on main but fail on the jakarate branch. Seems like an issue on Yasson side. |
@loicmathieu could you create a Yasson issue with a simple reproducer? And in the meantime, I suppose we should disable the test entirely (and create an issue to track it and enable it again as soon as it's fixed on the Yasson side). |
Maybe create 2 Maven projects: one with the old Yasson that works and the other with the new that fails. |
OK, I'll work on it tomorrow. |
Thanks! |
I opened and issue at Yasson side: eclipse-ee4j/yasson#575 I openned an issue to disable the test for now: #27619 |
@gsmet there was issues on Yasson side to handle null Optional (seriaization and deserialization issue) but our test was not failing due to this (or it was not the only cause). Is Restassured compatible with Jakarata EE 9 ? I remember seeing some lines to configure Restassured to use JSONB but I didn't find them. |
No, it's not compatible but what is weird is that I usually had big errors about missing classes (that's why I switched most of the testing to Jackson). Not something weird like this. |
OK, I'll open a PR on main with manually serializing the Pojo so we can put this behing us. |
The test is failing with:
If I remove the
Optiona<String>
inPojo
, it works OK but as this field is supposed to test something specific, we can't really do that.Not sure if it's due to a Yasson regression or a bug in what we're doing, it needs some digging. We are using the latest version of Yasson.
The text was updated successfully, but these errors were encountered: