-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
new ObjectMapper().readTree() throws exceptions since v2.15.1 (fixed in 2.15.2) #3955
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
Comments
@sblantipodi There must be a mismatch between versions. Could you just try upgrading all Jackson moudles to 2.15 and try again? I may have to double check tho, but |
ok I manually updated everything to 2.15.1
but now it doesn't compile: |
@JooHyukKim 2.15.0 works well... |
this is FasterXML/jackson-core#1027 You'll need to wait until jackson 2.15.2, I'm afraid. |
Right, as @pjfanning mentions. I wonder if there is anything we can do, to advise users running into the same issue. 🤔🤔 |
ok thanks for the answer :) |
I am planning to release 2.15.2 this week; hopefully today or tomorrow. Fwtw. Note that the original problem was a simple incompatibility between deployed versions: one MUST NOT try to use older minor version of But there is indeed #1027 which can prevent use on Module-enabled set ups (which means tons of users) :-/ |
@cowtowncoder thanks for the answer. IntelliJ suggested me an update and I accepted it just to try, for this reason I ended up with this versions: <jackson.version>2.15.1</jackson.version> Glad to see that 2.15.2 is imminent that will fix the 2.15.1 compile error. |
@sblantipodi It may indeed take 2-3 hours for a complete set to be available, it should never lead to use of inconsistent set, please don't do that. IntelliJ has no idea of constraints (unless you use But specifically you should avoid mixing minor versions (2.15 vs 2.14). |
closing since the issue is now solved. |
Describe the bug
My software works since years, I updated to databind v2.15.1 and it started throwing exceptions.
Version information
2.15.1
To Reproduce
where message is MqttMessage from org.eclipse.paho.client.mqttv3 and getPayload() returns byte[].
I have the same problem even with a simple thing like this:
mapper.readTree("{'pippo':'pluto'}");
this is the exception thrown:
java.lang.ClassNotFoundException: com.fasterxml.jackson.core.exc.StreamConstraintsException
this is my POM.xml...
I can't find the update for the other modules in mavencentral
Expected behavior
have it working as always.
The text was updated successfully, but these errors were encountered: