-
Notifications
You must be signed in to change notification settings - Fork 165
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
Spring Boot Dev Tools causes IllegalArgumentException #729
Comments
Please share your domain object. |
This change replaces ClassGraphs class loading facility with the previous solution of using the current threads class loader, as the integration with Spring Boot's devtools stopped working in ClassGraph 4.8.19. It also fixes two places where a previous loaded domain class is loaded again just to determine fields. Last, it upgrades ClassGraph to the latest version.
This change replaces ClassGraphs class loading facility with the previous solution of using the current threads class loader, as the integration with Spring Boot's devtools stopped working in ClassGraph 4.8.19. It also fixes two places where a previous loaded domain class is loaded again just to determine fields. Last, it upgrades ClassGraph to the latest version.
This change replaces ClassGraphs class loading facility with the previous solution of using the current threads class loader, as the integration with Spring Boot's devtools stopped working in ClassGraph 4.8.19. It also fixes two places where a previous loaded domain class is loaded again just to determine fields. Last, it upgrades ClassGraph to the latest version.
This a backport of 63d5d75 that only contains the improvements regarding additional and superflous load of classes.
Thanks for the report. We use a library called ClassGraph to scan classes eligible for mapping. That library allows for loading those classes as well and in the latest update, we did this. However, the library does not work with the Restart Class Loader of Devtools anymore (see related issue here classgraph/classgraph#396), so we decided to load the scanned classes our selves again. Fix will be available in the next patch release. Thank you. |
Current Behavior
I'm not sure if this is an OGM issue or not, but I thought I would call it out because it took some time to debug and figure out.
When Spring-Boot Dev Tools dependency(2.2.2.RELEASE) is included in my pom.xml with OGM version 3.2.3+ I receive mapping issues from OGM, and an IllegalArgumentException exception is thrown whenever I try and access an OGM mapped object.
This does not happen with version 3.2.2.
Steps to Reproduce (for bugs)
Include Spring Boot Dev Tools in the pom.xml
Your Environment
The text was updated successfully, but these errors were encountered: