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 deserializable introspection present for type:" When adding "io.micronaut.mqtt:micronaut-mqttv5" dependency #332

Closed
breucode opened this issue Aug 26, 2023 · 2 comments · Fixed by #355
Assignees
Labels
type: bug Something isn't working

Comments

@breucode
Copy link

Expected Behavior

micronaut-serde should not be used at all, since I already have jackson-databind in use

This is the same problem as micronaut-projects/micronaut-problem-json#257

It can be fixed by adding the following to the build.gradle.kts

configurations.all {
  exclude(group = "io.micronaut.serde")
}

Actual Behaviour

The error "No deserializable introspection present for type:" is thrown as soon as anything in the project tries to serialize or deserialize json.

Steps To Reproduce

No response

Environment Information

No response

Example Application

No response

Version

4.0.5

@dirkhas
Copy link

dirkhas commented Oct 9, 2023

This also applies when using the io.micronaut.mqtt:micronaut-mqttv3 dependency. Builds are broken for clients that use micronaut-jackson-databind instead of micronaut-serde. Only when excluding the transitive micronaut-serde-jackson dependency does it work.

@sdelamo sdelamo added the type: bug Something isn't working label Jan 8, 2024
timyates added a commit that referenced this issue Jan 9, 2024
mqtt-core was based on serde-jackson which may be missing if the consuming project is using jackson.

This change mirrors the fix for problem-json here micronaut-projects/micronaut-problem-json#293

That is, make the serde-api and jackson annotations api dependencies of this project in place of the serde-jackson dependency.

I have an external reproducer, but I cannot get it to fail when included in this project...

Closes #332
@timyates timyates linked a pull request Jan 9, 2024 that will close this issue
sdelamo pushed a commit that referenced this issue Jan 9, 2024
* Fix MQTT with Jackson

mqtt-core was based on serde-jackson which may be missing if the consuming project is using jackson.

This change mirrors the fix for problem-json here micronaut-projects/micronaut-problem-json#293

That is, make the serde-api and jackson annotations api dependencies of this project in place of the serde-jackson dependency.

I have an external reproducer, but I cannot get it to fail when included in this project...

Closes #332

* Add tests
@timyates
Copy link
Member

Fixed in MQTT 3.1.1 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants