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
Exception with null problems in "Property.path()" #138
Comments
kmongo don't support inline classes, dose it? |
here too http://prntscr.com/o5hi9n |
The root exception is : "Service ClassMappingTypeService not found". Checks that you have this file in your classpath: https://github.com/Litote/kmongo/blob/master/kmongo-jackson-mapping/src/main/resources/META-INF/services/org.litote.kmongo.service.ClassMappingTypeService |
It is already in the jar file |
Please provide a reproducible test case |
The Velocity version of (AstrideUG/MC-Data@5d33b74) (the Jar (in the Zip)) |
@LartyHD IS there other lib in the classpath? When I try to use the jar, I have this exception : java.lang.ClassNotFoundException: org.bson.codecs.pojo.annotations.BsonId Because there is no mongo java driver class And If I add the bson-3-10-2.jar in the classpath( where there is already only MCData-Velocity-1.0.0.jar + kotlin runtime), this code returns null as expected: class A(val r:String) /** // -> print null - no error |
@zigzago sorry i forgot the lib 😞 |
@LartyHD Still ok with the additional jar - and still no bson dependency in it By the way there is no class org.litote.kmongo.jackson.JacksonClassMappingTypeService in the two jars you provide - and it's a problem ;) |
@zigzago i added the missing class and bson to the jar. |
Sorry but I have not more time to expore a particular case that look like a class path issue |
http://prntscr.com/o5h5gl
MongoPlayerEntryHandler: https://gist.github.com/LartyHD/83a39b010c6976a6339032b4a5b6e4f1
PlayerId: https://gist.github.com/LartyHD/fcc75723df3582948504b6494635bc97
The text was updated successfully, but these errors were encountered: