java.util.zip.ZipException: The system cannot find the path specified

Oracle Community | 807553 | 1 decade ago
  1. 0

    jhindexer help!

    Oracle Community | 1 decade ago | 807553
    java.util.zip.ZipException: The system cannot find the path specified
  2. 0

    Load multiple jars with Web Start

    Google Groups | 1 decade ago | shahs...@gmail.com
    java.util.zip.ZipException: The system cannot find the path specified
  3. 0

    JBossXBRuntimeException: Failed to create a new SAX parser deploying TeamCity into JBoss

    YouTrack | 7 years ago
    java.util.zip.ZipException: The system cannot find the path specified
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    obfuscate midlet with Nokia UI API

    proguard | 1 decade ago | *anonymous
    java.util.zip.ZipException: The system cannot find the path specified
  6. 0

    In windows, when the path to the jar file has a white space the FileZippedJarVisitor can not find the jar file. The following is the error message, I get whenever there is a white space in the path of the jar file. 17:40:29,296 WARN FileZippedJarVisitor:38 - Unable to find file (ignored): file:/C:/work%20space/wlan_nms/bin java.util.zip.ZipException: The system cannot find the path specified at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at org.hibernate.ejb.packaging.FileZippedJarVisitor.doProcessElements(FileZippedJarVisitor.java:35) at org.hibernate.ejb.packaging.JarVisitor.getMatchingEntries(JarVisitor.java:201) at org.hibernate.ejb.Ejb3Configuration.addMetadataFromVisitor(Ejb3Configuration.java:178) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:160) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:103) To fix this code the package org.hibernate.ejb.packaging.FileZippedJarVisitor needs to be changed from protected void doProcessElements() throws IOException { JarFile jarFile; try { jarFile = new JarFile( jarUrl.getFile()); } catch (IOException ze) { log.warn( "Unable to find file (ignored): " + jarUrl, ze ); return; } Enumeration<? extends ZipEntry> entries = jarFile.entries(); while ( entries.hasMoreElements() ) { ZipEntry entry = entries.nextElement(); if ( !entry.isDirectory() ) { addElement( entry.getName(), new BufferedInputStream( jarFile.getInputStream( entry ) ), new BufferedInputStream( jarFile.getInputStream( entry ) ) ); } } } to protected void doProcessElements() throws IOException { JarFile jarFile; try { jarFile = new JarFile( jarUrl.toURI().getPath() ); } catch (Exception ze) { log.warn( "Unable to find file (ignored): " + jarUrl, ze ); return; } Enumeration<? extends ZipEntry> entries = jarFile.entries(); while ( entries.hasMoreElements() ) { ZipEntry entry = entries.nextElement(); if ( !entry.isDirectory() ) { addElement( entry.getName(), new BufferedInputStream( jarFile.getInputStream( entry ) ), new BufferedInputStream( jarFile.getInputStream( entry ) ) ); } } }

    Hibernate JIRA | 1 decade ago | Jose Vargas
    java.util.zip.ZipException: The system cannot find the path specified

  1. cesarnog 291 times, last 1 month ago
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.zip.ZipException

    The system cannot find the path specified

    at java.util.zip.ZipFile.open()
  2. Java RT
    JarFile.<init>
    1. java.util.zip.ZipFile.open(Native Method)
    2. java.util.zip.ZipFile.<init>(ZipFile.java:112)
    3. java.util.jar.JarFile.<init>(JarFile.java:117)
    3 frames