axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eranda Sooriyabandara <eranda.sooriyaband...@gmail.com>
Subject [AXIS2-5320] org.apache.axis2.AxisFault: java.util.zip.ZipException: invalid entry size
Date Wed, 15 Jul 2015 02:54:31 GMT
Hi All,
I went through the exception and related code and found that the only
possibility of this issue to happen is corrupted .aar file.
Tried to reproduce the exact case by corrupting the .aar file and was able
to produce an exception which thrown in the same place in axis2 code
(org.apache.axis2.deployment.util.Utils.findLibJars) but the cause is bit
different.

Since the cause can be different with how it get corrupted, my opinion is
that we don't need to spend more on this because we narrow the issue down
to be a issue with the .aar file. If all the devs agreed we can close this
issue.

thanks
Eranda

[1]. https://issues.apache.org/jira/browse/AXIS2-5320
[2].

[WARN] Exception extracting jars into temporary directory :
java.util.zip.ZipException: invalid code lengths set : switching to
alternate class loading mechanism
[ERROR] The version.aar service, which is not valid, caused
java.util.zip.ZipException: invalid code lengths set
org.apache.axis2.AxisFault: java.util.zip.ZipException: invalid code
lengths set
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:124)
at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:142)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:144)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:164)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:136)
at
org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:147)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
at
org.apache.axis2.transport.SimpleAxis2Server.<init>(SimpleAxis2Server.java:48)
at
org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.java:98)
Caused by: java.lang.RuntimeException: java.util.zip.ZipException: invalid
code lengths set
at org.apache.axis2.deployment.util.Utils.findLibJars(Utils.java:773)
at org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:856)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:122)
... 12 more
Caused by: java.util.zip.ZipException: invalid code lengths set
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:193)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:139)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:117)
at org.apache.axis2.deployment.util.Utils.findLibJars(Utils.java:758)
... 14 more

-- 
*Eranda Sooriyabandara*
E-mail: eranda.sooriyabandara AT gmail.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/

Mime
View raw message