[ https://issues.apache.org/jira/browse/COMPRESS-694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17923705#comment-17923705 ]
Gary D. Gregory edited comment on COMPRESS-694 at 2/4/25 1:39 PM: ------------------------------------------------------------------ [~bhiren] In the stack trace, I see: {noformat} Caused by: java.lang.NoSuchMethodError: 'void org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.putArchiveEntry(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)' at org.springframework.boot.gradle.tasks.bundling.BootZipCopyAction$Processor.processDirectory(BootZipCopyAction.java:260) {noformat} and in our sources, I see the matching method for the current version 1.27.1 which you list in this ticket as tested: [https://github.com/apache/commons-compress/blob/8de4d85b09a5d60e03191c0d362797de253a3516/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java#L1179] Can you show the classpath that is used by whatever launches this app stack? Maybe you have a old version of commons-compress that has snuck in on the classpath. You write: {quote} Dependancy use - implementation 'org.apache.commons:commons-compress:1.26.0' or implementation 'org.apache.commons:commons-compress:1.26.2' or implementation 'org.apache.commons:commons-compress:1.27.2' {quote} We've never published a version 1.27.2. was (Author: garydgregory): [~bhiren] In the stack trace, I see: {noformat} Caused by: java.lang.NoSuchMethodError: 'void org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.putArchiveEntry(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)' at org.springframework.boot.gradle.tasks.bundling.BootZipCopyAction$Processor.processDirectory(BootZipCopyAction.java:260) {noformat} and in our sources, I see the matching method for the current version 1.27.1 which you list in this ticket as tested: [https://github.com/apache/commons-compress/blob/8de4d85b09a5d60e03191c0d362797de253a3516/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java#L1179] Can you show the classpath that is used by whatever launches this app stack? Maybe you have a old version of commons-compress that has snuck in on the classpath. > java.lang.NoSuchMethodError: ZipArchiveOutputStream.putArchiveEntry > -------------------------------------------------------------------- > > Key: COMPRESS-694 > URL: https://issues.apache.org/jira/browse/COMPRESS-694 > Project: Commons Compress > Issue Type: Bug > Components: Build > Affects Versions: 1.21, 1.22, 1.25.0, 1.26.0, 1.26.1, 1.26.2, 1.27.1 > Environment: On local and server also > Reporter: Hiren Babariya > Priority: Major > Attachments: Screenshot 2025-02-04 at 4.30.21 PM.png, compress Error > bootjar.txt > > > while spring boot upgrade 3.1.7 to 3.3.51 , I am facing below issue while > building jar > Errors : > > Task :bootJar FAILED == FAILURE: Build failed with an exception. * What > > went wrong: Execution failed for task ':bootJar'. > 'void > > org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.putArchiveEntry(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)' > Caused by: java.lang.NoSuchMethodError: 'void > org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.putArchiveEntry(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)' > > Dependancy use - > implementation 'org.apache.commons:commons-compress:1.26.0' or > implementation 'org.apache.commons:commons-compress:1.26.2' or > implementation 'org.apache.commons:commons-compress:1.27.2' > 1.21 , 1.22 . 1.25.0 also same issue facing -- This message was sent by Atlassian Jira (v8.20.10#820010)