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

"No serializable introspection present for type. Consider adding Serdeable" after upgrade to Micronaut 4.0.0-M2/M5 #257

Closed
phlppnhllngr opened this issue May 28, 2023 · 3 comments · Fixed by #293
Assignees
Labels
status: validated An issue that has been validated as being a bug type: bug Something isn't working

Comments

@phlppnhllngr
Copy link

phlppnhllngr commented May 28, 2023

Expected Behavior

The framework should deserialize an object annotated with @io.micronaut.core.annotation.Introspected.

Actual Behaviour

Deserialization fails with an error:

Error "i.m.http.server.RouteExecutor - Unexpected error occurred: No deserializable introspection present for type: SomeDto someDto. Consider adding Serdeable.Deserializable annotate to type SomeDto someDto. Alternatively if you are not in control of the project's source code, you can use @SerdeImport(SomeDto.class) to enable deserialization of this type."

Steps To Reproduce

micronaut-problem 3.0.0-M1 (3.0.0-M2 too) pulls in micronaut-serde-api and micronaut-serde-jackson. After excluding these dependencies the error does not occur:

<dependency>
  <groupId>io.micronaut</groupId>
  <artifactId>micronaut-jackson-databind</artifactId>
</dependency>
<dependency>
  <groupId>io.micronaut.problem</groupId>
  <artifactId>micronaut-problem-json</artifactId>
  <exclusions>
    <exclusion>
      <groupId>io.micronaut.serde</groupId>
      <artifactId>micronaut-serde-api</artifactId>
    </exclusion>
    <exclusion>
      <groupId>io.micronaut.serde</groupId>
      <artifactId>micronaut-serde-jackson</artifactId>
    </exclusion>
  </exclusions>
</dependency>

Likely related:
micronaut-projects/micronaut-liquibase#342

Environment Information

  • JDK 17
  • micronaut-parent 4.0.0-M2 with property "micronaut.version" set to 4.0.0-M5
  • micronaut-problem-json 3.0.0-M1
  • micronaut-jackson-databind

Example Application

No response

Version

4.0.0-M5

@sdelamo
Copy link
Contributor

sdelamo commented Jul 19, 2023

@phlppnhllngr thanks for reporting. We will fix this as soon as possible.

@sdelamo sdelamo added the type: bug Something isn't working label Jul 19, 2023
@wetted
Copy link
Contributor

wetted commented Jul 19, 2023

@phlppnhllngr Have you tried this with the GA release of Micronaut 4.0.0? If it is still a problem can you please provide an example app with a test that exposes the error?

This seems related to #291. I have my own working example for that issue at https://github.com/wetted/problemjson291 assuming I understand the issue. Otherwise I need a breaking example.

@phlppnhllngr
Copy link
Author

Hello @wetted, @StefanSrf just provided an example in #291, please check if you can reproduce the bug with that. If not, i will create a demo project myself and upload it.

@wetted wetted added status: validated An issue that has been validated as being a bug and removed status: awaiting feedback labels Jul 20, 2023
sdelamo added a commit that referenced this issue Jul 20, 2023
@sdelamo sdelamo linked a pull request Jul 20, 2023 that will close this issue
@sdelamo sdelamo moved this to Ready for Review in 4.0.1 Release Jul 20, 2023
sdelamo added a commit that referenced this issue Jul 20, 2023
@github-project-automation github-project-automation bot moved this from Ready for Review to Done in 4.0.1 Release Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: validated An issue that has been validated as being a bug type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants