liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: Cannot find base path 'lb_test_include_relative.xml'

JIRA | Willem Cazander | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 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 | 10 months ago | Willem Cazander
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: Cannot find base path 'lb_test_include_relative.xml'
  2. 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 | 10 months ago | Willem Cazander
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: Cannot find base path 'lb_test_include_relative.xml'
  3. 0

    mvn liquibase:update gives liquibase.exception.SetupException

    GitHub | 2 years ago | spoon99
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.liquibase:liquibase-maven-plugin:3.3.2:update (default-cli) on project quiltadd: Error setting up or running Liquibase: liquibase.exception.SetupException: classpath:config/liquibase/changelog/00000000000000_initial_schema.xml does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Update from 3.3 to 3.4 - db.changelog-master.xml not found

    GitHub | 12 months ago | TwizzyDizzy
    liquibase.exception.ChangeLogParseException: /opt/traccar/data/db.changelog-master.xml does not exist
  6. 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
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

    Cannot find base path 'lb_test_include_relative.xml'

    at liquibase.resource.AbstractResourceAccessor.convertToPath()
  2. Liquibase Core
    Liquibase.update
    1. liquibase.resource.AbstractResourceAccessor.convertToPath(AbstractResourceAccessor.java:142)
    2. liquibase.resource.FileSystemResourceAccessor.list(FileSystemResourceAccessor.java:72)
    3. liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:422)
    4. liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:349)
    5. liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282)
    6. liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25)
    7. liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229)
    8. liquibase.Liquibase.update(Liquibase.java:202)
    9. liquibase.Liquibase.update(Liquibase.java:192)
    10. liquibase.Liquibase.update(Liquibase.java:188)
    11. liquibase.Liquibase.update(Liquibase.java:181)
    11 frames
  3. Unknown
    TestAccessorRelative.testIncludeRelative
    1. TestAccessorRelative.testIncludeRelative(TestAccessorRelative.java:34)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  5. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    13. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    13 frames
  6. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
    1 frame
  7. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    5 frames