Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4682202

deployment of ecperf.ear fails on linux

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 7.0se, 5.0u7, 7
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_8, windows_xp

      Description

      the ecperf.ear deployment fails on linux with the following error:


      java.util.zip.ZipException: invalid entry compressed size (expected 26301 but got 25793 bytes)
        at java.util.zi.ZipOutputStream.closeEntry(ZipOutputStream.java:193)
        at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:289)
        at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:134)
        at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:310)
        at com.iplanet.ias.deployment.ClientJarArchivist.createClientJar(ClientJarArchivist.java:63)
        at com.iplanet.ias.deployment.backend.AppDeployer.createClientJar(AppDeployer.java:287)
        at com.iplanet.ias.deployment.backend.AppDeployer.deployOrReDeployApp(AppDeployer.java:247)
        at com.iplanet.ias.deployment.backend.AppDeployer.doRequest(AppDeployer.java:64)
        at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployJ2EEApplication(ManagedServerInstance.java:341)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.iplanet.ias.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:188)
        at com.iplanet.ias.admin.server.core.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:179)
        at com.iplanet.ias.admin.server.core.servlet.AdminAPIEntryServlet.callInvoke(AdminAPIEntryServlet.java:172)
        at com.iplanet.ias.admin.server.core.servlet.AdminAPIEntryServlet.callMBean(AdminAPIEntryServlet.java:130)
        at com.iplanet.ias.admin.server.core.servlet.AdminAPIEntryServlet.doGet(AdminAPIEntryServlet.java:84)
        at com.iplanet.ias.admin.server.core.servlet.AdminAPIEntryServlet.doPost(AdminAPIEntryServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:577)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:478)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:577)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:478)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:577)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:575)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:575)
        at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:575)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:478)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:93)
        at com.iplanet.ias.web.WebContainer.service(WebContainer.java:455)
       com.iplanet.ias.deployment.backend.IASDeploymentException: Deployment Failed -- rolled back deployment -- invalid entry compressed size (expected 26301 but got 25793 bytes)
        at com.iplanet.ias.deployment.backend.AppDeployer.deployOrReDeployApp(AppDeployer.java:264)
        at com.iplanet.ias.deployment.backend.AppDeployer.doRequest(AppDeployer.java:64)
        at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployJ2EEApplication(ManagedServerInstance.java:341)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.iplanet.ias.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:188)
        at com.iplanet.ias.admin.server.core.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:179)
        at com.iplanet.ias.admin.server.core.servlet.AdminAPIEntryServlet.callInvoke(AdminAPIEntryServlet.java:172)
        at com.iplanet.ias.admin.server.core.servlet.AdminAPIEntryServlet.callMBean(AdminAPIEntryServlet.java:130)
        at com.iplanet.ias.admin.server.core.servlet.AdminAPIEntryServlet.doGet(AdminAPIEntryServlet.java:84)
        at com.iplanet.ias.admin.server.core.servlet.AdminAPIEntryServlet.doPost(AdminAPIEntryServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:577)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:478)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:577)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:478)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:577)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:575)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:575)
        at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:575)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:478)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:93)
        at com.iplanet.ias.web.WebContainer.service(WebContainer.java:455)
       Caused by: java.util.zip.ZipException: invalid entry compressed size (expected 26301 but got 25793 bytes)
        at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:193)
        at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:289)
        at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:134)
        at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:310)
        at com.iplanet.ias.deployment.ClientJarArchivist.createClientJar(ClientJarArchivist.java:63)
        at com.iplanet.ias.deployment.backend.AppDeployer.createClientJar(AppDeployer.java:287)
        at com.iplanet.ias.deployment.backend.AppDeployer.deployOrReDeployApp(AppDeployer.java:247)



      -----


      Upon debugging the code, we found the problem to originate from ClientJarArchivist.java during creation of the clientjar file.

      Essentially the ClientJarArchivist copies all the .class entries from individual jar files and packages them into one Clientjar file. This problem is seen only when using ecperf.ear. We have tried deploying DukesBankApplication.ear and that deploys properly along with creation of the stubs and client jar file.

      The following are some of the combinations we have tried:
      1. use a new JDK (1.4.0_01) - same error
      2. Deploy DukesBank - no error
      3. Deploy different version of ecperf.ear - same error (the expected and returned bytes are different)
      4. increase file descriptors to 30000 and limits to umlimited - same error
      5. Have Server1 instance running - no change to the error

      However the same ecperf deploys on RI with JDK 1.4 - no error
      Also, when ClientJarArchivist.java is passed two files and called directly instead of from the appserver, it works with ecperf.ear!! This leads us to deduce that the iAs code isn't a problem but there is some peoblem that occured when ClientJarArchivist is called when appserver is executing.. maybe a JVM problem or a resource crunch is causing this?? it would be helpful if someone has a look at this.

      Thu Jun 13 04:02:17 MDT 2002 sm119578

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sherman Xueming Shen
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: