Caused By Java.util.zip.zipexception Error Reading Zip File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings caused by java.util.zip.zipexception error in opening zip file and policies of this site About Us Learn more about Stack java.util.zip.zipexception error in opening zip file Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs java.util.zip.zipexception error in opening zip file linux Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them;
Java.util.zip.zipexception Error In Opening Zip File Weblogic
it only takes a minute: Sign up java.util.zip.ZipException: error in opening zip file up vote 36 down vote favorite 6 I have a Jar file, which contains other nested Jars. When I invoke the new JarFile() constructor on this file, I get an exception which says: java.util.zip.ZipException: error in opening zip file When I manually unzip the contents of this java.util.zip.zipexception error in opening zip file at java.util.zip.zipfile.open(native method) Jar file and zip it up again, it works fine. Also, please note that this exception is seen only on WebSphere 6.1.0.7 and higher versions. The same thing works fine on tomcat and WebLogic. Also, when I use JarInputStream instead of JarFile, I am able to read the contents of the Jar file without any exceptions. Please let me know if you have any ideas on how this can be fixed. Thanks, Sandhya java share|improve this question edited Aug 23 at 21:02 Petro 1,2741623 asked Nov 28 '08 at 7:12 user41536 234156 2 Thanks for the hint about rezipping the file -- that fixed for me. –Bryan Larsen May 4 '10 at 22:24 I've had this problem on Mac when Windows and Linux worked just fine. Using JarInputStream fixed the problem for me. –Boris van Schooten Dec 20 '11 at 9:47 I have faced the same problem on Tomcat Start UP [catalina.properties]: org.apache.catalina.startup.TldConfig tldScanJar WARNING: Failed to process JAR [jar:../opensaml.jar!/] for TLD files ZipException to resolve this problem add opensaml.~.jar into Applic
opening file When Deploying an Application to Weblogic http://stackoverflow.com/questions/325202/java-util-zip-zipexception-error-in-opening-zip-file Server By Luz Mestre-Oracle on Oct 21, 2013 The latest weeks we had a hard time trying to solve a deployment https://blogs.oracle.com/LuzMestre/entry/java_util_zip_zipexception_error issue.* WebLogic Server 10.3.6* Target: WLS Cluster<21-10-2013 05:29:40 PM CLST> This Site Careers Other all forums Forum: Beginning Java Opening a zip file using the ZipFile class Jeff Bullard Greenhorn Posts: 3 I like... posted 4 years ago I think this is a pretty simple question. I have a group of text files archived into a zip file. The zip https://coderanch.com/t/560174/java/java/Opening-zip-file-ZipFile-class file seems to be valid and uncorrupted because I can unzip and zip it at will from the command line with no problem. Ultimately, I would like to unzip this file into a specified directory. As a first step, I http://bugs.java.com/view_bug.do?bug_id=6295519 am trying to construct a new ZipFile object (in java.util.zip.*) for this file using the following line of code: ZipFile zfile = new ZipFile(name); where name is a java String holding the fully resolved name of the zip file. The problem zip file is that this command throws "java.util.zip.ZipException: error in opening zip file". I have also tried the following: File zippedfile = new File(name); ZipFile zfile = new ZipFile(zippedfile); The File object is constructed okay, but then I get the same exception when I try to construct the ZipFile object. I've searched this and other forums about similar problems with the ZipFile class, but most of them seem to be more complicated than this simple problem, involving JARs and deployment of apps. Any ideas error in opening about what could be causing this would be greatly appreciated. Aditya Jha Ranch Hand Posts: 227 I like... posted 4 years ago Class ZipFile represents a file entry within a Zip file, and not the .zip File itself. So, in your case, there will a number of ZipFile instances that can be taken from the actual .zip file. Google for some examples. I'm sure you'll get it in no time. Jeff Bullard Greenhorn Posts: 3 I like... posted 4 years ago Thanks, Aditya. I think I was/am confused by the following link which seems to provide a function to unzip a file into a directory: http://www.java2s.com/Tutorial/Java/0180__File/unzipFileIntoDirectory.htm This function seems to take the zip file itself, seemingly an instance of class ZipFile, as an argument and then unzips it into the directory which is also supplied as an argument to the function. I'll keep checking other sites to see if I can find examples of what you are talking about. Aditya Jha Ranch Hand Posts: 227 I like... posted 4 years ago You are right. Please forget about my last comment. It was all wrong. For your original problem, can you please elaborate how exactly did you make the zip file. Especially, is there a chance that any app-specific algorithm was used for compression, as opposed to the standard zip algorithm? Also, try to debug within ZipFile class and check which code throws this ZipException in your case. Jeff Bulla RepublicDenmarkEcuadorEgyptEstoniaFinlandFranceGermanyGreeceGuatemalaHondurasHong KongHungaryIndiaIndonesiaIraqIrelandIsraelItalyJapanJordanKazakhstanKoreaKuwaitLaosLatviaLebanonLithuaniaMalaysiaMaldivesMaltaMexicoMoldovaNepalNetherlandsNew ZealandNicaraguaNorwayOmanPakistanPanamaParaguayPeruPhilippinesPolandPortugalPuerto RicoQatarRomaniaRussiaSaudi ArabiaSerbia & MontenegroSingaporeSlovakiaSloveniaSouth AfricaSpainSri LankaSwedenSwitzerland -- FrenchSwitzerland -- GermanTaiwanThailandTurkeyUkraineUnited Arab EmiratesUnited KingdomUnited StatesUruguayVenezuelaVietnamYemen Communities Social Applications Oracle Mix Oracle Blogs Oracle Wiki Oracle on Facebook Oracle on Twitter Networks Oracle ACEs Oracle PartnerNetwork Oracle Technology Network Knowledge Base Oracle User Groups Oracle Discussion Forums Support My Oracle Support Community I am a... Java Developer Database Admins and Developers System Admins and Developers Architect C-Level Executives Chief Financial Officer (CFO) Chief Information Officer (CIO) Other Roles Analyst Investor Job Seeker Partner PeopleSoft Customer Siebel Customer Sun Customer Student Midsize Company I want to... Support Create or Update Service Request Search Support Knowledge Database Download Patches Education Find Oracle University Training Choose an Oracle Certification Path Partner Find a Partner Solution Access Software and Technical Support Attend a Partner-Only Event Attend Training Download Logos Manage Solutions Catalog Other Tasks Purchase Oracle Products Online Browse Oracle Documentation Search Oracle Documentation Check Oracle Earnings Check Oracle Price Lists Download Oracle Software Find an Oracle ACE View Oracle Benchmarks Filters: All Bugs.java.com Blogs Corporate Site Discussion Forums Documentation Training PartnerNetwork Technology Network Products and Services Products Oracle Database Enterprise Manager Oracle Fusion Middleware Oracle Applications Server and Storage Systems Development Tools Oracle On Demand Oracle CRM On Demand Products A-Z List Solutions Java Business Intelligence Enterprise Performance Management Data Warehousing Governance, Risk, and Compliance For Midsize Companies See All ??? Services Advanced Customer Services Consulting Financing On Demand Support Oracle University Industries Communications Education and Research Engineering and Construction Financial Services Retail See All ??? Oracle Customer Successes Partners Knowledge Zones Sales Kits Oracle Validated Integrations Spotlight Cloud Computing Virtualization Oracle Fusion Applications Oracle Solaris 11 Acquisitions Sun BEA Hyperion JD Edwards EnterpriseOne PeopleSoft Ente