liquibase.exception.ChangeLogParseException: Error parsing line 1 column 1 of dat abase.xml: Content is not allowed in prolog.

Stack Overflow | 4 years ago
  1. 0

    Liquibase Update Failed

    Stack Overflow | 4 years ago
    liquibase.exception.ChangeLogParseException: Error parsing line 1 column 1 of dat abase.xml: Content is not allowed in prolog.
  2. 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
  3. 0

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

    GitHub | 9 months ago | TwizzyDizzy
    liquibase.exception.ChangeLogParseException: /opt/traccar/data/db.changelog-master.xml does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    If we call liquibase.update() from an application, we got an exception. {noformat} liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: liquibase.exception.SetupException: Could not find directory or directory was empty for includeAll 'tables/' at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:215) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.Liquibase.update(Liquibase.java:181) at liquibase.Liquibase.update(Liquibase.java:174) at de.ids.en.client.integrationtests3.test.AbstractLiquiBasedTestHelper.setUpDatabase(AbstractLiquiBasedTestHelper.java:37) at de.ids.en.client.integrationtests3.test.GenericEntityTemplateTest.setUp(GenericEntityTemplateTest.java:24) 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: liquibase.exception.SetupException: liquibase.exception.SetupException: Could not find directory or directory was empty for includeAll 'tables/' at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:247) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:211) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 30 more Caused by: liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: Could not find directory or directory was empty for includeAll 'tables/' at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27) at liquibase.changelog.DatabaseChangeLog.include(DatabaseChangeLog.java:353) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:245) ... 32 more Caused by: liquibase.exception.SetupException: Could not find directory or directory was empty for includeAll 'tables/' at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:331) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:261) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:211) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 34 more Caused by: liquibase.exception.SetupException: Could not find directory or directory was empty for includeAll 'tables/' at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:324) ... 37 more {noformat} That is our call: {noformat} ResourceAccessor resourceAccessor = new ClassLoaderResourceAccessor(); Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(conn)); Liquibase liquibase = new Liquibase(liquibaseFile, resourceAccessor, database); liquibase.update(""); {noformat} And this is our workaround: {noformat} ResourceAccessor resourceAccessor = new ClassLoaderResourceAccessor() { @Override public Set<String> list(String relativeTo, String path, boolean includeFiles, boolean includeDirectories, boolean recursive) throws IOException { relativeTo = FilenameUtils.getFullPath(relativeTo); return super.list(relativeTo, path, includeFiles, includeDirectories, recursive); } }; Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(conn)); Liquibase liquibase = new Liquibase(liquibaseFile, resourceAccessor, database); liquibase.update(""); {noformat} The Problem is the path won't correct created.

    JIRA | 2 years ago | idsettlingen
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: liquibase.exception.SetupException: Could not find directory or directory was empty for includeAll 'tables/'

  1. davidvanlaatum 26 times, last 4 weeks ago
  2. Seungwan 1 times, last 5 months ago
  3. davidvanlaatum 10 times, last 7 months ago
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.ChangeLogParseException

    Error parsing line 1 column 1 of dat abase.xml: Content is not allowed in prolog.

    at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse()
  2. Liquibase Core
    Liquibase.update
    1. liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:106)
    2. liquibase.Liquibase.update(Liquibase.java:107)
    2 frames