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.

Changelogs that worked with 3.10 are failing on 4.17

See original GitHub issue

Environment

Liquibase Version: 4.17

Liquibase Integration & Version: gradle

Liquibase Extension(s) & Version:

Database Vendor & Version: SQL Server

Operating System Type & Version: Mac

Infrastructure Type/Provider: local machine testing

Description

I am attempting to move from version 3.10 to 4.17 because 4.17 is supposed to fix the multithreading issue found here https://github.com/liquibase/liquibase/issues/2248

I changed my build.gradle to retrieve version 4.17. Rebuilt my code and ran. First time I got the error message below I thought it might be because I was still using the old dbchangelog-3.10.xsd so I tried the dbchangelog-latest.xsd and got the same message. I next tried to use the specific dbchangelog-4.17.xsd and still see the same message

We call Liquibase in Java code like this

            Database db = DatabaseFactory.getInstance().findCorrectDatabaseImplementation((new JdbcConnection(c)));
            Liquibase lb = new Liquibase(changelogPath, new ClassLoaderResourceAccessor(), db);
            lb.update(context);
            closeDatabase(lb);

I have attached our master.xml, V181Changelog.xml, and the SQL file listed in the error. These files worked perfectly in version 3.10 and have not changed, other than the dbchangelog-3.10.xsd to dbchangelog-4.17.xsd change.

The file structure is as follows ./master.xml ./version_181 (a directory) ./version_181/V181Changelog.xml ./version_181/DAYINT_11250_Add_Index_Idx_TAItinRow_ASK_IRK.sql

Error message received

liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: java.net.MalformedURLException: No !/ in spec 'file:/DAYINT_11250_Add_Index_Idx_TAItinRow_ASK_IRK.sql'
	at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:126)
	at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:329)
	at liquibase.Liquibase.lambda$update$1(Liquibase.java:257)
	at liquibase.Scope.lambda$child$0(Scope.java:180)
	at liquibase.Scope.child(Scope.java:189)
	at liquibase.Scope.child(Scope.java:179)
	at liquibase.Scope.child(Scope.java:158)
	at liquibase.Liquibase.runInScope(Liquibase.java:2447)
	at liquibase.Liquibase.update(Liquibase.java:236)
	at liquibase.Liquibase.update(Liquibase.java:221)
	at liquibase.Liquibase.update(Liquibase.java:207)
	at liquibase.Liquibase.update(Liquibase.java:197)
	at com.concur.reportdbservice.manager.ReportingSchemaMgr.update(ReportingSchemaMgr.java:69)
	at com.concur.reportdbservice.service.ReportingSchemaService.updateDatabase(ReportingSchemaService.java:56)
	at com.concur.reportdbservice.service.MigTaskService.entityMigrate(MigTaskService.java:51)
	at com.concur.reportdbservice.thread.MigMigrateJob.executeJob(MigMigrateJob.java:27)
	at com.concur.reportdbservice.thread.Job.run(Job.java:46)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: liquibase.exception.UnexpectedLiquibaseException: java.net.MalformedURLException: No !/ in spec 'file:/DAYINT_11250_Add_Index_Idx_TAItinRow_ASK_IRK.sql'
	at liquibase.change.AbstractSQLChange.generateCheckSum(AbstractSQLChange.java:204)
	at liquibase.changelog.ChangeSet.generateCheckSum(ChangeSet.java:314)
	at liquibase.changelog.ChangeSet.toString(ChangeSet.java:1036)
	at liquibase.changelog.ChangeLogIterator.createKey(ChangeLogIterator.java:181)
	at liquibase.changelog.ChangeLogIterator.alreadySaw(ChangeLogIterator.java:189)
	at liquibase.changelog.ChangeLogIterator$2.lambda$run$1(ChangeLogIterator.java:94)
	at liquibase.Scope.lambda$child$0(Scope.java:180)
	at liquibase.Scope.child(Scope.java:189)
	at liquibase.Scope.child(Scope.java:179)
	at liquibase.Scope.child(Scope.java:158)
	at liquibase.Scope.child(Scope.java:243)
	at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:93)
	at liquibase.Scope.lambda$child$0(Scope.java:180)
	at liquibase.Scope.child(Scope.java:189)
	at liquibase.Scope.child(Scope.java:179)
	at liquibase.Scope.child(Scope.java:158)
	at liquibase.Scope.child(Scope.java:243)
	at liquibase.Scope.child(Scope.java:247)
	at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:65)
	... 21 more
Caused by: java.net.MalformedURLException: No !/ in spec 'file:/DAYINT_11250_Add_Index_Idx_TAItinRow_ASK_IRK.sql'
	at java.base/java.net.URL.<init>(URL.java:679)
	at java.base/java.net.URL.fromURI(URL.java:719)
	at java.base/java.net.URI.toURL(URI.java:1116)
	at liquibase.resource.URIResource.openInputStream(URIResource.java:33)
	at liquibase.change.core.SQLFileChange.openSqlStream(SQLFileChange.java:120)
	at liquibase.change.AbstractSQLChange.generateCheckSum(AbstractSQLChange.java:190)
	... 39 more
Caused by: java.lang.IllegalArgumentException: No !/ in spec 'file:/DAYINT_11250_Add_Index_Idx_TAItinRow_ASK_IRK.sql'
	at org.springframework.boot.loader.jar.Handler.getFileFromSpec(Handler.java:235)
	at org.springframework.boot.loader.jar.Handler.parseURL(Handler.java:225)
	at java.base/java.net.URL.<init>(URL.java:674)
	... 44 more

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MarkTJohnsoncommented, Nov 14, 2022

In my testing it has worked, we just haven’t played the story to implement it production yet.

From: FBurguer @.> Reply-To: liquibase/liquibase @.> Date: Friday, November 11, 2022 at 9:32 AM To: liquibase/liquibase @.> Cc: “Johnson, MarkTravis” @.>, Mention @.***> Subject: Re: [liquibase/liquibase] Changelogs that worked with 3.10 are failing on 4.17 (Issue #3365)

@MarkTJohnsonhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMarkTJohnson&data=05|01|MarkTravis.Johnson%40Concur.com|ee398efde64e46a6f54008dac3f18c4c|42f7676cf455423c82f6dc2d99791af7|0|0|638037739473102889|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=03rXmKPtNU1efjrSOeq75uc3t9kFbOp5E7RccFilHcU%3D&reserved=0 Hi! did the new liquibase version solved your issue?

— Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fliquibase%2Fliquibase%2Fissues%2F3365%23issuecomment-1311766372&data=05|01|MarkTravis.Johnson%40Concur.com|ee398efde64e46a6f54008dac3f18c4c|42f7676cf455423c82f6dc2d99791af7|0|0|638037739473102889|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=Qe1ah5A4I1GQK4qyeY3ZNuXLon3zKDTmxYi7ulWE%2BCM%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA673ANGQFDGTNUAXWF5VOTWHZKHNANCNFSM6AAAAAARDTFKL4&data=05|01|MarkTravis.Johnson%40Concur.com|ee398efde64e46a6f54008dac3f18c4c|42f7676cf455423c82f6dc2d99791af7|0|0|638037739473102889|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=XzqVpkpUtZK%2FS7zIQFFxHGSgTQi55trBQyX3maOT%2Boc%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

0reactions
FBurguercommented, Nov 11, 2022

@MarkTJohnson Hi! did the new liquibase version solved your issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes | Liquibase Docs
This release includes community-contributed pull requests, Liquibase Open Source and Liquibase Pro bug fixes, and support for Working with Quality Checks .
Read more >
Release Notes — Airflow Documentation
ExternalTaskSensor no longer hangs indefinitely when failed_states is set, an execute_date_fn is used, and some but not all of the dependent tasks fail....
Read more >
Version 3.10.2 - Divi Changelog
Version 3.10.2. by Jamie Dąbrowiecki | 23rd July 2018. – Fixed a jQuery error that occurred in the VB when various third party...
Read more >
1897148 – m2crypto fails to build with Python 3.10
The changes to m2_PyObject_AsReadBuffer should be good for any Python. Raising TypeError rather than trying PyObject_AsReadBuffer is OK on Python 3: up to...
Read more >
Elastic Beanstalk supported platforms - AWS Documentation
js version fails. To avoid needing to create a new environment: Amazon Linux 2 – change the Node.js version setting in package.json ...
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