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 bean introspection available for type XXX #2888

Open
steventen opened this issue Apr 17, 2024 · 1 comment
Open

No bean introspection available for type XXX #2888

steventen opened this issue Apr 17, 2024 · 1 comment
Labels
lang: kotlin Issues or features specific to Kotlin type: bug Something isn't working

Comments

@steventen
Copy link

Expected Behavior

Repository query should not throw exception. This same code works fine on Micronaut v4.2.x and previous versions.

Actual Behaviour

Run a simple query on repository causes io.micronaut.core.beans.exceptions.IntrospectionException

No bean introspection available for type [class xxxx] exception. Ensure the class is annotated with io.micronaut.core.annotation.Introspected

Steps To Reproduce

  1. Create an entity class
  2. Create an repository interface for the entity annotated with JdbcRepository that extends CrudRepository
  3. Add a findByXXX query

An example can be found: https://github.com/steventen/micronaut-no-bean-introspection-issue

A simple test like this will reproduce the error.

Adding @Introspected as suggested by the error message wouldn't help.

Environment Information

  • JDK 17
  • Micronaut 4.3.x
  • Kotlin 1.9.23

Example Application

https://github.com/steventen/micronaut-no-bean-introspection-issue

Version

4.3.8

@dstepanov
Copy link
Contributor

It looks like some weird KSP bug; I will investigate it later. For now, you can declare the Jakarta Persistence annotations as an implementation dependency.

@sdelamo sdelamo added lang: kotlin Issues or features specific to Kotlin type: bug Something isn't working labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: kotlin Issues or features specific to Kotlin type: bug Something isn't working
Projects
No open projects
Status: No status
Development

No branches or pull requests

3 participants