-
Notifications
You must be signed in to change notification settings - Fork 103
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
Issue Found with Spring Auto Reconfiguration with Jackson 2.7.0-RELEASE #69
Comments
|
Here is the original error message and stacktrace: The exception indicates that there are incompatible Jackson JAR files on the classpath. Further, the line numbers in the stacktrace did not match the Jackson 2.9.7 code we're using. That all indicated that there is another version of Jackson on the classpath. Then, we noticed that auto-reconfiguration-2.7.0-RELEASE.jar contains Jackson classes. These Jackson classes seem to mess up our classpath. |
To avoid conflicts with Jackson shipped as part of the actual Cloud Foundry applications. Fixes cloudfoundry#69.
Hi, I am currently engaged with a customer that has encountered many issues when using Spring Auto Reconfiguration with Jackson. They recently deployed a new release of their application and after the deployment some of their applications throw a incompatible JAR files on the classpath error.
They understand that the class expects a
ReferenceTypeSerializerto have awithResolved()method with 5 parameters, which the last parameter is of typeJsonInclude.Includebut since the release of Jackson 2.9 there is only awithResolved()method with only 4 parameters. Their applications have been using Jackson 2.9.7 for a while without a problem. The customer thought, that maybe the build-pack puts an older version of Jackson on the class path that is incompatible with their Jackson version of 2.9.7. They had then found a new version of Spring Auto Reconfiguration, 2.7.0. This version contains Jackson classes like theObjectMapper. They also found that these Jackson classes within the 2.7.0 are incompatible with the 2.9.7 release of Jackson, that their applications dependencies uses.They ended up configuring their own build-pack and changed the spring_auto_reconfiguaration.yml to use version 2.5+ instead of the default 2.+.
The text was updated successfully, but these errors were encountered: