You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Santhosh Kumar K (Jira)" <ji...@apache.org> on 2024/03/14 12:25:00 UTC

[jira] [Commented] (COMPRESS-671) Commons-compress 1.26.0 is failing to compress files/directories

    [ https://issues.apache.org/jira/browse/COMPRESS-671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827072#comment-17827072 ] 

Santhosh Kumar K commented on COMPRESS-671:
-------------------------------------------

We would like to know whats changed between 1.24.0 vs 1.26.0 as the same case works in previous version .

> Commons-compress 1.26.0  is failing to compress files/directories
> -----------------------------------------------------------------
>
>                 Key: COMPRESS-671
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-671
>             Project: Commons Compress
>          Issue Type: Bug
>            Reporter: Santhosh Kumar K
>            Priority: Major
>
> We are using commons-compress to compress files and with latest 1.26.0 we are getting the following exception where in it was working fine with 1.24.0
> {*}API being used:{*}ArchiveOutputStream jos = new ArchiveStreamFactory()
>                         .createArchiveOutputStream(ArchiveStreamFactory.ZIP, Files.newOutputStream(WrapperFactory.getNioServiceWrapper().getPath(jarName)));
> *Stack trace:*
> [Feb 28, 2024 5:42:32 PM] [INFO]    Stack Description: java.lang.RuntimeException: ApplySession failed but Oracle Home has not been modified.org/apache/commons/io/Charsets
>                                         at org.apache.commons.compress.archivers.zip.ZipEncodingHelper.getZipEncoding(ZipEncodingHelper.java:69)
>                                         at org.apache.commons.compress.archivers.zip.ZipEncodingHelper.<clinit>(ZipEncodingHelper.java:37)
>                                         at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.<init>(ZipArchiveOutputStream.java:331)
>                                         at org.apache.commons.compress.archivers.ArchiveStreamFactory.createArchiveOutputStream(ArchiveStreamFactory.java:516)
>                                         at org.apache.commons.compress.archivers.ArchiveStreamFactory.createArchiveOutputStream(ArchiveStreamFactory.java:498)
>                                         at oracle.opatch.ZipUtilities.compressZip(ZipUtilities.java:306)
>                                         at oracle.opatch.opatchactions.DeleteAction.backupForRollback(DeleteAction.java:1262)
>                                         at oracle.opatch.PatchObject.backupForRollback(PatchObject.java:5492)
>                                         at oracle.opatch.ApplySession.processLocal(ApplySession.java:4027)
>                                         at oracle.opatch.ApplySession.process(ApplySession.java:4989)
>                                         at oracle.opatch.ApplySession.process(ApplySession.java:4842)
>                                         at oracle.opatch.OPatchACL.processApply(OPatchACL.java:310)
>                                         at oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:1469)
>                                         at oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:373)
>                                         at oracle.opatch.opatchutil.NApply.process(NApply.java:353)
>                                         at oracle.opatch.opatchutil.OUSession.napply(OUSession.java:1139)
>                                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>                                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                                         at java.lang.reflect.Method.invoke(Method.java:498)
>                                         at oracle.opatch.UtilSession.process(UtilSession.java:355)
>                                         at oracle.opatch.OPatchSession.process(OPatchSession.java:2640)
>                                         at oracle.opatch.OPatch.process(OPatch.java:873)
>                                         at oracle.opatch.OPatch.main(OPatch.java:930)
>                                     Caused by: java.lang.RuntimeException: ApplySession failed but Oracle Home has not been modified.org/apache/commons/io/Charsets
>                                         ... 24 more
>                                     Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets
>                                         ... 24 more
>                                     Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.Charsets
>                                         at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
>                                         at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
>                                         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:359)
>                                         at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
>                                         ... 24 more
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)