-
Notifications
You must be signed in to change notification settings - Fork 189
Description
platform: debian 13.3 "trixie", amd64, java 21.0.4, liquibase 4.33
I use the karaf BOM in my projects to align my dependencies with karaf's dependencies.
When bumping the karaf version in my pom from 4.4.8 to 4.4.9 got the below stack trace: applying a liquibase change list crashes inside a commons-io class way down in the stack trace.
The crash in the tests happened in this project: https://github.com/steinarb/sonar-collector
The reason for the stack trace is that org.apache.commons.io.input.BOMInputStream.read() in commons-io-2.21.0.jar finds org.apache.commons.io.IOUtils in pax-web-spi-8.0.34.jar instead of the same jar it itself resides in (i.e commons-io-2.21.0.jar) which was kind of weird.
Not sure what this means for the runtime, but I haven't seen this errors in my applictions, built with the karaf 4.4.8 BOM, running in karaf 4.4.9 and all using liquibase change sets.
Here is the stack trace:
java.lang.NoSuchMethodError: 'void org.apache.commons.io.IOUtils.checkFromIndexSize(byte[], int, int)'
at org.apache.commons.io.input.BOMInputStream.read(BOMInputStream.java:453)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:3065)
at java.xml/com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:303)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1699)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(XMLEntityScanner.java:1565)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(XMLEntityScanner.java:1603)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:158)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:861)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
at liquibase.parser.core.xml.XMLChangeLogSAXParser.parseToNode(XMLChangeLogSAXParser.java:130)
at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:15)
at liquibase.command.core.helpers.DatabaseChangelogCommandStep.lambda$getDatabaseChangeLog$0(DatabaseChangelogCommandStep.java:143)
at liquibase.Scope.lambda$child$0(Scope.java:216)
at liquibase.Scope.child(Scope.java:225)
at liquibase.Scope.child(Scope.java:215)
at liquibase.Scope.child(Scope.java:194)
at liquibase.Scope.child(Scope.java:282)
at liquibase.Scope.child(Scope.java:286)
at liquibase.command.core.helpers.DatabaseChangelogCommandStep.getDatabaseChangeLog(DatabaseChangelogCommandStep.java:138)
at liquibase.command.core.helpers.DatabaseChangelogCommandStep.run(DatabaseChangelogCommandStep.java:84)
at liquibase.command.CommandScope.lambda$execute$6(CommandScope.java:263)
at liquibase.Scope.child(Scope.java:225)
at liquibase.Scope.child(Scope.java:201)
at liquibase.command.CommandScope.execute(CommandScope.java:251)
at no.priv.bang.karaf.liquibase.runner.LiquibaseClassPathChangeLogRunner.lambda$applyLiquibaseChangelist$0(LiquibaseClassPathChangeLogRunner.java:56)
at liquibase.Scope.child(Scope.java:225)
at liquibase.Scope.child(Scope.java:201)
at no.priv.bang.karaf.liquibase.runner.LiquibaseClassPathChangeLogRunner.applyLiquibaseChangelist(LiquibaseClassPathChangeLogRunner.java:53)
at no.priv.bang.sonar.collector.webhook.SonarCollectorServlet.createSchemaWithLiquibase(SonarCollectorServlet.java:92)
at no.priv.bang.sonar.collector.webhook.SonarCollectorServlet.activate(SonarCollectorServlet.java:86)
at no.priv.bang.sonar.collector.webhook.SonarCollectorServletTest.testMeasuresView(SonarCollectorServletTest.java:265)