-
Notifications
You must be signed in to change notification settings - Fork 62
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 1.15.11: java.lang.ExceptionInInitializerError
#129
Comments
@nicholassmith Please share more of the stack trace. Also try to use 3.2.2.BETA version of mongock-spring. |
Thanks @nicholassmith. SpringContext is optional, but very helpful if you require any other dependency than MongoTempalte/MongoDatabase in your changeSet. The lock is also optional, but highly recommended as without this, the lock behaviour is the legacy one, and is very poor, if anything happens, doesn't unlock for 24hours, but doesn't throw any exception if lock cannot be acquired. Also, if you use the last versión, 3.2.2.BETA, as @alexciornii suggest, you can initialise SpringBootMongockBuilder with MongoTemplate, having something like this:
Please have a try with that, and let us know ;) |
Thanks for the replies! @alexciornii here's further stack trace:
I can't use
|
Hi @nicholassmith , we'll be looking at this evening. I will come back to you. Cheers |
Got further, the exclude has to be very specific |
Sorry @nicholassmith , I wasn't able to have a look yesterday. I will try today, but I cannot commit as we got something urgent. I will keep you posted. However, it seems, as you say, you are using an older version. As said, I will keep you posted |
Hello @nicholassmith , I don't know if you have worked it around or not. But Just for you to know that com.mongodb.DB is not supported in the new 3.X version( I just realised it now, after reading your message again). You should use MongoDatabase. Let me know how it goes |
I'm trying to migrate a project over from Mongobee to Mongock, so far I've stripped all Mongobee refs out and dropped in Mongock like this:
However whenever I start up Spring I get:
java.lang.ExceptionInInitializerError: null
(happy to share more of the stack trace). I've made sure all of our existing@ChangeLog
s and@ChangeSet
s are pointing to Mongock, and I've binary searched through some of the Mongock releases (1.16.2, 2.0.0, 2.0.2, 3.1.0-BETA) but can't seem to get past it.Currently importing like this:
dependency 'com.github.cloudyrock.mongock:mongock-spring:1.16.2'
in a main gradle file, andcompile 'com.github.cloudyrock.mongock:mongock-spring:1.16.2'
in the module gradle fileThe text was updated successfully, but these errors were encountered: