Corrupt ZIP files in Prod 11.1.2.1 - Workspace

Hello all,
This one has me and Oracle Support stumped.
Only Prod is exhibiting the following issue...
When exporting reports to a ZIP file, the file becomes corrupt, and gives an error when extracting with Windows. But what actually happens is that a file with the same name and NO extension (i.e. REPORTS) is in the REPORTS.ZIP file. This is what is causing the zip file to corrupt.
The workaround is to extract the file using 7-ZIP, rename the REPORTS file to REPORTS1.ZIP, save it, then unzip the REPORTS1.ZIP file.
This REPORTS1.ZIP has the reports that were zipped initially in Workspace.
Any ideas what may be causing this? No other environment has this issue.
Thanks in advance!!
--Ed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

ZIP file seems to be corrupted. You must repair the file first. Do repair the file by using WinRAR program.
Open WinRAR *>* open ZIP file *>* go to Tools *>* select Repair archive *>* Browse the path *>* check the box Treat the corrupt archive as ZIP *>* click on OK *>* wait for a while once the selected file is repaired *>* click on Close.
Or if this solution fails to repair the file, then you must take help of third-party ZIP recovery software. A wide range of ZIP recovery software are available on the internet. Check few of them. You can use their demo version first. I can recommend you SysInfoTools ZIP Recovery software. You must try its free demo version before buying any other ZIP recovery software.
Regards.

Similar Messages

  • "zip" Terminal command no help fixing corrupt zip file; any other workarounds?

    I downloaded a ".zip" file containing some files that I need to access.
    When I double-click on it, I get the "Unable to unarchive 'xyz.zip' into '[foldername].' ( Error 1 - Operation not permitted )" message, which many people report when they try to open a corrupt zip file.
    I also tried opening the file with "StuffIt Expander," "Archive Utility," and "The Unarchiver," as well as some specialty zip-compression programs, but none were successful.
    I then installed the very useful "Archive.qlgenerator" plugin (http://homepage.mac.com/xdd/software/archive/) which allowed me to at least see inside the zip file using OSX's "QuickLook" feature. Lo and behold, all the files that were supposed to be in the zip file are indeed in there, as they should be. The problem is not that the zip file is empty, the problem is that it has become corrupted somehow.
    So, what I need to do is either "fix" the corrupted zip file, or alternately find some way to extract the needed files using brute force.
    Following tips given on various forums, I tried using OSX's "zip" command in terminal (http://homepage.mac.com/kelleherk/iblog/C1901548470/E731143104/index.html and http://hintsforums.macworld.com/showthread.php?t=132146). I was able to use it properly, but unfortunately neither the "-F" nor the "-FF" commands were of any helping in "fixing" the zip file. The "-F" command incorrectly said that the zip file was empty and that there was nothing to fix; the stronger "-FF" command came back with
    Could not find:
      xzy.z01
    Hit c      (change path to where this split file is)
        s      (skip this split)
        q      (abort archive - quit)
        e      (end this archive - no more splits)
        z      (look for .zip split - the last split)
    or ENTER  (try reading this split again):
    ...but none of the options produced any result. Pressing "z" gave me
    Could not find or open
      xyz.zip
    ...which means that even "-FF" could not get past whatever problem had corrupted the file.
    So: is there any built-in way for Mac OSX to fix or extract the contents of a zip file corrupted like this?
    Alternately, is there any third-party shareware or freeware that will do the trick?
    (I don't want to have to spend big $$$ on a commercial program since all I need to do is open a single zip file. And there is no way to contact the zip file's original creator, so I can't download an uncorrupted version.)
    Any help would be greatly appreciated.

    Mark:
    When I try your first suggestion in Terminal ("unzip -t /path/to/file"), I get this message:
    Archive:  /xyz.zip
      End-of-central-directory signature not found.  Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive.  In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.
    unzip:  cannot find zipfile directory in one of /xyz.zip or
            /xyz.zip.zip, and cannot find /xyz.zip.ZIP, period.
    When I try your second suggestion ("unzip -l /path/to/file"), I get the exact same error message. (And yes, I am fixing "/path/to/file" to be the correct path to the actual file).
    And no, it is not really part of a multi-part archive. (Or at least it wasn't supposed to be; only one zip file is available, and there was only supposed to one.) Perhaps the zip was mis-encoded in the first place, so that the person who created it accidentally did something wrong which the unzip applications are interpreting as this file being part of a multi-part archive; but even so, all I have is this one file, so I need to fix it as is, or extract its contents as is, since I have no way to contact the original creator to do it right this time.

  • JBoss Shuts Down while reading a Corrupt Zip File

    Hi,
    I have a strange problem, where the jboss crashes when i read a corrupt file.
    Code is like this :
    ZipFile zipfile = null;
    Enumeration e = null;
    try
    zipfile = new ZipFile(zipFile);
    e = zipfile.entries();
    catch(Exception e1) {
    e1.printStackTrace();
    while(e.hasMoreElements()) {
    ZipEntry entry = (ZipEntry) e.nextElement();
    JBoss Error Description :
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77FCD91F
    Function=RtlDestroyHeap+0x2DB
    Library=C:\WINNT\system32\ntdll.dll
    Current Java thread:
         at java.util.zip.ZipFile.getNextEntry(Native Method)
         at java.util.zip.ZipFile.access$400(Unknown Source)
         at java.util.zip.ZipFile$2.nextElement(Unknown Source)
         - locked <0x1122c828> (a java.util.zip.ZipFile)
         at com.intruvert.alertarchival.process.CoreRestore.extractDescriptionXML(Unknown Source)
         at com.intruvert.alertarchival.process.ArchivalManager.getArchivalZipFileInfo(Unknown Source)
         - locked <0x330cf478> (a com.intruvert.alertarchival.process.ArchivalManager)
         at com.intruvert.mgmt.alertarchival.AlertArchivalBean.getArchivalZipFileInfo(AlertArchivalBean.java:235)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
         at org.jboss.ejb.Container.invoke(Container.java:709)
         at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
         at $Proxy236.getArchivalZipFileInfo(Unknown Source)
         at com.intruvert.ui.util.busobj.DBManager.getArchividFile(DBManager.java:397)
         at com.intruvert.ui.util.busobj.DBManager.getFileTransferInfo(DBManager.java:274)
         - locked <0x10ee9ed8> (a com.intruvert.ui.util.busobj.DBManager)
         at com.intruvert.ui.util.servlet.CArchivalUploadServlet.doUpload(CArchivalUploadServlet.java:157)
         - locked <0x15789860> (a com.intruvert.ui.util.servlet.CArchivalUploadServlet)
         at com.intruvert.ui.util.servlet.CArchivalUploadServlet.doPost(CArchivalUploadServlet.java:58)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:158)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x0040B000      C:\CVS_TRIMBLE\ems\Install\jre\bin\java.exe
    0x77F80000 - 0x77FFD000      C:\WINNT\system32\ntdll.dll
    0x7C2D0000 - 0x7C332000      C:\WINNT\system32\ADVAPI32.dll
    0x7C570000 - 0x7C623000      C:\WINNT\system32\KERNEL32.DLL
    0x77D30000 - 0x77DA1000      C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78045000      C:\WINNT\system32\MSVCRT.dll
    0x75030000 - 0x75044000      C:\WINNT\system32\WS2_32.DLL
    0x75020000 - 0x75028000      C:\WINNT\system32\WS2HELP.DLL
    0x08000000 - 0x08138000      C:\CVS_TRIMBLE\ems\Install\jre\bin\client\jvm.dll
    0x77E10000 - 0x77E6F000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7B000      C:\WINNT\system32\GDI32.dll
    0x77570000 - 0x775A0000      C:\WINNT\system32\WINMM.dll
    0x10000000 - 0x10007000      C:\CVS_TRIMBLE\ems\Install\jre\bin\hpi.dll
    0x007C0000 - 0x007CE000      C:\CVS_TRIMBLE\ems\Install\jre\bin\verify.dll
    0x007D0000 - 0x007E9000      C:\CVS_TRIMBLE\ems\Install\jre\bin\java.dll
    0x007F0000 - 0x007FE000      C:\CVS_TRIMBLE\ems\Install\jre\bin\zip.dll
    0x44420000 - 0x4443C000      C:\CVS_TRIMBLE\ems\Install\jre\bin\jdwp.dll
    0x48440000 - 0x48445000      C:\CVS_TRIMBLE\ems\Install\jre\bin\dt_socket.dll
    0x74FD0000 - 0x74FEE000      C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000      C:\WINNT\System32\wshtcpip.dll
    0x487D0000 - 0x487DF000      C:\CVS_TRIMBLE\ems\Install\jre\bin\net.dll
    0x782C0000 - 0x782CC000      C:\WINNT\System32\rnr20.dll
    0x77980000 - 0x779A4000      C:\WINNT\system32\DNSAPI.DLL
    0x75050000 - 0x75058000      C:\WINNT\system32\WSOCK32.DLL
    0x77340000 - 0x77353000      C:\WINNT\system32\iphlpapi.dll
    0x77520000 - 0x77525000      C:\WINNT\system32\ICMP.DLL
    0x77320000 - 0x77337000      C:\WINNT\system32\MPRAPI.DLL
    0x75150000 - 0x7515F000      C:\WINNT\system32\SAMLIB.DLL
    0x75170000 - 0x751BF000      C:\WINNT\system32\NETAPI32.DLL
    0x7C340000 - 0x7C34F000      C:\WINNT\system32\Secur32.dll
    0x77BF0000 - 0x77C01000      C:\WINNT\system32\NTDSAPI.dll
    0x77950000 - 0x7797A000      C:\WINNT\system32\WLDAP32.DLL
    0x751C0000 - 0x751C6000      C:\WINNT\system32\NETRAP.dll
    0x77A50000 - 0x77B3F000      C:\WINNT\system32\OLE32.DLL
    0x779B0000 - 0x77A4B000      C:\WINNT\system32\OLEAUT32.DLL
    0x773B0000 - 0x773DF000      C:\WINNT\system32\ACTIVEDS.DLL
    0x77380000 - 0x773A3000      C:\WINNT\system32\ADSLDPC.DLL
    0x77830000 - 0x7783E000      C:\WINNT\system32\RTUTILS.DLL
    0x77880000 - 0x7790E000      C:\WINNT\system32\SETUPAPI.DLL
    0x7C0F0000 - 0x7C151000      C:\WINNT\system32\USERENV.DLL
    0x774E0000 - 0x77513000      C:\WINNT\system32\RASAPI32.DLL
    0x774C0000 - 0x774D1000      C:\WINNT\system32\RASMAN.DLL
    0x77530000 - 0x77552000      C:\WINNT\system32\TAPI32.DLL
    0x77B50000 - 0x77BD9000      C:\WINNT\system32\COMCTL32.DLL
    0x77C70000 - 0x77CB9000      C:\WINNT\system32\SHLWAPI.DLL
    0x77360000 - 0x77379000      C:\WINNT\system32\DHCPCSVC.DLL
    0x777E0000 - 0x777E8000      C:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000      C:\WINNT\system32\rasadhlp.dll
    0x49330000 - 0x49335000      C:\CVS_TRIMBLE\ems\Install\jre\bin\rmi.dll
    0x49E80000 - 0x49E88000      C:\CVS_TRIMBLE\ems\Install\jre\bin\nio.dll
    0x4A550000 - 0x4A556000      C:\CVS_TRIMBLE\ems\Install\jre\bin\ioser12.dll
    0x4BEE0000 - 0x4BFF2000      C:\CVS_TRIMBLE\ems\Install\jre\bin\awt.dll
    0x77800000 - 0x7781E000      C:\WINNT\system32\WINSPOOL.DRV
    0x76620000 - 0x76630000      C:\WINNT\system32\MPR.DLL
    0x75E60000 - 0x75E7A000      C:\WINNT\system32\IMM32.dll
    0x7CA00000 - 0x7CA23000      C:\WINNT\system32\rsaenh.dll
    0x7C740000 - 0x7C7C7000      C:\WINNT\system32\CRYPT32.dll
    0x77430000 - 0x77440000      C:\WINNT\system32\MSASN1.DLL
    0x77920000 - 0x77943000      C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000      C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000      C:\WINNT\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 54464K, used 24954K [0x10010000, 0x13b20000, 0x13b20000)
    eden space 48448K, 39% used [0x10010000, 0x1128eb08, 0x12f60000)
    from space 6016K, 100% used [0x13540000, 0x13b20000, 0x13b20000)
    to space 6016K, 0% used [0x12f60000, 0x12f60000, 0x13540000)
    tenured generation total 725952K, used 562288K [0x13b20000, 0x40010000, 0x40010000)
    the space 725952K, 77% used [0x13b20000, 0x3603c398, 0x3603c400, 0x40010000)
    compacting perm gen total 39424K, used 39287K [0x40010000, 0x42690000, 0x44010000)
    the space 39424K, 99% used [0x40010000, 0x4266de88, 0x4266e000, 0x42690000)
    Local Time = Tue Jun 21 10:27:43 2005
    Elapsed Time = 198
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
    Could you please hep me out....
    Thanks,
    ~ Ajay Sandesh

    Simply remove the corrupt zip file, and replace it with the valid copy of the zip file.
    regards,
    Owen

  • Corrupted zip file of download pkg

    I've tried downloading App server 7 (Platform edition) several times and from several download locations but each time I get corrupted zip file and can't open it. BTW, other stuff (Application framework, Studio 4, etc) is downloaded correctly. I'm using IE 6.
    Has anyone experienced anything like this ?

    No clue. Too few info.
    Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html

  • Unzipping corrupted zip file

    I have a corrupted zip file whose contents I'm trying to salvage. I know that the problem is with one of the files in the sbutman/taxes/ directory, and I've resigned myself to losing it. I've written the following short program to try to extract as much data as I can from the archive:
    * Created on Sep 7, 2005
    import java.io.*;
    import java.util.zip.*;
    * @author sbutman
    public class ZipExtractor {
        static final int BUFFER = 8192;
        public static void main( String argv[] ) {
            try {
                BufferedOutputStream dest = null;
                FileInputStream fis = new FileInputStream( argv[0] );
                ZipInputStream zis = new ZipInputStream( new BufferedInputStream(
                        fis ) );
                ZipEntry entry;
                while( true ) {
                    try {
                        entry = zis.getNextEntry( );
                        if ( entry == null ) break;
                        if ( entry.getName( ).startsWith( "sbutman/taxes/" ) )
                                continue;
                        System.out.println( "Extracting: " + entry.getName( ) );
                        if ( entry.isDirectory( ) ) {
                            File directoryEntry = new File( entry.getName( ) );
                            directoryEntry.mkdir( );
                        else {
                            int count;
                            byte data[] = new byte[BUFFER];
                            // write the files to the disk
                            FileOutputStream fos = new FileOutputStream( entry
                                    .getName( ) );
                            dest = new BufferedOutputStream( fos, BUFFER );
                            while( ( count = zis.read( data, 0, BUFFER ) ) != -1 ) {
                                dest.write( data, 0, count );
                            dest.flush( );
                            dest.close( );
                    catch( IOException ioe ) {
                        System.out.println( "An IO exception has occurred:" );
                        ioe.printStackTrace( );
                        continue;
                zis.close( );
            catch( Exception e ) {
                System.out.println( "A general exception occurred:" );
                e.printStackTrace( );
    }When I run the program, everything works fine until I get to the zip file entry causing the problem. The output looks like this:
    An IO exception has occurred:
    java.util.zip.ZipException: invalid entry size (expected 4007 but got 4055 bytes)
            at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:367)
            at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
            at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
            at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:69)
            at ZipExtractor.main(ZipExtractor.java:23)
    An IO exception has occurred:
    java.io.IOException: Push back buffer is full
            at java.io.PushbackInputStream.unread(PushbackInputStream.java:204)
            at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:348)
            at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
            at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
            at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:69)
            at ZipExtractor.main(ZipExtractor.java:23)
    An IO exception has occurred:
    java.io.IOException: Push back buffer is full
            at java.io.PushbackInputStream.unread(PushbackInputStream.java:204)
            at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:348)
            at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
            at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
            at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:69)
            at ZipExtractor.main(ZipExtractor.java:23)The second error repeats itself until I ctrl-c out of the program.
    What's happening is that the inner catch block detects the zip entry error as expected. It continues on the next pass through the while loop and attempts to read the next entry, whereupon the second IOException is thrown over and over again. (Incidentally, I've also tried using java.util.zip.ZipFile, but it won't even open the file.)
    My questions are these:
    1. What exactly does "Push back buffer is full" mean? I've looked through the javadocs, but my understanding is still sketchy. Can I manipulate the buffer or otherwise code around the problem in order to prevent this error from being thrown?
    2. Is there any way I can see the source code for java.util.zip.ZipInputStream? It would be very helpful to see exactly where and why this error is being thrown.
    Any help anyone can provide would be greatly appreciated. By the way, if this question should be better posted in another forum, let me know and I'll re-post it there.

    No clue. Too few info.
    Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html

  • Validating Corrupted ZIP Files

    I need to validate zip files whether they are corrupted or not.
    Can anybody help me in validating zip files(corrupted or not).
    Thanks.
    Annapurna

    Jar-files are created by using a checksum. I think, this checksum is proofed, if you extract the jar-file by means of java. So there will be an exception if an entry of this file is corrupted.
    Have you had a look at the java-sources for finding out, if zip-files use the the same mechanism?

  • 3.0 EA3 for 64-bit Windows - corrupt zip file

    Hi
    I have tried to download EA3 for 64-bit Windows several times now. Each time, bot 7-zip and Windows' built-in ZIP support tells me, that the ZIP file is invalid. Please fix this.
    Thanks in advance,
    Jacob

    It seems, that Firefox 4 beta 9 has some file download issues. I switched to Chrome to download the file, and here it succeeded in downloading a valid zip file. Oh well... better get this reported to Mozilla.
    Thanks for checking this for me.

  • How do you use zip files?

    Hello all,
    I have always stayed away from ZIP files (as in doing it myself, to my own files), since my days in Windows, after all the countless corrupt ZIP files I received from others, that simply would not UNzip...
    But recently I've come across references to them again, and I realised I might be missing a trick or two....
    Any comments on the following would be appreciated:
    1.) What can I use them for?
    As in - could I ZIP my entire folder of holiday pictures - all 13GB's of them?
    Or is there some sort of size limit, where anything over, and things become problematic?
    Are some file types Zipped better than others?
    2.) How does it actually work?
    As in - what happens to my original files?
    Assume the holiday pics are Zipped - do the orginals get compressed, or can I select it so that copies are Zipped, as a kind of backup?
    3.) How safe is it?
    As in - assuming my hardware and software are all OK, nothing buggy etc. - if I create the ZIP file, pop it somewhere on a USB/External/the same laptop, and then Unzip it later, when I need them again - am I correct in assuming that the chances of the file being corrupted, are relatively slim?
    And coming back to those holiday pics - could the compression process result in a loss in picture quality/resolution, were I to then unzip the file? Or - assuming everything works as planned - will the quality of the pictures/file emerge exactly the same as they were prior to being compressed?
    I realise all of the above are ridiculously simple questions - but googling this doesn't really help, as most sites simply explain the how to, not the WHY...
    The WHY articles were probably all written 15 years ago already... I'm just very, very far behind....
    Thanks in advance!
    [Mid-2012 MBP 8GB Ram; OSX ML]

    Zipping an image file should have no effect on image quality, as the image data is not actually changed.
    Note that there's very little point in zipping a folder full of images, unless the images are not a compressed file type. You can't compress data that is already compressed - in fact, trying to do so often increases the file size - and JPEG images, for example, are already compressed.
    For the most part, you don't need to use zip at all. I absolutely DO NOT recommend storing your files and/or folders on the hard drive in compressed form as a space-saving measure. It doesn't save enough space to be worth the time needed to compress files large enough to warrant it on a modern drive. Accessing zipped files is a pain, too, since you basically have to decompress the whole thing in order to access a file inside a zip file.
    Zip becomes useful if you need to attach a large number of files to an e-mail message (zip the files, then attach the single zip file) or want to create an archive of multiple files to download from a web site through a single link. In other words, in situations where you need to transmit many files over the internet, especially where Windows users may be involved, zipping files can be either important or a convenience.

  • Extract files from a zip file

    Here is my scenario:
    I have a zip file, DataStore.zip, which as two layers of zip files.
                                         DataStore.zip
                                               |
               01.zip       02.zip         03.zip      04.zip etc
                                 |
                     02a.zip          02b.zip         02c.zip        
     etc
                         |
                cert1.zip   cert2.zip     cert3.zip     etc
    I need to search for  any cert.zip embedded at layer3, for which I have written the following program.
    I have two issues. First one is, when the files at level 1 (01.zip etc are written to the disk folder c:\ extract, it doesn't allow me to read back from that folder., I get "access to path c:\extract is denied". I researched and found that this
    is a security issue with windows 8 and 7. ( I tried both versions). How can I overcome this?
    second issue is, if in the  first read cycle  it fails with "unknown block type, stream may be corrupted", I need to bypass that corrupted zip file and continue, until I get my target file.
    The code is give below. Appreciate any help.. Thanks.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.IO;
    using System.IO.Compression;
    namespace TPMCert
    {   // Utility to copy a TPM certificate from the master file.
        public partial class Form1 : Form
            public Form1()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
            private void btnSelDrv_Click(object sender, EventArgs e)
                if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
                    string filePath1 = this.folderBrowserDialog1.SelectedPath; //
                    this.txtDrv.Text = filePath1;
            }//btnselDrv
            private void btnTpmReq_Click(object sender, EventArgs e)
                    OpenFileDialog openFile1 = new OpenFileDialog();
                    if (openFile1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                        txtRqstFileName.Text = openFile1.FileName.Remove(0, 3); //remove first 3 chars which is c:/ etc
            private void btnGo_Click_1(object sender, EventArgs e)
                    string zPath = txtDrv.Text + "\\" +"TpmDataStore.zip"; //drive & filename to to search.....
                    string extractPath= txtDrv.Text
    +@"\extract";
                    string extractPath2 = txtDrv.Text + @"\extract\certs";
                    string copyPath = txtDrv.Text; // location of the tpm certificate finall written to..
                    bool filefound = false;
                     //look for the file. read only allowed...
                   // try
                        using (ZipArchive archive = ZipFile.OpenRead(zPath)) //open Tpm file for reading
                            txtInfo.AppendText("Processing ....  Please wait!" + "\n");
                            Cursor.Current = Cursors.WaitCursor; //busy cursor
                            foreach (ZipArchiveEntry zEntry in archive.Entries) //each top level zip file is written to \extract dir
                                zEntry.ExtractToFile(Path.Combine(extractPath, zEntry.FullName), true); //true- overwrite
                                txtInfo.AppendText(" First write passed...");
                                //next iterate thro' all zip files in \extract dir
                               using (ZipArchive archive2 =ZipFile.Open(extractPath, ZipArchiveMode.Update)) //read files in extract
                                   foreach (ZipArchiveEntry childEntry in archive2.Entries)
                                       childEntry.ExtractToFile(Path.Combine(extractPath2,
    childEntry.Name), true); //true- overwrite
                                       MessageBox.Show(childEntry.Name);
                                       txtInfo.AppendText(" Second cycle....");
                                       if (childEntry.Name == txtRqstFileName.Text)
                                               filefound
    = true; //
                                               //MessageBox.Show(zEntry.FullName);
                                               txtInfo.AppendText("Found
    file " + childEntry.Name + "\n");
                                               txtInfo.AppendText("File
    copied as " + copyPath + "\\" + childEntry.Name + "\n");
                                }//second using..
                            }//foreach
                            if (filefound == false ) // given file is not there
                                txtInfo.AppendText("File not found" +  "\n");
                        }//using
                    }//try
                       // catch (Exception ex)
                               // MessageBox.Show(" Error:" + "\n" + ex.Message);
                                return;
                             //finally
                            { Cursor.Current = Cursors.Default;
                // next
            } //btnGo..
        }//class form1
    }//namespace

    Hi friend,
    We'd better to ask one question in each thread. If you have another issue, you can consider to open up a new thread in this forum.
    Now for the first question, do you mean this picture? It throws access exception in archive2.
    If so , because your extractPath is a path, not a directory.You should add +"xxx.zip". For more information, please refer to
    ZipFile.Open
    Method (String, ZipArchiveMode).
    For the second question, you can use the following code to skip the error message.
    while (true)
    try
    //do something;
    catch (Exception ex)
    { continue; }
    Good day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Urgent help please - Corrupt zip archive.

    Hello,
    I have a corrupt zip file.
    It was created using the built in zip application "BOMArchiveHelper" or whatever it is called... you know... by right clicking a folder and choosing "Create Archive..."
    The zip file is 680.5mb big. I created it back in May, and this zip is the only copy of the contents I have. Stupid, yes!
    Everytime I try and open it I get a message: "Unable to unarchive "**the file name here**" into "Desktop". (Error 1 - operation not permitted.)".
    I have tried other directories too.
    I have tried using two 3rd party programs (Stuffit and Zipeg) to uncompress it. No luck..
    Those two programs come up with the error sraight away, however whe I do it through the finder it seems like it is uncompressing and only comes up with the error right at the end.
    Any suggestions? How can I open it or recover the data within it?
    Many thanks.
    Nez
    Message was edited by: RedHavoc

    There are some tools that are supposed to repair corrupt zip files. I don't know how many of them run on Macs. You might have to spend some money if you want to get the files back. There should be some open-source zip repair tools available on Linux or perhaps Windows.
    At one time, I had a fairly large number of archived files in zip format. I noticed that I started getting a low, but noticeable, failure rate. I immediately switched to using DMG files and have never had a problem. Now, I virtually never use zip files. I have tried to tell this information to some people who have publicly touted the "benefits" of zip files, but they laughed at me. One day, they will be crying too.

  • ByteArrayInputStream as source for zip file entry corrupts the ByteArray

    Hi All,
    I have managed to create and add a (in-memory) zip file as an email attachment. I add a file to the zip file , then push data to this file via a ByteArrayInputStream.
    Adding the file (created via ByteArrayInputStream) to an email works perfectly. If i then add another step and zip this file it corrupts the output.
    It looks like it is turning the carriage return into a [] . Its 'almost right' as when I cut & paste the contents of the txt file i created (from the zip file) into Word it displays correctly, with the carriage returns. Is it some kind of encoding problem, or mime type issue?
    My ByteArrayInputStream uses buf.append("\n"); for carriage returns. I think the problem is with
    ByteArrayInputStream baIn = new  ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc()) );where I think i need to encode this somehow. Here is the complete code to create and add the zip file to an email. Any isuggestions will be appreciated.
    //START of new ZIP code    
                                                                                             /* Specify files to be zipped */
                                                                                            // Create temp file.
                                                                                            //File temp = File.createTempFile(fileName, ".txt");                           
                                                                                            //temp.deleteOnExit();                                                           
                                                                                            //BufferedWriter bOut = new BufferedWriter(new FileWriter(temp));                                                          
                                                                                            //ByteArrayInputStream baInTemp = new ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc() ) );
                                                                                            //bOut.write( baInTemp.toString() );
                                                                                            //bOut.close();
                                                                                             String[] filesToZip = new String[3];
                                                                                             filesToZip[0] = "C:\\Program Files\\NetBeans3.6\\firstfile.txt";
                                                                                             filesToZip[1] = "C:\\Program Files\\NetBeans3.6\\secondfile.txt";
                                                                                             filesToZip[2] = "C:\\Program Files\\NetBeans3.6\\thirdfile.txt";
                                                                                             final String fileToZip = fileName;
                                                                                             /*  Create a memory buffer to store the ByteArray, fixed size */                                                         
                                                                                             byte[] buffer = new byte[18024];
                                                                                             /* Specify zip file name */
                                                                                             String zipFileName= eq_rt.getReportName() + ".zip";
                                                                                             try {
                                                                                                 /* Create ZipOutputStream to store the FileOutputStream */
                                                                                                 // ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFileName));
                                                                                                 ByteArrayOutputStream byteArray = new ByteArrayOutputStream();                                                             
                                                                                                 ZipOutputStream out = new ZipOutputStream(byteArray);                                                              
                                                                                                 /* Set the compression ratio */
                                                                                                 out.setLevel(Deflater.DEFAULT_COMPRESSION);
                                                                                                 /* iterate through the array of files, adding each to the zip file */
                                                                                                 for (int a = 0; a < filesToZip.length; a++) {
                                                                                                    /* Print the filenumber being added to the zip */
                                                                                                    System.out.println(a);
                                                                                                    /* Associate a file input stream for the current file */
                                                                                                   // FileInputStream in = new FileInputStream(filesToZip[a]);
                                                                                                       This ROCKS as it is passing a array into the text file .getBytes() seems
                                                                                                       to be the KEY in getting ByteArrayInputStream to WORK
                                                                                                    //String strSocketInput = "TAIWAN";
                                                                                                    //ByteArrayInputStream baIn = new ByteArrayInputStream(strSocketInput.getBytes());
                                                                                                    //String strSocketInput = new String (getAttachementNoFormat(eq_rt.getStoredProc()).toString() );                                                                                           
                                                                                                    //ByteArrayInputStream baIn = new ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc()) );
                                                                                                     ByteArrayInputStream baIn = new  ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc()) );
                                                                                                    //String strSocketInput = "TAIWAN";
                                                                                                    //ByteArrayInputStream baIn = new ByteArrayInputStream(strSocketInput.getBytes());
                                                                                                    /* Add ZIP entry to output stream. */                                                   
                                                                                                    out.putNextEntry(new ZipEntry(filesToZip[a]));                                                  
                                                                                                    /* Transfer bytes from the current file to the ZIP file */
                                                                                                    int len;
                                                                                                    while ((len = baIn.read(buffer)) > 0)
                                                                                                    out.write(buffer, 0, len);
                                                                                                    /* Close the current entry */
                                                                                                    out.closeEntry();
                                                                                                    /* Close the current file input stream */
                                                                                                    baIn.close();                                                   
                                                                                                /* Close the ZipOutPutStream (very important to close the zip before you attach it to the email) Thanks DrClap */
                                                                                                out.close();                                                    
                                                                                                /* Create a datasource for email attachment */
                                                                                                // DataSource sourcezip = new FileDataSource(zipFileName);
                                                                                                DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/gzip" );
                                                                                                /* Create a new MIME bodypart */
                                                                                                BodyPart attachment = new MimeBodyPart();
                                                                                                attachment.setDataHandler(new DataHandler(sourcezip));
                                                                                                attachment.setFileName(zipFileName);                       
                                                                                                /* attach the attachemnts to the mail */
                                                                                                multipart.addBodyPart(attachment);                                                       
                                                                                             catch (IllegalArgumentException iae) {
                                                                                               iae.printStackTrace();
                                                                                             catch (FileNotFoundException fnfe) {
                                                                                               fnfe.printStackTrace();
                                                                                             catch (IOException ioe)
                                                                                             ioe.printStackTrace();
                                                                                           // End Of New ZIP code    

    I came up with 'a' solution (not sure if its the best way but appears to work)
    \n = corrupt
    \r\n = ok in zip

  • APEX Dicom Sample zip file is corrupt.

    The File dicom-1-133417.zip of DICOM samples in APEX packed applications is CORRUPT!
    This is the page (DICOM sample)
    http://www.oracle.com/technetwork/developer-tools/apex/application-express/packaged-apps-090453.html#DICOM
    Please , somebody from oracle can fix it? we are trying to make a presentation with 11gr2 and DICOM features, but without this we have to make all from scratch. Please help!.

    Zip file gets corrupt or damage due to malware infections, virus interruption, power failed and system suddenly shut-down etc. But you can get rid from corrupted errors of Zip files through: - ZIP Viewer Tool
    http://www.zip.viewertool.com/
    just read the details here:http://www.filerepairforum.com/forum/archives/archives-aa/winzip/1140-how-open-open-archive-without-winrar-or-7zip

  • JDeveloper Studio 1.0.1.3 zip file is corrupted

    Download the zip file twice in two day, both of them are corrupted. Please help.
    James

    The link I downloaded the file from:
    http://download.oracle.com/otn/java/jdeveloper/1013/jdevstudio1013.zip
    The file size after I download it:
    Size: 325 MB (341,247,683 bytes)
    Size on disk: 325 MB (341,250,048 bytes)
    Thanks,
    James

  • SQL Developer 3.0.04.34 ZIP file corrupted

    I have tried downloading SQL Developer(Windows 32 bit) numerous times with and without JDK and on multiple computers from Oracle.com, but every time I try to open the zip file it says that it is corrupted. Has anyone else experienced or know of an alternative download site?

    I have seen this several times.
    I bet you are trying to download from the office.
    There are certain firewalls that corrupt the file.
    Yes I know you can download other files and they work fine.
    Download it from home onto a flash drive and take it into the office.
    Michael

  • Downloaded OS ZIP files seems to be corrupted!

    I've downloaded the installation CD and CD 1 zip file from US west and east site but it doesn't seems to be workable. I'm unable to open the ZIP files. The files seems to be corrupted. Even after I repaired those Zip files, I'm unable to unzip it. Can anybody tell me where I can get a workable download. Thanx a lot!

    Hi,
    I met the same problem before. Try "Real Download" instead of your current download manager which is strongly recommended by sun.
    http://www.real.com/download/index.html
    Good Luck!!
    Crown

Maybe you are looking for