Unexpected error running Liquibase: java.lang.ClassCastException: class liquibase.executor.LoggingExecutor cannot be cast to class liquibase.nosql.executor.NoSqlExecutor (liquibase.executor.LoggingExecutor and liquibase.nosql.executor.NoSqlExecutor are in unnamed module of loader ‘app’)
Did this issue get resolved? I am getting exactly same error. I am trying to connect to MongoDB. I have copied liquibase-mongodb-4.7.0.jar and mongo-java-driver-3.9.1.jar under\lib folder (where other jar files are there. I am using Liquibse 4.7 version. When I run "liquibase status"command it runs successfully but when I run “liquibase update-sql” or "liquibase update"I am getting this error. I am using changelog file in following article.
I have tried downgrading Liquibase to multiple different versions through 4.4, but the same error persists in all. The weird thing is that only the ‘update-sql’ command fails. Running ‘liquibase update’ works as expected.
Error message with v4.14.0
liquibase.exception.DatabaseException: java.lang.ClassCastException: class liquibase.executor.LoggingExecutor cannot be cast to class liquibase.nosql.executor.NoSqlExecutor (liquibase.executor.LoggingExecutor and liquibase.nosql.executor.NoSqlExecutor are in unnamed module of loader java.net.URLClassLoader @555590)