You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apache poi-ooxml throws NoSuchMethodExceptions at runtime because an older version of commons-io is used than required. I believe this to be related to and/or caused by #30542 and/or #30723
Expected behavior
commons-io 2.16.1 being downloaded by maven and used
Actual behavior
commons-io 2.15.1 is being downloaded despite the only package requiring it wanting 2.16.1, leading to following Exception
(some class names and packages have been anonymized)
2024-08-13 10:22:10,698 ERROR [org.jbo.thr.errors] (executor-thread-3) Thread Thread[executor-thread-3,5,main] threw an uncaught exception: java.lang.NoSuchMethodError: 'org.apache.commons.io.input.BoundedInputStream$Builder org.apache.commons.io.input.BoundedInputStream.builder()'
at org.apache.poi.util.IOUtils.peekFirstNBytes(IOUtils.java:145)
at org.apache.poi.poifs.filesystem.FileMagic.valueOf(FileMagic.java:209)
at org.apache.poi.openxml4j.opc.internal.ZipHelper.verifyZipHeader(ZipHelper.java:145)
at org.apache.poi.openxml4j.opc.internal.ZipHelper.openZipFile(ZipHelper.java:217)
at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:188)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:285)
at foo.bar.businessLogic.transferToCSV(BusinessClass.java:217)
at foo.bar.businessLogic.startThread(BusinessClass.java:122)
at foo.bar.businessLogic_ClientProxy.startThread(Unknown Source)
at foo.bar.rest.TriggerService.lambda$doBusinessLogic$0(TriggerService.java:87)
at io.smallrye.context.impl.wrappers.SlowContextualRunnable.run(SlowContextualRunnable.java:19)
at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:582)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1512)
at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Unknown Source)
How to Reproduce?
Will add later
Output of uname -a or ver
Microsoft Windows [Version 10.0.22631.3880]
Output of java -version
openjdk version "21.0.4" 2024-07-16 LTS
Quarkus version or git rev
3.8.5
Build tool (ie. output of mvnw --version or gradlew --version)
That's what the Quarkus BOM does: align the dependencies to what has been vetted for Quarkus to behave properly. Most of the time, it's for your benefit, and sometimes it doesn't align with what external dependencies might expect.
You will have to override the version in the POM of your app if you want to enforce a newer version.
Describe the bug
Apache poi-ooxml throws NoSuchMethodExceptions at runtime because an older version of commons-io is used than required. I believe this to be related to and/or caused by #30542 and/or #30723
Expected behavior
commons-io 2.16.1 being downloaded by maven and used
Actual behavior
commons-io 2.15.1 is being downloaded despite the only package requiring it wanting 2.16.1, leading to following Exception
(some class names and packages have been anonymized)
How to Reproduce?
Will add later
Output of
uname -a
orver
Microsoft Windows [Version 10.0.22631.3880]
Output of
java -version
openjdk version "21.0.4" 2024-07-16 LTS
Quarkus version or git rev
3.8.5
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.7 (8b094c9513efc1b9ce2d952b3b9c8eaedaf8cbf0)
Additional information
https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml/5.3.0
The text was updated successfully, but these errors were encountered: