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

wordpress.com | 4 months ago
  1. 0

    How to create a WSDL-first SOAP client in Java with CXF and Maven | Logic Sector Blog

    wordpress.com | 4 months ago
    java.util.zip.ZipException: The system cannot find the path specified
  2. 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
  3. 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
  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:203)
    3. java.util.jar.JarFile.<init>(JarFile.java:132)
    4. java.util.jar.JarFile.<init>(JarFile.java:70)
    4 frames
  3. CXF M2 Plugins
    WSDL2JavaMojo.execute
    1. org.apache.cxf.maven_plugin.CodegenUtils.getClassTime(CodegenUtils.java:74)
    2. org.apache.cxf.maven_plugin.CodegenUtils.getCodegenTimestamp(CodegenUtils.java:48)
    3. org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:221)
    3 frames
  4. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
    1 frame
  5. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
    5. org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
    6. org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
    7. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
    7 frames
  6. org.apache.maven
    MavenEmbedder.execute
    1. org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
    2. org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
    3. org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
    3 frames
  7. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
    2. org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
    2 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  9. Plexus
    Launcher.main
    1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
    4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
    5. org.codehaus.classworlds.Launcher.main(Launcher.java:31)
    5 frames