Corrupted Jar File Causes "java.util.zip.ZipException: invalid distance too far back"

(Doc ID 2342360.1)

Last updated on DECEMBER 25, 2017

Applies to:

Oracle WebLogic Server - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Symptoms

When starting the admin server, we saw the following errors however server starts but these errors still persists.

Dec 8, 2017, 11:39:10,724 AM WAT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application "owasp.esapi [LibSpecVersion=2.0,LibImplVersion=12.2.1]" due to error weblogic.application.library.LibraryDeploymentException: [J2EE:160141]Could not initialize the library Extension-Name: owasp.esapi, Specification-Version: 2, Implementation-Version: 12.2.1. Ensure that the deployment unit is a valid library type (WAR, EJB, EAR, plain JAR). weblogic.application.library.LibraryProcessingException: weblogic.application.metadatacache.MetadataCacheException: weblogic.application.AnnotationProcessingException: weblogic.utils.ErrorCollectionException:

There are 1 nested errors:

weblogic.application.AnnotationProcessingException: Failed to parse class file zip:/u01/app/oracle/product/fmwhome/oracle_common/modules/oracle.owasp/esapi-2.0GA.jar!/org/owasp/esapi/reference/validation/NumberValidationRule.class.

at weblogic.application.utils.annotation.ClassfinderClassInfos.getClassInfoFromSource(ClassfinderClassInfos.java:362)

at weblogic.application.utils.annotation.ClassfinderClassInfos.access$100(ClassfinderClassInfos.java:50)

at weblogic.application.utils.annotation.ClassfinderClassInfos$1.call(ClassfinderClassInfos.java:342)

at weblogic.application.utils.annotation.ClassfinderClassInfos$1.call(ClassfinderClassInfos.java:334)

at weblogic.application.utils.ParallelTaskManager$ParallelTask.run(ParallelTaskManager.java:247)

at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:666)

at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)

at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)

at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)

at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)

at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)

Caused by: java.util.zip.ZipException: invalid distance too far back

at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)

at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:480)

at weblogic.utils.io.DataIO.readFully(DataIO.java:351)

at weblogic.utils.io.DataIO.readFully(DataIO.java:328)

at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:88)

at weblogic.application.utils.annotation.ClassfinderClassInfos.getClassInfoFromSource(ClassfinderClassInfos.java:360)

... 12 more

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms