Skip to content
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

java.lang.NullPointerException: Cannot invoke "java.sql.ResultSet.next()" because "schemas" is null #686

Open
hellerEkc opened this issue Apr 20, 2024 · 1 comment

Comments

@hellerEkc
Copy link

Hi, I have problem with generatig mvn liquibase:diff

My liquibase properties:

driver:com.mysql.cj.jdbc.Driver
changeLogFile:src/main/resources/db/changelog/dbchangelog.xml
url:jdbc:mysql://localhost:3306/liquibase
defaultSchemaName:liquibase
username:liquibase
password:liquibase
hibernate.dialect:org.hibernate.dialect.MySQL8Dialect
referenceUrl:hibernate:org.heller.liqibase.entity?dialect=org.hibernate.dialect.MySQL8Dialect
referenceDefaultSchema:hibernate

it return me this exception :

java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.database.AbstractJdbcDatabase.toString (AbstractJdbcDatabase.java:823)
    at liquibase.configuration.pro.SecretsVaultJarExistenceCheck.override (SecretsVaultJarExistenceCheck.java:47)
    at liquibase.configuration.ConfiguredValueModifierFactory.override (ConfiguredValueModifierFactory.java:34)
    at liquibase.configuration.LiquibaseConfiguration.getCurrentConfiguredValue (LiquibaseConfiguration.java:147)
    at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue (ConfigurationDefinition.java:106)
    at liquibase.command.CommandScope.getConfiguredValue (CommandScope.java:117)
    at liquibase.command.CommandScope.getArgumentValue (CommandScope.java:135)
    at liquibase.command.CommandArgumentDefinition.validate (CommandArgumentDefinition.java:137)
    at liquibase.command.CommandScope.validate (CommandScope.java:185)
    at liquibase.command.CommandScope.execute (CommandScope.java:212)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.database.AbstractJdbcDatabase.toString (AbstractJdbcDatabase.java:823)
    at java.lang.String.valueOf (String.java:4218)
    at liquibase.configuration.LiquibaseConfiguration.getCurrentConfiguredValue (LiquibaseConfiguration.java:149)
    at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue (ConfigurationDefinition.java:106)
    at liquibase.command.CommandScope.getConfiguredValue (CommandScope.java:117)
    at liquibase.command.CommandScope.getArgumentValue (CommandScope.java:135)
    at liquibase.command.CommandArgumentDefinition.validate (CommandArgumentDefinition.java:137)
    at liquibase.command.CommandScope.validate (CommandScope.java:185)
    at liquibase.command.CommandScope.execute (CommandScope.java:212)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.database.AbstractJdbcDatabase.toString (AbstractJdbcDatabase.java:823)
    at java.lang.String.valueOf (String.java:4218)
    at java.lang.StringBuilder.append (StringBuilder.java:173)
    at liquibase.configuration.LiquibaseConfiguration.getCurrentConfiguredValue (LiquibaseConfiguration.java:155)
    at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue (ConfigurationDefinition.java:106)
    at liquibase.command.CommandScope.getConfiguredValue (CommandScope.java:117)
    at liquibase.command.CommandScope.getArgumentValue (CommandScope.java:135)
    at liquibase.command.CommandArgumentDefinition.validate (CommandArgumentDefinition.java:137)
    at liquibase.command.CommandScope.validate (CommandScope.java:185)
    at liquibase.command.CommandScope.execute (CommandScope.java:212)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.database.AbstractJdbcDatabase.toString (AbstractJdbcDatabase.java:823)
    at java.lang.String.valueOf (String.java:4218)
    at liquibase.configuration.LiquibaseConfiguration.getCurrentConfiguredValue (LiquibaseConfiguration.java:177)
    at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue (ConfigurationDefinition.java:106)
    at liquibase.command.CommandScope.getConfiguredValue (CommandScope.java:117)
    at liquibase.command.CommandScope.getArgumentValue (CommandScope.java:135)
    at liquibase.command.CommandArgumentDefinition.validate (CommandArgumentDefinition.java:137)
    at liquibase.command.CommandScope.validate (CommandScope.java:185)
    at liquibase.command.CommandScope.execute (CommandScope.java:212)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.database.AbstractJdbcDatabase.toString (AbstractJdbcDatabase.java:823)
    at liquibase.configuration.pro.SecretsVaultJarExistenceCheck.override (SecretsVaultJarExistenceCheck.java:47)
    at liquibase.configuration.ConfiguredValueModifierFactory.override (ConfiguredValueModifierFactory.java:34)
    at liquibase.configuration.LiquibaseConfiguration.getCurrentConfiguredValue (LiquibaseConfiguration.java:147)
    at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue (ConfigurationDefinition.java:106)
    at liquibase.command.CommandScope.getConfiguredValue (CommandScope.java:117)
    at liquibase.command.CommandScope.getArgumentValue (CommandScope.java:135)
    at liquibase.command.core.helpers.ReferenceDbUrlConnectionCommandStep.obtainDatabase (ReferenceDbUrlConnectionCommandStep.java:80)
    at liquibase.command.core.helpers.ReferenceDbUrlConnectionCommandStep.run (ReferenceDbUrlConnectionCommandStep.java:70)
    at liquibase.command.CommandScope.execute (CommandScope.java:219)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.database.AbstractJdbcDatabase.toString (AbstractJdbcDatabase.java:823)
    at java.lang.String.valueOf (String.java:4218)
    at liquibase.configuration.LiquibaseConfiguration.getCurrentConfiguredValue (LiquibaseConfiguration.java:149)
    at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue (ConfigurationDefinition.java:106)
    at liquibase.command.CommandScope.getConfiguredValue (CommandScope.java:117)
    at liquibase.command.CommandScope.getArgumentValue (CommandScope.java:135)
    at liquibase.command.core.helpers.ReferenceDbUrlConnectionCommandStep.obtainDatabase (ReferenceDbUrlConnectionCommandStep.java:80)
    at liquibase.command.core.helpers.ReferenceDbUrlConnectionCommandStep.run (ReferenceDbUrlConnectionCommandStep.java:70)
    at liquibase.command.CommandScope.execute (CommandScope.java:219)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.database.AbstractJdbcDatabase.toString (AbstractJdbcDatabase.java:823)
    at liquibase.configuration.pro.SecretsVaultJarExistenceCheck.override (SecretsVaultJarExistenceCheck.java:47)
    at liquibase.configuration.ConfiguredValueModifierFactory.override (ConfiguredValueModifierFactory.java:34)
    at liquibase.configuration.LiquibaseConfiguration.getCurrentConfiguredValue (LiquibaseConfiguration.java:147)
    at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue (ConfigurationDefinition.java:106)
    at liquibase.command.CommandScope.getConfiguredValue (CommandScope.java:117)
    at liquibase.command.CommandScope.getArgumentValue (CommandScope.java:135)
    at liquibase.command.core.helpers.ReferenceDbUrlConnectionCommandStep.obtainDatabase (ReferenceDbUrlConnectionCommandStep.java:93)
    at liquibase.command.core.helpers.ReferenceDbUrlConnectionCommandStep.run (ReferenceDbUrlConnectionCommandStep.java:70)
    at liquibase.command.CommandScope.execute (CommandScope.java:219)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.database.AbstractJdbcDatabase.toString (AbstractJdbcDatabase.java:823)
    at java.lang.String.valueOf (String.java:4218)
    at liquibase.configuration.LiquibaseConfiguration.getCurrentConfiguredValue (LiquibaseConfiguration.java:149)
    at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue (ConfigurationDefinition.java:106)
    at liquibase.command.CommandScope.getConfiguredValue (CommandScope.java:117)
    at liquibase.command.CommandScope.getArgumentValue (CommandScope.java:135)
    at liquibase.command.core.helpers.ReferenceDbUrlConnectionCommandStep.obtainDatabase (ReferenceDbUrlConnectionCommandStep.java:93)
    at liquibase.command.core.helpers.ReferenceDbUrlConnectionCommandStep.run (ReferenceDbUrlConnectionCommandStep.java:70)
    at liquibase.command.CommandScope.execute (CommandScope.java:219)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.CatalogAndSchema.customize (CatalogAndSchema.java:153)
    at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot (SnapshotGeneratorFactory.java:180)
    at liquibase.command.core.DiffCommandStep.generateDatabaseShapshot (DiffCommandStep.java:205)
    at liquibase.command.core.DiffCommandStep.createReferenceSnapshot (DiffCommandStep.java:192)
    at liquibase.command.core.DiffCommandStep.createDiffResult (DiffCommandStep.java:113)
    at liquibase.command.core.DiffCommandStep.run (DiffCommandStep.java:89)
    at liquibase.command.CommandScope.execute (CommandScope.java:219)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Creating snapshot
[WARNING] Unable to retrieve the list of catalog names from the database metadata
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.CatalogAndSchema.customize (CatalogAndSchema.java:153)
    at liquibase.snapshot.DatabaseSnapshot.include (DatabaseSnapshot.java:289)
    at liquibase.snapshot.DatabaseSnapshot.init (DatabaseSnapshot.java:106)
    at liquibase.snapshot.DatabaseSnapshot.<init> (DatabaseSnapshot.java:59)
    at liquibase.snapshot.JdbcDatabaseSnapshot.<init> (JdbcDatabaseSnapshot.java:38)
    at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot (SnapshotGeneratorFactory.java:214)
    at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot (SnapshotGeneratorFactory.java:187)
    at liquibase.command.core.DiffCommandStep.generateDatabaseShapshot (DiffCommandStep.java:205)
    at liquibase.command.core.DiffCommandStep.createReferenceSnapshot (DiffCommandStep.java:192)
    at liquibase.command.core.DiffCommandStep.createDiffResult (DiffCommandStep.java:113)
    at liquibase.command.core.DiffCommandStep.run (DiffCommandStep.java:89)
    at liquibase.command.CommandScope.execute (CommandScope.java:219)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Error getting default schema
java.lang.NullPointerException: Cannot invoke "java.sql.CallableStatement.executeQuery()" because "cs" is null
    at liquibase.executor.jvm.JdbcExecutor$QueryCallableStatementCallback.doInCallableStatement (JdbcExecutor.java:585)
    at liquibase.executor.jvm.JdbcExecutor.execute (JdbcExecutor.java:136)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:224)
    at liquibase.executor.jvm.JdbcExecutor.query (JdbcExecutor.java:235)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:243)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:258)
    at liquibase.executor.jvm.JdbcExecutor.queryForObject (JdbcExecutor.java:253)
    at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName (AbstractJdbcDatabase.java:354)
    at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName (AbstractJdbcDatabase.java:311)
    at liquibase.snapshot.jvm.SchemaSnapshotGenerator.snapshotObject (SchemaSnapshotGenerator.java:42)
    at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot (JdbcSnapshotGenerator.java:65)
    at liquibase.snapshot.SnapshotGeneratorChain.snapshot (SnapshotGeneratorChain.java:49)
    at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot (JdbcSnapshotGenerator.java:68)
    at liquibase.snapshot.SnapshotGeneratorChain.snapshot (SnapshotGeneratorChain.java:49)
    at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot (JdbcSnapshotGenerator.java:68)
    at liquibase.snapshot.SnapshotGeneratorChain.snapshot (SnapshotGeneratorChain.java:49)
    at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot (JdbcSnapshotGenerator.java:68)
    at liquibase.snapshot.SnapshotGeneratorChain.snapshot (SnapshotGeneratorChain.java:49)
    at liquibase.snapshot.DatabaseSnapshot.include (DatabaseSnapshot.java:313)
    at liquibase.snapshot.DatabaseSnapshot.init (DatabaseSnapshot.java:106)
    at liquibase.snapshot.DatabaseSnapshot.<init> (DatabaseSnapshot.java:59)
    at liquibase.snapshot.JdbcDatabaseSnapshot.<init> (JdbcDatabaseSnapshot.java:38)
    at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot (SnapshotGeneratorFactory.java:214)
    at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot (SnapshotGeneratorFactory.java:187)
    at liquibase.command.core.DiffCommandStep.generateDatabaseShapshot (DiffCommandStep.java:205)
    at liquibase.command.core.DiffCommandStep.createReferenceSnapshot (DiffCommandStep.java:192)
    at liquibase.command.core.DiffCommandStep.createDiffResult (DiffCommandStep.java:113)
    at liquibase.command.core.DiffCommandStep.run (DiffCommandStep.java:89)
    at liquibase.command.CommandScope.execute (CommandScope.java:219)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask (LiquibaseDatabaseDiff.java:314)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$1 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$2 (AbstractLiquibaseMojo.java:988)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.lambda$execute$3 (AbstractLiquibaseMojo.java:902)
    at liquibase.Scope.lambda$child$0 (Scope.java:190)
    at liquibase.Scope.child (Scope.java:199)
    at liquibase.Scope.child (Scope.java:189)
    at liquibase.Scope.child (Scope.java:168)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute (AbstractLiquibaseMojo.java:837)
    at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute (LiquibaseDatabaseDiff.java:239)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Logging exception.
[INFO] ERROR: Exception Details
[INFO] ERROR: Exception Primary Class:  NullPointerException
[INFO] ERROR: Exception Primary Reason:  Cannot invoke "java.sql.ResultSet.next()" because "schemas" is null
[INFO] ERROR: Exception Primary Source:  MySQL 8.0.23
[INFO] Command execution complete
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  9.747 s
[INFO] Finished at: 2024-04-20T23:54:47+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.27.0:diff (default-cli) on project liquibase:
[ERROR] Error setting up or running Liquibase:
[ERROR] java.lang.NullPointerException: Cannot invoke "java.sql.ResultSet.next()" because "schemas" is null

My project is in attachment
liquibase.zip

Thank you

@NavidMitchell
Copy link

I had the same problem using the Liquibase Gradle plugin with, spring boot 3.3.1, hibernate 6, and liquibase 4.28.

I resolved this by adding to my gradle.build

liquibaseRuntime sourceSets.main.runtimeClasspath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants