Error opening .zip files in EP

hello to all, my problem is the following one:
I have an url iview, this one points at a flash file witch opens a .zip file. When I preview the iview  I'm able to download the .zip file without problems BUT when I assign this role to my user, the .zip file download popup doesn't open (it appears and sudenly dissapears).
Any idea?
thank you.

Hi,
     Check if it is browser popup problem (You will get one popup bar blocked). If not, check the logs for any useful hint.
Regards,
Harini S

Similar Messages

  • Error opening zip file:ZipException

    Hi,
        I am getting the Log Error in NWA while running the Web Dynpro Java application..The Error is,
    java.util.zip.ZipException: Error opening zip file /usr/sap/EPD/JC00/j2ee/cluster/server0/./log/archive/_log_system_logging.log1233875882599.zip
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:140)
    at java.util.zip.ZipFile.<init>(ZipFile.java:155)
    at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchiveInfo(AbstractLog.java:328)
    at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchives(AbstractLog.java:454)
    at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchives(AbstractLog.java:477)
    at sun.reflect.GeneratedMethodAccessor357.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62)
    at java.lang.reflect.Method.invoke(Method.java:391)
    Can any one explian me why this error occurs.And How to Rectify this error.Please suggests the solution for this problem.
    Thanks & Regards,
    SatheshKumar R

    The archive file is empty that why this exception is coming, Find and remove the empty archive file.
    OR
    To solve the issue you have to close the previously opened streams in your application, when you don't need anymore
    hope it will  hlep you.
    Thanks

  • Error in opening zip file after Patch 4 HF6 install

    Hello,
    Just upgraded to EP 6 SP 2 Patch 4 HF 6 on a Windows 2000/MSSQL instance.  In the cluster\server\managers\console_logs the error.log now contains the following;
    error during parse of jar file D:\usr\sap\XXXA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.runtime.admin.LoggingConsole\private\lib\com.sap.portal.runtime.admin.LoggingConsolecore.jar
    java.util.zip.ZipException: error in opening zip file.
    I also receive this error message for several other .jar files we've deployed.
    Any ideas what steps need to be taken to correct this message?
    Regards,
    John

    Here is a list of our .zip errors we see.  Two of these files are not 0-byte in length, they have been identified by a size at the end of the file.
    Also, I am checking on the LoggingConsole.  I'll post something when I have an answer.
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.LoggingConsole\lib\com.kcc.yy.kc.LoggingConsoleapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.LoggingConsole\private\lib\com.kcc.yy.kc.LoggingConsolecore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.pct.crm.kcdam.crmkmconvkc\lib\com.sap.pct.crm.kcdam.crmkmconvkcapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.pct.crm.kcdam.crmkmconvkc\private\lib\com.sap.pct.crm.kcdam.crmkmconvkccore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.pct.crm.kcdam.crmdamkc\lib\com.sap.pct.crm.kcdam.crmdamkcapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.pct.crm.kcdam.crmdamkc\private\lib\com.sap.pct.crm.kcdam.crmdamkccore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.runtime.admin.LoggingConsole\lib\com.sap.portal.runtime.admin.LoggingConsoleapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.runtime.admin.LoggingConsole\private\lib\com.sap.portal.runtime.admin.LoggingConsolecore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    Portal initialization done.
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.PortalMonitor\private\lib\com.kcc.yy.kc.PortalMonitorcore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKCDesk.MastHead\lib\com.kcc.yy.kc.atKCDesk.MastHeadapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKCDesk.MastHead\exlib\com.kcc.yy.kc.atKC.MastHeadapi.jar - 1kb
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKCDesk.MastHead\exlib\com.sap.portal.navigation.mastheadapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKCDesk.MastHead\private\lib\com.kcc.yy.kc.atKCDesk.MastHeadcore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKCDesk.MastHead\private\exlib\com.kcc.yy.kc.atKC.MastHeadcore.jar - 5kb
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKCDesk.ToolArea\lib\com.kcc.yy.kc.atKCDesk.ToolAreaapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKCDesk.ToolArea\private\lib\com.kcc.yy.kc.atKCDesk.ToolAreacore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKC.pagesensitivity\lib\com.kcc.yy.kc.atKC.pagesensitivityapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKC.pagesensitivity\private\lib\com.kcc.yy.kc.atKC.pagesensitivitycore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKC.layouts\lib\com.kcc.yy.kc.atKC.layoutsapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKC.layouts\private\lib\com.kcc.yy.kc.atKC.layoutscore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.mk.kc.bb\private\lib\com.kcc.mk.kc.bbcore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    [email protected]5c #
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKC.Logon\lib\com.kcc.yy.kc.atKC.Logonapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.atKC.Logon\private\lib\com.kcc.yy.kc.atKC.Logoncore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.kcc.yy.kc.systemviewer\private\lib\com.kcc.yy.kc.systemviewercore.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
    [email protected]3e #
    error during parse of jar file D:\usr\sap\DGPA\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.pct.crm.debug.SOAPTest\lib\Jcatestapi.jar
    java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)

  • Error in opening zip file

    i'm trying to download a zip file through my java program and extract a .dbf file from the downloaded file.
    i'm getting java.util.zip.ZipException: error in opening zip file at:
    ZipFile zf=new ZipFile("c:\\tomcat\\webapps\\project\\PR.zip");
    can anyone tell me what the problem is?
    ========================================================================
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import java.util.*;
    import java.util.zip.*;
    public class BhavMod
    public static void main(String arr[])
    System.out.println("Downloading file PR.ZIP from location http://nseindia.com/content/equities/PR.zip...");
         try
              URL u = new URL("http://nseindia.com/content/equities/PR.zip");
              InputStream ip = u.openStream();
              int af;
              byte b[] = new byte[256];
         File fp = new File("c:\\tomcat\\webapps\\project\\PR.zip");
              FileOutputStream fos = new FileOutputStream(fp);
              af=1;
              for(int i=0;af>0;i++)
                   af=ip.read(b);
                   if(af>0) {
                        fos.write(b);     
                        System.out.print(".");
              ip.close();
              fos.close();
    System.out.println("\n\nDownloaded file PR.Zip to location c:\\tomcat\\webapps\\project\\PR.zip");
    catch(Exception e3)
    System.out.println("<b>DOWNLOAD FAILED.</b><BR>");
    System.out.println(e3);
         try{
              System.out.println("entered");
         ZipFile zf=new ZipFile("c:\\tomcat\\webapps\\project\\PR.zip");
              System.out.println("opened");
         Enumeration e=zf.entries();
         System.out.println("connected"+zf.size());
         ZipEntry a=new ZipEntry("dbasefile");
         while(e.hasMoreElements())
              a=(ZipEntry)e.nextElement();
         if(a.getName().startsWith("pr"))
         InputStream is=zf.getInputStream(a);
         int nw;
         File f=new File("c:\\tomcat\\webapps\\project\\bhav.dbf");
         FileOutputStream os=new FileOutputStream(f);
         while(is.available()>0)
         nw=is.read();
         os.write(nw);
    System.out.println(a);
              zf.close();
    }catch(Exception e2)
    System.out.println(e2);
    try{
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              String DBUrl = "jdbc:mysql:///portdb";
              Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection cn=DriverManager.getConnection("jdbc:odbc:dbf");
    Statement st=cn.createStatement();
    ResultSet rs=st.executeQuery("select * from bhav WHERE MKT='Y' OR MKT='y' OR MKT='N' or MKT='n'");
    String str=new String();
    Connection cndb=DriverManager.getConnection(DBUrl);
              System.out.println("Connected!!!");
    Statement stdb=cndb.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    int rsdb=stdb.executeUpdate("delete from script");
    System.out.println("UPDATED RATES...\n\nScript-----------------------------------Price");
    while(rs.next())
    str=rs.getString("SECURITY");
    str=str.replace('\'','_');
              str=str.trim();
    str=str.replace(' ','_');
              // to remove blank spaces from script id
              String s1=new String(str);
              StringBuffer s2=new StringBuffer(s1);
              int f;
              while((s1.indexOf(' '))!=-1)
                   f=s1.indexOf(' ');
                   s2=new StringBuffer(s1);
                   s2=s2.deleteCharAt(f);
                   s1=s2.toString();                         
    // so now insert s1 as script id and str as script name....
    float price=rs.getFloat("CLOSE_PRIC");
    rsdb=stdb.executeUpdate("insert into script values ('"+s1+"','"+str+"','N',"+price+",now())");
    System.out.println(str+"\t\t\t\t\t"+price);
         catch(Exception eupd)
              System.out.println("UPDATION FAILED."+eupd);
    =======================================================================
    Output:
    Downloading file PR.ZIP from location http://nseindia.com/content/equities/PR.zip...
    Downloaded file PR.Zip to location c:\tomcat\webapps\project\PR.zip
    entered
    java.util.zip.ZipException: error in opening zip file
    Connected!!!
    UPDATED RATES...
    Script-----------------------------------Price
    S&P_CNX_Nifty                         1017.1
    CNX_Nifty_Junior                         1336.75
    S&P_CNX_Defty                         739.9
    S&P_CNX_500                         729.75
    CNX_Midcap_200                         708.8
    ASEA_BROWN_BOVERI_LTD                         302.3
    ASSOCIATED_CEMENT_CO_LTD                         144.9
    BAJAJ_AUTO_LTD                         499.0
    BHEL                         206.55
    BHARAT_PETROLEUM_CORP__LT                         215.1

    the file is at its location....... not password protected.... and i've thought of all the "half-a-dozen things" u haven't thought of...
    thanks anyway for taking the pain to reply.
    u needn't have replied if it was bugging u so.
    Maybe the zip file isn't at that location. Maybe it
    didn't get completely downloaded. Maybe downloading it
    puts permissions on it that don't allow you to open
    it. Maybe it's password-protected. Maybe half-a-dozen
    things I haven't thought of yet. Did you check any of
    those obvious things? Can you open the file yourself
    with a zip utility?

  • Java.util.zip.ZipException error in opening zip file

    Hello all,
    We are using Sun Java System web server 6.1 SP2. When I tried to deploy an application, I received this message: "Posted content length of --- exceeds limit of --- " the -dashes are the size of the file actually.
    I then added an init-param to the web.xml specifying the maximum size.
    After doing that, I tried to deploy the war file using administration interface, but received a network tcp/ip error. I then deployed it using command line wdeploy command. It worked but the web server won't start up after the deployment. The following error messages are found in the log file. Any thoughts as to whats wrong here? Is there a bug in SP2?
    [22/Sep/2006:17:30:44] finer ( 5668): ContextConfig[search]: URI='/search', ResourcePath='/WEB-INF/sun-web-search.tld' [22/Sep/2006:17:30:44] finer ( 5668): ContextConfig[search]:
    tldConfigJar(/WEB-INF/sun-web-search.tld): java.util.zip.ZipException: error in opening zip file
    [22/Sep/2006:17:30:44] finer ( 5668): ContextConfig[search]: URI='/jstl-fmt', ResourcePath='/WEB-INF/fmt.tld' [22/Sep/2006:17:30:44] finer ( 5668): ContextConfig[search]: tldConfigJar(/WEB-INF/fmt.tld): java.util.zip.ZipException: error in opening zip file
    [22/Sep/2006:17:30:48] failure ( 5668): CORE4007: Internal error: Unexpected Java exception thrown (java.lang.NoClassDefFoundError: org/xml/sax/ext/Attributes2, org/xml/sax/ext/Attributes2), stack: java.lang.NoClassDefFoundError: org/xml/sax/ext/Attributes2 at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1717) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:983) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1431) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1301) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at org.apache.xerces.parsers.AbstractSAXParser.<init>(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:274) at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:882) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1004) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:257) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3752) at com.iplanet.ias.web.WebModule.start(WebModule.java:257) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:652) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355) at org.apache.catalina.startup.Embedded.start(Embedded.java:995) at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431) at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500) at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161) [22/Sep/2006:17:30:48] failure ( 5668): CORE3186: Failed to set configuration

    ooks like you are running into bug: 4719677
    When you deploy a web application using the Administration Server from a
    remote machine, the maximum upload size by default is 10 MB. This can be
    changed by editing the
    install-root/bin/https/webapps/instance-app/WEB-INF/web.xml file. In the
    servlet webappdeploy, insert an init param named maxUploadSize with a
    value in bytes specifying the maximum upload size. Example:
    <init-param>
    <param-name>maxUploadSize</param-name>
    <param-value>90000000</param-value>
    </init-param>

  • Java.util.zip.ZipException: error in opening zip file Deploment Error

    Hi All,
    I am getting the fallowing Deployment exception while i am trying to deploy my webdynpro DC. Kindly help me if anybody know the solution for it.
    deployment aborted : file:/C:/DOCUME1/291123/LOCALS1/Temp/temp7081pg.comiprscipr~dc_intreg_process.ear
    Aborted: development component 'ipr/scipr/dc_intreg_process'/'pg.com'/'GGD_EPREGDEV_D'/'20101220152524'/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error while getting the internal libraries of application pg.com/iprsciprdc_intreg_process in operation update.. Reason: error in opening zip file; nested exception is:      java.util.zip.ZipException: error in opening zip file (message ID: com.sap.sdm.serverext.servertype.i
    Thanks,
    Mahesh Nuli.

    Hello Ram,
    It is saying that the library file is missing. Can you deploy pg.com/iprsciprdc_intreg_process  first and try to deploy this ear temp7081pg.comiprscipr~dc_intreg_process.ear.
    Regards
    Nizamudeen SM

  • ZipException : error in opening zip file

    Hello,
    I need to create a zip file using Java. I have to zip content from a directory (sub-folders included). So I'm using a recursive method.
    In fact my zip file is well created, when I open it with winrar, winzip, everything is ok, same thing with a bash on linux (unzip).
    My problem is that I have to open the created zip file in Java. When I do it, i get an exception:
    java.util.zip.ZipException: error in opening zip file
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.<init>(ZipFile.java:203)
            at java.util.zip.ZipFile.<init>(ZipFile.java:234)
            ...This is my method:
    public void zipContent()
           ZipOutputStream zipout;
            try
                zipout = new ZipOutputStream("destination zip file");
                zipDir("main source directory", zipout, "");
                zipout.close();
            catch (FileNotFoundException e)
                e.printStackTrace();
            catch (IOException e)
                e.printStackTrace();
        private void zipDir(String source, ZipOutputStream zipout, String relativeDir) throws IOException
            File zipDir = new File(source);
            String[] dirList = zipDir.list();
            byte[] readBuffer = new byte[2156];
            int bytesIn = 0;
            // Loop through dirList, and zip the files.
            for (int i = 0; i < dirList.length; i++)
                File f = new File(zipDir, dirList);
    if (f.isDirectory())
    // If the File object is a directory, call this
    // function again to add its content recursively.
    String filePath = f.getPath();
    String name = f.getName();
    if (!name.endsWith("/")) name += "/";
    zipEntries.put(name, name);
    if (relativeDir.equals(""))
    ZipEntry anEntry;
    anEntry = new ZipEntry(name);
    zipout.putNextEntry(anEntry);
    zipout.closeEntry();
    zipDir(filePath, zipout, name);
    else
    ZipEntry anEntry;
    if (!relativeDir.endsWith("/"))
    relativeDir += "/";
    anEntry = new ZipEntry(relativeDir + name);
    zipout.putNextEntry(anEntry);
    zipDir(filePath, zipout, relativeDir + name);
    // Loop again.s
    continue;
    // Create a FileInputStream on top of f.
    FileInputStream fis = new FileInputStream(f);
    ZipEntry anEntry;
    if ((!relativeDir.endsWith("/")) && (!relativeDir.equals("")))
    relativeDir += "/";
    if (!relativeDir.equals(""))
    anEntry = new ZipEntry(relativeDir + f.getName());
    else
    anEntry = new ZipEntry(f.getName());
    // Place the zip entry in the ZipOutputStream object.
    zipout.putNextEntry(anEntry);
    zipEntries.put(anEntry.getName(), anEntry.getName());
    // Now write the content of the file to the ZipOutputStream.
    while ((bytesIn = fis.read(readBuffer)) != -1)
    zipout.write(readBuffer, 0, bytesIn);
    // Close the Stream.
    zipout.closeEntry();
    fis.close();
    This the code I use to unzip:
            try
                ZipFile zip = new ZipFile(zipFile);
                Enumeration zipEnum = zip.entries();
                zipEnum = zip.entries();
                while (zipEnum.hasMoreElements())
                    ZipEntry item = (ZipEntry) zipEnum.nextElement();
                    // Directory case.
                    if (item.isDirectory())
                        File newdir = new File(unzippedFilesDir + "/" + item.getName());
                        newdir.mkdir();
                    // File case.
                    else
                        String newfile = unzippedFilesDir + "/" + item.getName();
                        InputStream is = zip.getInputStream(item);
                        FileOutputStream fos = new FileOutputStream(newfile);
                        int ch;
                        while ((ch = is.read()) != -1)
                            fos.write(ch);
                        is.close();
                        fos.close();
                zip.close();
            catch (Exception e)
                System.out.println(e);
                e.printStackTrace();
            }The exception is thrown on the line:
    ZipFile zip = new ZipFile(zipFile);Do you see something weird in my code..?
    I'm working on this problem for several days, and I'm losing hope...
    Thanks,
    Phil

    This looks wierd:
    ZipFile zip = new ZipFile(zipFile);
    Enumeration zipEnum = zip.entries();
    zipEnum = zip.entries();

  • Weblogic EAR deployment - "error in opening zip file"

    Dear All,
    we build EAR using MAVEN 3.0.4 on Unix and are trying to deploy the application. The weblogic version is 10.3.4.
    We get the following error.
    <Mar 12, 2012 5:31:41 PM CET> <Error> <HTTP> <BEA-101220> <Error occurred while setting document root for "ServletContext@1306153[app:sma-1 module:afis/sma path:/afis/sma spec-version:2.5]" to "/AFIS_DOMAIN/AFIS/servers/production/tmp/_WL_user/sma-1/bmzpi3/sma.web-1.1.0.war".>
    <Mar 12, 2012 5:31:42 PM CET> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1331569832008' for task '13'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'afis/sma''
    weblogic.application.ModuleException: Failed to load webapp: 'afis/sma'
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    Truncated. see log file for complete stacktrace
    Caused By: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:114)
    at java.util.zip.ZipFile.<init>(ZipFile.java:131)
    at weblogic.utils.classloaders.ZipClassFinder.<init>(ZipClassFinder.java:23)
    at weblogic.servlet.internal.ArchivedWar$WebInfClassesFinder.<init>(ArchivedWar.java:298)
    Truncated. see log file for complete stacktrace
    >
    Obviously, the WAR file cannot be opened by Weblogic, but why and how to solve it ... have no clue. We went through almost everything in Internet, regarding this issue, but we couldn't find a solution.
    Every idea or suggestion is more than welcome because I'm running out of ideas :(

    Did you perhaps do something like FTP the EAR file to the RedHat box in text mode or something? Can you check that the file size of the file on RedHat is the same as it was on Windows?

  • Webb Exception - java.util.zip.ZipException: error in opening zip file

              I am tring to run my Servlet with myWAR.war. So I started first installing the CookieCounter example that came with weblogic, I did exactly as the document said but I getting the following exception:
              Thu Jan 04 11:26:45 MST 2001:<E> <HTTP> Error reading Web application '/weblogic/myserver/cookieWar.war'
              java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:69)
              at weblogic.utils.jar.JarFile.<init>(JarFile.java:57)
              at weblogic.utils.jar.JarFile.<init>(JarFile.java:44)
              at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:582)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java, Compiled Code)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
              at java.lang.Thread.run(Thread.java:479)
              Has anybody encountered the problem before I created the jar using jar cvf cookieWar.war cookie- under the command line
              

    I have seen problems like this in the past. When you create your war file, try using "jar
              cv0f" so that the jar file won't be compressed...
              mark bouchard wrote:
              > I am having this same error... the strange thing is i have two different ear files...
              > one of them works, the other doesn't. there are NO differences between them according
              > to Araxis Merge... both will deploy, and both show servlets as being registered,
              > but i can only call the servlets from one...
              >
              > what is BEA's suggested way of creating an ear file? on NT and on UNIX please....
              >
              > use the java.util.zip methods? or use a utility like jar or winzip? Personally,
              > i've found this deployment to be HIGHLY flakey at best.... my same ear files
              > deploy perfectly with iPlanet's app server.
              >
              > Mark Spotswood <[email protected]> wrote:
              > >I think this is basically the same as a file not found error.
              > >The error message says it can't open the file. Its looking
              > >for the file under: /weblogic/myserver/cookieWar.war
              > >Make sure the file is in that directory/readable, etc.
              > >--
              > >mark
              > >
              > >Paul Garduno wrote:
              > >
              > >> Just to let you know, I am getting the same error message. I haven't
              > >worked on it but hope to at some point. I would like to know if the
              > >Weblogic people have seen this error.
              > >>
              > >> Paul Garduno
              > >>
              > >> bionic99 wrote:
              > >>
              > >> > I am tring to run my Servlet with myWAR.war. So I started first installing
              > >the CookieCounter example that came with weblogic, I did exactly as
              > >the document said but I getting the following exception:
              > >> > Thu Jan 04 11:26:45 MST 2001:<E> <HTTP> Error reading Web application
              > >'/weblogic/myserver/cookieWar.war'
              > >> > java.util.zip.ZipException: error in opening zip file
              > >> > at java.util.zip.ZipFile.open(Native Method)
              > >> > at java.util.zip.ZipFile.<init>(ZipFile.java:69)
              > >> > at weblogic.utils.jar.JarFile.<init>(JarFile.java:57)
              > >> > at weblogic.utils.jar.JarFile.<init>(JarFile.java:44)
              > >> > at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:582)
              > >> > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
              > >Compiled Code)
              > >> > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
              > >> > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
              > >> > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > >> > at java.lang.reflect.Method.invoke(Native Method)
              > >> > at weblogic.Server.startServerDynamically(Server.java:99)
              > >> > at weblogic.Server.main(Server.java:65)
              > >> > at weblogic.Server.main(Server.java:55)
              > >> > at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
              > >> > at java.lang.Thread.run(Thread.java:479)
              > >> >
              > >> > Has anybody encountered the problem before I created the jar using
              > >jar cvf cookieWar.war cookie- under the command line
              > >
              

  • Getting this error Installation failed: error in opening zip file..

    Hi,
    when i run the MI application synchronization screen was opened.When i click synchronize icon I got the following result.
    -->Synchronization started.
    -->Connection set up(without proxy) to: http://yhsapr04.yashsap.com:8004/sap/bc/MJC/mi_host?~sysid=mix&
    -->Successfully connected with server.
    -->Processing of inbound data began.
    -->Assignment to application: ZNEW_MCD1 1.0
    -->System determined that some required applications are not located on your device. They are now being installed.
    -->Download of application: ZNEW_MCD1 1.0:sample
    -->Installation of: ZNEW_MCD1 1.0:sample
    -->Installation failed: error in opening zip file.
    -->To complete installation restart your device
    Here the error is this
    Installation failed: error in opening zip file..
    can any body resolve this
    Regards,
    Sunaina Reddy T

    Hi,
    There is a same post...
    SAP application not registered:error in opening zip file
    Regards,

  • OC4J startup failed: java.util.zip.ZipException: error in opening zip file

    I am getting the following error. Can someone help me on how to fix this issue?
    Thanks
    E:\oracle\product\oas\10.1.3.1\j2ee\home>java -jar oc4j.jar
    OC4J startup failed
    org.xml.sax.SAXException: META-INF/boot.xml in E:\oracle\product\oas\10.1.3.1\j2
    ee\home\oc4j.jar, line 466: Could not process 'external-classes' for /E:/oracle/
    product/oas/10.1.3.1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META
    -INF/boot.xml in E:\oracle\product\oas\10.1.3.1\j2ee\home\oc4j.jar): caught java
    .util.zip.ZipException: error in opening zip file.
    at oracle.classloader.util.XMLConfiguration.fail(XMLConfiguration.java:1
    279)
    at oracle.classloader.util.XMLConfiguration.registerExternalsFromPackage
    Names(XMLConfiguration.java:833)
    at oracle.classloader.util.XMLConfiguration.registerExternalsForPostProc
    essing(XMLConfiguration.java:842)
    at oracle.classloader.util.XMLConfiguration.endElement(XMLConfiguration.
    java:716)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
    nt(AbstractSAXParser.java:633)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
    java:148)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
    stractSAXParser.java:1242)
    at oracle.classloader.util.XMLConfiguration.configureLoaders(XMLConfigur
    ation.java:277)
    at oracle.classloader.util.InitialLoadersFactory.populateLoaders(Initial
    LoadersFactory.java:389)
    at oracle.classloader.util.InitialLoadersFactory.initLoaders(InitialLoad
    ersFactory.java:230)
    at oracle.classloader.util.InitialLoadersFactory.create(InitialLoadersFa
    ctory.java:167)
    at oracle.oc4j.loader.boot.BootStrap.main(BootStrap.java:26)

    Sorry for the delay, i can't attach it so i'll just post it
    User:
    Logname: root
    Monday February 23 14:29:15 GMT 2009
    smpatch settings:
    smpatch analyze:
    Entitlement:
    Sun UC patch revision:
    112945-03
    Solaris release:
    Solaris 9 s9_58shwpl3 SPARC
    Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 15 April 2002
    Solaris Kernel: Generic_112233-05
    Machine Type: sun4u
    Platform: SUNW,Sun-Fire
    Java -version:
    Unrecognized option: -version:1.5+
    Could not create the Java virtual machine.
    Software Cluster:
    CLUSTER=SUNWCXall
    All ccr properties:
    Sun UC package status:
    SUNWbreg not installed
    SUNWccccr not installed
    SUNWccccrr not installed
    SUNWccsign not installed
    SUNWcsmauth not installed
    SUNWppro-plugin-sunos-base not installed
    SUNWppror not installed
    SUNWpprou not installed
    SUNWupdatemgrr not installed
    SUNWupdatemgru not installed

  • J2ee Log is filled all time with  "error in opening zip file"

    Hi,
    When I check the J2ee log in NWA, there is a lot of messages
    " java.util.zip.ZipException: error in opening zip file", all time!.
    any idea???
    thanks in advance.
    Detail:
      error 2008-11-11 20:44:12:544 java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:111)... [see details]
    /System/Server com.sapmarkets.bam.jmxadapter.AbstractLog sap.com/tcwddispwda server-epdesa Server 0 0_36836
       error 2008-11-11 20:44:12:404 java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:111)... [see details]
    /System/Server com.sapmarkets.bam.jmxadapter.AbstractLog sap.com/tcwddispwda server-epdesa Server 0 0_36836
       error 2008-11-11 20:44:12:404 java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:111)... [see details]
    /System/Server com.sapmarkets.bam.jmxadapter.AbstractLog sap.com/tcwddispwda server-epdesa Server 0 0_36836
       error 2008-11-11 20:44:12:404 java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:111)... [see details]

    Hi Guys -
    I am facing a similar issue while trying to run a VC model. I am using BAPI_SALESORDER_GETLIST with two input fields and some output columns.
    The problem here is that when I check the output using this BAPI on the backend system (ABAP), I can see the output. However, with VC it always generated a log in defaultTrace file with the following content;
    #1.5 #001E0BC934680032000001D300001A500004633307D8A2D2#1234970732710#com.sapmarkets.bam.jmxadapter.AbstractLog##com.sapmarkets.bam.jmxadapter.AbstractLog#Administrator#57787##n/a##61c79e80fdd011ddcf25001e0bc93468#SAPEngine_Application_Thread[impl:3]_7##0#0#Error#1#/System/Server#Plain###java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:111)
         at java.util.zip.ZipFile.<init>(ZipFile.java:127)
         at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchiveInfo(AbstractLog.java:328)
         at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchives(AbstractLog.java:454)
         at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchives(AbstractLog.java:477)
         at sun.reflect.GeneratedMethodAccessor905.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.getAttribute(DefaultMBeanInvoker.java:129)
         at javax.management.StandardMBean.getAttribute(StandardMBean.java:229)
         at com.sap.pj.jmx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1296)
         at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.getAttribute(MBeanServerWrapperInterceptor.java:181)
         at com.sap.engine.services.jmx.CompletionInterceptor.getAttribute(CompletionInterceptor.java:309)
         at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.getAttribute(BasicMBeanServerInterceptor.java:169)
         at com.sap.jmx.provider.ProviderInterceptor.getAttribute(ProviderInterceptor.java:195)
         at com.sap.engine.services.jmx.RedirectInterceptor.getAttribute(RedirectInterceptor.java:232)
         at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
         at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.getAttribute(MBeanServerSecurityWrapper.java:234)
         at com.sap.engine.services.jmx.ClusterInterceptor.getAttribute(ClusterInterceptor.java:522)
         at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
         at com.sapmarkets.bam.logcontroller.jmx.LogControllerFacade.getLogInfo(LogControllerFacade.java:227)
         at com.sapmarkets.bam.logcontroller.jmx.LogControllerFacade.getLogInfosWithPattern(LogControllerFacade.java:193)
         at com.sapmarkets.bam.logcontroller.jmx.LogControllerFacade.getLogInfos(LogControllerFacade.java:174)
         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.sap.pj.jmx.introspect.DefaultMBeanInvoker.getAttribute(DefaultMBeanInvoker.java:129)
         at javax.management.StandardMBean.getAttribute(StandardMBean.java:229)
         at com.sap.pj.jmx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1296)
         at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.getAttribute(MBeanServerWrapperInterceptor.java:181)
         at com.sap.engine.services.jmx.CompletionInterceptor.getAttribute(CompletionInterceptor.java:309)
         at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.getAttribute(BasicMBeanServerInterceptor.java:169)
         at com.sap.jmx.provider.ProviderInterceptor.getAttribute(ProviderInterceptor.java:195)
         at com.sap.engine.services.jmx.RedirectInterceptor.getAttribute(RedirectInterceptor.java:232)
         at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
         at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.getAttribute(MBeanServerSecurityWrapper.java:234)
         at com.sap.engine.services.jmx.ClusterInterceptor.getAttribute(ClusterInterceptor.java:522)
         at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
         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.sapmarkets.bam.jmx.connector.AbstractLVServer.invoke(AbstractLVServer.java:183)
         at sun.reflect.GeneratedMethodAccessor470.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.engine.services.rmi_p4.P4DynamicSkeleton.dispatch(P4DynamicSkeleton.java:161)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    An error was returned from the back-end system: [V4213] No data found
    Do you have a clue as to why this is happening?
    Kind Regards,
    Raza.

  • IOException java.util.zip.ZipException: error in opening zip file

    Hi Folks,
    In my application one Zip file will be placed in the server. to unzip that zip file i have used java.util.Zip.
    It is working fine.but some times it gets the following error.
    **IOException java.util.zip.ZipException: error in opening zip file**
    why is it so? but very rarely. I couldnt identify the exact scenario, where it causes the problem.
    Normally that zip file contains set of images of customer.
    Please share your inputs.
    Thanks,
    Balu.

    Thanks for ur reply.
    EJB is not used in my application.
    VC++ application at customer side prepares the zip file, and it will upload that zip to te server using ftp.
    After uploading done, at the server end one java program(contains main function) will access that folder to unzip.
    Thanks,
    Balu.

  • WHY? java.util.zip.ZipException: error in opening zip file

    i'm trying to restart tomcat 4.1 (bin/startup.bat) and getting the following error (windows xp profession machine)
    code:
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.jar.JarFile.<init>(JarFile.java:127)
    at java.util.jar.JarFile.<init>(JarFile.java:65)
    at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1082)
    at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:200)
    at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:202)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:140)
    Bootstrap: Class loader creation threw exception
    java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: error in opening zip file
         at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1110)
         at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:200)
         at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:202)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:140)
    thanks!

    These exceptions occur when opening JAR files (since they are renamed ZIPs). Most likely the file cannot be ffound because you have classpaths setup incorrectly

  • JAR creation failed in Eclipse. error in opening zip file

    When Exporting the project to Runnable JAR file in Eclipse, I have "JAR creation failed", with "error in opening zip file" in details and nothing else.
    I've tried running the new Eclipse environment by starting a new .metadata file. Then, I rebuilt the project - it runs as before.
    What zip file is referred to?

    I imagine it's the "Export destniation" jar/zip. Perhaps it's being
    used by a running application and is therefore locked against writing.
    Have you tried deleting it from the command line?
    [email protected] wrote:
    > When Exporting the project to Runnable JAR file in Eclipse, I have
    > "JAR creation failed", with "error in opening zip file" in details and
    > nothing else.
    >
    > I've tried running the new Eclipse environment by starting a new
    > .metadata file. Then, I rebuilt the project - it runs as before.
    >
    > What zip file is referred to?

Maybe you are looking for