Skip to content
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

Error at runtime: Scala module 2.12.4 requires Jackson Databind version >= 2.12.0 and < 2.13.0 #1182

Closed
ovidiu-ionescu opened this issue Aug 24, 2022 · 8 comments

Comments

@ovidiu-ionescu
Copy link

I opened the source in Intellij, started App, project appears to run but the moment I try to access port 8080 I get this error:

2022-08-24 15:54:52,767 ERROR r-thread-1 i.m.h.server.RouteExecutor Unexpected error occurred: Error instantiating bean of type  [io.micronaut.jackson.databind.JacksonDatabindMapper]

Message: Scala module 2.12.4 requires Jackson Databind version >= 2.12.0 and < 2.13.0
Path Taken: new JsonBeanPropertyBinder(JsonMapper jsonMapper,JsonConfiguration configuration,BeanProvider exceptionHandlers) --> new JsonBeanPropertyBinder([JsonMapper jsonMapper],JsonConfiguration configuration,BeanProvider exceptionHandlers) --> new JacksonDatabindMapper([ObjectMapper objectMapper])
io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.jackson.databind.JacksonDatabindMapper]

I checked both the dev branch and the latest label 0.21.0 with the same result.

@tchiotludo
Copy link
Owner

didn't have the issue :
image
it's scala 2.13 that is required on our deps

@ovidiu-ionescu
Copy link
Author

The build fails when I try it:

$ ./gradlew build | grep requires
      Message: Scala module 2.12.4 requires Jackson Databind version >= 2.12.0 and < 2.13.0

@tchiotludo
Copy link
Owner

Unable to reproduce the issue on my computer, I just release a version today without any issues.

@Kenchir
Copy link

Kenchir commented Sep 2, 2022

@ovidiu-ionescu Did you solve the isssue? . I am facing the same problem.

@moremagic
Copy link
Contributor

I had the same problem in my environment, so I created a PullRequest

@alozano3
Copy link
Contributor

I am facing the same issue. In my case, I am using the agr generated with ./gradlew assembleShadowDist

@tchiotludo
Copy link
Owner

@alozano3 have you tried with this PR #1223?

@alozano3
Copy link
Contributor

I have tried the PR and it works, no sign of the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants