Santhosh Kumar K created COMMONSSITE-170:
--------------------------------------------

             Summary: Commons-compress 1.26.0  is failing to compress 
files\directories
                 Key: COMMONSSITE-170
                 URL: https://issues.apache.org/jira/browse/COMMONSSITE-170
             Project: Apache Commons All
          Issue Type: Bug
            Reporter: Santhosh Kumar K


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)

Reply via email to