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

JIRA | Bernd Kiefer | 9 months ago
  1. 0

    LiquiBase is throwing UnexpectedLiquibaseException: Cannot find LockService

    Stack Overflow | 1 month 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

    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
  4. 0

    When using the FileSystemResourceAccessor with the relativeToChangelogFile="true" option then the update always fails with something like; {code:java} liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: Cannot find base path 'lb_test_include_relative.xml' at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229) at liquibase.Liquibase.update(Liquibase.java:202) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.Liquibase.update(Liquibase.java:188) at liquibase.Liquibase.update(Liquibase.java:181) at TestAccessorRelative.testIncludeRelative(TestAccessorRelative.java:34) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: liquibase.exception.SetupException: Cannot find base path 'lb_test_include_relative.xml' at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:445) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:349) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 29 more Caused by: liquibase.exception.UnexpectedLiquibaseException: Cannot find base path 'lb_test_include_relative.xml' at liquibase.resource.AbstractResourceAccessor.convertToPath(AbstractResourceAccessor.java:142) at liquibase.resource.FileSystemResourceAccessor.list(FileSystemResourceAccessor.java:72) at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:422) ... 32 more {code} workaround: {code:java} This took a coupe of hours to find: remove the relativeToChangelogFile="true" option. {code} attachted is junit example with exception.

    JIRA | 7 months ago | Willem Cazander
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: Cannot find base path 'lb_test_include_relative.xml'

    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