liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find unique implementation of liquibase.executor.Executor. Found 0 implementations

JIRA | Bernd Kiefer | 10 months ago
  1. 0

    LiquiBase is throwing UnexpectedLiquibaseException: Cannot find LockService

    Stack Overflow | 3 months ago | Dan
    liquibase.exception.UnexpectedLiquibaseException: Cannot find LockService for unsupported
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    This yaml changelog: {code} databaseChangeLog: - changeSet: id: create-sequence author: Matt Drees changes: - createSequence: incrementBy: 1 sequenceName: system_credentials_seq {code} fails with a stacktrace that looks like this: {code} liquibase.exception.ChangeLogParseException: liquibase.exception.ChangeLogParseException: liquibase.exception.UnexpectedLiquibaseException: Error setting incrementBy to 1 in changelog.yaml::create-sequence::Matt Drees at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogParser.java:309) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:216) at liquibase.Liquibase.update(Liquibase.java:194) at org.ccci.wsapi.db.ChangelogTest.testChangeLogAgainstUrl(ChangelogTest.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeMethod(Invoker.java:691) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:883) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1208) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:758) at org.testng.TestRunner.run(TestRunner.java:613) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1137) at org.testng.TestNG.runSuitesLocally(TestNG.java:1062) at org.testng.TestNG.run(TestNG.java:974) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173) at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: liquibase.exception.ChangeLogParseException: liquibase.exception.UnexpectedLiquibaseException: Error setting incrementBy to 1 in changelog.yaml::create-sequence::Matt Drees at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogParser.java:210) ... 33 more Caused by: liquibase.exception.UnexpectedLiquibaseException: Error setting incrementBy to 1 at liquibase.change.ChangeParameterMetaData.setValue(ChangeParameterMetaData.java:281) at liquibase.parser.core.yaml.YamlChangeLogParser.parseChange(YamlChangeLogParser.java:409) at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogParser.java:109) ... 33 more Caused by: liquibase.exception.UnexpectedLiquibaseException: Could not convert java.lang.Integer to java.math.BigInteger at liquibase.change.ChangeParameterMetaData.setValue(ChangeParameterMetaData.java:274) ... 35 more {code}

    JIRA | 3 years ago | Matt Drees
    liquibase.exception.ChangeLogParseException: liquibase.exception.ChangeLogParseException: liquibase.exception.UnexpectedLiquibaseException: Error setting incrementBy to 1 in changelog.yaml::create-sequence::Matt Drees
  4. 0

    When you use SpringLiquibase with dropFirst=true you get an error when the update is applied because the lock table has been dropped (I think): {noformat} INFO: Creating embedded database 'liquibasetest' INFO 27/10/14 14:11: liquibase: Successfully acquired change log lock INFO 27/10/14 14:11: liquibase: Dropping Database Objects in schema: PUBLIC.PUBLIC INFO 27/10/14 14:11: liquibase: Creating database history table with name: PUBLIC.DATABASECHANGELOG INFO 27/10/14 14:11: liquibase: Successfully released change log lock Oct 27, 2014 2:11:43 PM org.springframework.context.support.AbstractApplicationContext refresh WARNING: Exception encountered during context initialization - cancelling refresh attempt ... aused by: liquibase.exception.LockException: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.DatabaseException: Error executing SQL select count(*) from PUBLIC.DATABASECHANGELOGLOCK: user lacks privilege or object not found: DATABASECHANGELOGLOCK at liquibase.lockservice.StandardLockService.acquireLock(StandardLockService.java:214) at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:153) at liquibase.Liquibase.update(Liquibase.java:182) at liquibase.Liquibase.update(Liquibase.java:174) at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:345) at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:302) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1627) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1564) ... 37 more Caused by: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.DatabaseException: Error executing SQL select count(*) from PUBLIC.DATABASECHANGELOGLOCK: user lacks privilege or object not found: DATABASECHANGELOGLOCK at liquibase.lockservice.StandardLockService.isDatabaseChangeLogLockTableInitialized(StandardLockService.java:121) at liquibase.lockservice.StandardLockService.init(StandardLockService.java:95) at liquibase.lockservice.StandardLockService.acquireLock(StandardLockService.java:187) ... 44 more ... {noformat}

    JIRA | 2 years ago | Dave Syer
    liquibase.exception.LockException: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.DatabaseException: Error executing SQL select count(*) from PUBLIC.DATABASECHANGELOGLOCK: user lacks privilege or object not found: DATABASECHANGELOGLOCK

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. liquibase.exception.UnexpectedLiquibaseException

      liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find unique implementation of liquibase.executor.Executor. Found 0 implementations

      at liquibase.executor.ExecutorService.getExecutor()
    2. Liquibase Core
      Liquibase.<init>
      1. liquibase.executor.ExecutorService.getExecutor(ExecutorService.java:31)[liquibase-core-3.4.2.jar:na]
      2. liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName(AbstractJdbcDatabase.java:319)[liquibase-core-3.4.2.jar:na]
      3. liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName(AbstractJdbcDatabase.java:302)[liquibase-core-3.4.2.jar:na]
      4. liquibase.changelog.ChangeLogParameters.<init>(ChangeLogParameters.java:54)[liquibase-core-3.4.2.jar:na]
      5. liquibase.Liquibase.<init>(Liquibase.java:104)[liquibase-core-3.4.2.jar:na]
      5 frames