question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

For the includeAll tag, "Not a valid resource entry" is written

See original GitHub issue

Description If resources are added via includeAll, then we get an invalid resource error. If the file is specified explicitly, then it is processed correctly

To Reproduce Liquibase: 3.8.7

db.changelog-master.xml:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
						 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
						 xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
<!--	<include file="2020/03/08_1034.xml" relativeToChangelogFile="true"/>-->
	<includeAll path="2020/**" relativeToChangelogFile="true"/>
</databaseChangeLog>
2020-03-09 11:38:14.766  INFO 80831 --- [           main] l.lockservice.StandardLockService        : Successfully acquired change log lock
2020-03-09 11:38:24.883  WARN 80831 --- [           main] i.s.SpringLiquibase$SpringResourceOpener : Not a valid resource entry: jar:file:/CUT_PATH/db.jar!/db/changelog/2020/
2020-03-09 11:38:24.895  WARN 80831 --- [           main] i.s.SpringLiquibase$SpringResourceOpener : Not a valid resource entry: jar:file:/CUT_PATH/db.jar!/db/changelog/2020/03/
2020-03-09 11:38:24.902  WARN 80831 --- [           main] i.s.SpringLiquibase$SpringResourceOpener : Not a valid resource entry: jar:file:/CUT_PATH/db.jar!/db/changelog/2020/03/08_1034.xml

The problem is reproduced only on JDK 13 - there is no problem on JDK 1.8

JDK 1.8:

2020-03-09 12:12:44.987  INFO 80889 --- [           main] l.lockservice.StandardLockService        : Successfully acquired change log lock
2020-03-09 12:12:47.979  INFO 80889 --- [           main] liquibase.changelog.DatabaseChangeLog    : Reading resource: db/changelog/2020/
2020-03-09 12:12:47.980  INFO 80889 --- [           main] liquibase.changelog.DatabaseChangeLog    : Reading resource: db/changelog/2020/03/
2020-03-09 12:12:47.980  INFO 80889 --- [           main] liquibase.changelog.DatabaseChangeLog    : Reading resource: db/changelog/2020/03/08_1034.xml

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
sskjamescommented, May 6, 2020

I faced a similar problem while running integration tests using Maven. I’m using Liquibase 3.8.8 and Java 11. Here is my configuration:

<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
    <includeAll path="classpath*:db/6.7.0"/>
    <includeAll path="classpath*:db/6.8.0"/>
    <includeAll path="classpath*:db/6.9.0"/>
    <includeAll path="classpath*:db/6.10.0"/>
    <includeAll path="classpath*:db/6.11.0"/>
    <includeAll path="classpath*:db/6.12.0"/>
</databaseChangeLog>
0reactions
BorzdeGcommented, Jul 17, 2020

Turn reproduce bug in Example - re-open ticket

Read more comments on GitHub >

github_iconTop Results From Across the Web

For the includeAll tag, "Not a valid resource entry" is written
If resources are added via includeAll, then we get an invalid resource error. If the file is specified explicitly, then it is processed...
Read more >
Liquibase scripts not being executed in Spring boot multi ...
At line 105, the path variable is split and becomes "config/liquibase/changelog/". · Fast forward to line 134, entry. · After line 134, returnPath ......
Read more >
includeAll | Liquibase Docs
The includeAll tag allows you to specify a directory that contains multiple changelog files. It is used within your root changelog file to...
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >
Managing Dynamic Groups - Oracle Help Center
If you want to dig deeper into writing policies for dynamic groups or other IAM components, see Details for IAM without Identity Domains....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found