morphia
morphia copied to clipboard
error using autoCap and spring-boot-devtools
use version 2.5.0 and jdk 17
-
When using autoCap, an error will be reported when booting. The same problem description is ##3454
-
There seems to be a bug related to the classloader. I used a query with the filter "id $eq xxx", and the error was "Resolved java.lang.IllegalArgumentException: Unable to set the java.lang.String field com.xxx.xxx.Entity.id to com.xxx.xxx.Entity". Through tracing, I found that the classloader of the entity object is RestartClassLoader, but the classloader of PropertyModel and PropertyAccessor is appClassLoader, which leads to a reflection error
If you could put together a reproducer I'd be happy to take a look and see.