[ 
https://issues.apache.org/jira/browse/AXIS2-5320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eranda Sooriyabandara updated AXIS2-5320:
-----------------------------------------
    Attachment: version.aar

As I have went through the code,  the reported issue only can be happen if and 
only if there is a issue with the zip file. Here I have created a corrupted 
jar, this wasn't threw the same exception but if you check the stacktrace you 
will see that both are thrown at the same location.

[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


> org.apache.axis2.AxisFault: java.util.zip.ZipException: invalid entry size 
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-5320
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5320
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.6.2
>         Environment: NSJSP7.0 and iTPwebserver 7.2
>            Reporter: Santhosh
>              Labels: axis21.6, zip
>             Fix For: 1.7.0
>
>         Attachments: version.aar
>
>   Original Estimate: 965h
>  Remaining Estimate: 965h
>
> org.apache.axis2.AxisFault: java.util.zip.ZipException: invalid entry size 
> (expected 9020 but got 9004 bytes)
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at 
> org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:117)
>         at 
> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:66)
>         at 
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>         at 
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
>         at 
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
>         at 
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:370)
>         at 
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>         at 
> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:364)
>         at 
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:73)
>         at 
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:94)
>         at 
> org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:93)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.lang.RuntimeException: java.util.zip.ZipException: invalid 
> entry size (expected 9020 but got 9004 bytes)
>         at org.apache.axis2.deployment.util.Utils.findLibJars(Utils.java:780)
>         at 
> org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:863)
>         at 
> org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:115)
>         ... 12 more
> Caused by: java.util.zip.ZipException: invalid entry size (expected 9020 but 
> got 9004 bytes)
>         at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:386)
>         at java.util.zip.ZipInputStream.read(ZipInputStream.java:156)
>         at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100)
>         at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:78)
>         at org.apache.axis2.deployment.util.Utils.findLibJars(Utils.java:765)
>         ... 14 more
> [INFO] org.apache.axis2.deployment.DeploymentException: 
> java.util.zip.ZipException: invalid entry size (expected 9020 but got 9004 
> bytes)
> [WARN] Exception extracting jars into temporary directory : 
> java.util.zip.ZipException: invalid entry size (expected 9020 but got 9004 
> bytes) : switching to alternate class loading mechanism
> [ERROR] The ppp_server_v2_0.aar service, which is not valid, caused 
> java.util.zip.ZipException: invalid entry size (expected 9020 but got 9004 
> bytes)
> org.apache.axis2.AxisFault: java.util.zip.ZipException: invalid entry size 
> (expected 9020 but got 9004 bytes)
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at 
> org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:117)
>         at 
> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:66)
>         at 
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>         at 
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
>         at 
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
>         at 
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:370)
>         at 
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>         at 
> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:364)
>         at 
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:73)
>         at 
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:94)
>         at 
> org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:93)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.lang.RuntimeException: java.util.zip.ZipException: invalid 
> entry size (expected 9020 but got 9004 bytes)
>         at org.apache.axis2.deployment.util.Utils.findLibJars(Utils.java:780)
>         at 
> org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:863)
>         at 
> org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:115)
>         ... 12 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to