java.nio.file.FileSystemException: M:\test: Un dispositivo collegato al sistema non è in funzione.

GitHub | matbest1 | 4 months ago
  1. 0

    GitHub comment 316#241839467

    GitHub | 4 months ago | matbest1
    java.nio.file.FileSystemException: M:\test: Un dispositivo collegato al sistema non è in funzione.
  2. 0

    GitHub comment 43#139100680

    GitHub | 1 year ago | qwertzguy
    java.nio.file.FileSystemException: /home/gaspardvk/tmp/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob/bob: File name too long
  3. 0

    crash on startup

    GitHub | 1 year ago | tomast1337
    java.nio.file.FileSystemException: I:\lol: O dispositivo não está pronto.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FULL PRODUCT VERSION : java version "1.7.0_51" OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.13.10.1) OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode) ADDITIONAL OS VERSION INFORMATION : Linux mhassert 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:52:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux EXTRA RELEVANT SYSTEM CONFIGURATION : zipfs.jar containing package "com/sun/nio/zipfs" must be in classpath. Using Ubuntu, this is provided by the package "openjdk-7-jre-headless" A DESCRIPTION OF THE PROBLEM : Summary: When com.sun.nio.zipfs.ZipFileSystemProvider is present, all calls to java.nio.file.FileSystems.newFileSystem() for non-zip files leak an open file descriptor. Details: - When one calls java.nio.file.FileSystems.newFileSystem() for an existing file, all installed FileSystemProviders are checked by calling .newFileSystem() on them. - com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem() checks whether ZipFileSystem is applicable by trying to create a new Instance of it. - The constructor ZipFileSystem() opens in its second last line a new Channel to the file: this.ch = Files.newByteChannel(zfpath, READ); - In its last line it tries to access the zip content, aborting with an exception if not successfull: this.cen = initCEN(); - In case of an exception the channel "this.ch" is never closed. Solution: I propose wrapping the last line in a try-catch-rethrow block, closing the channel in case of an exception. Note on bug priority: I am aware that ZipFileSystem is merely a demo and not an integral part of jre. But ironically this bug does not affect users of ZipFileSystem. It is a show-stopper for everyone using java.nio.file.FileSystems.newFileSystem() for any other kind of custom file system. It is enough to have ZipFileSystem on your system. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Steps to reproduce: - Call java.nio.file.FileSystems.newFileSystem() for an existing file that is not a valid zip file. (An empty file will do) - ProviderNotFoundException is thrown as expected. - A file descriptor to the file is kept alive. (using Linux, check with lsof | grep PID) - By repeating this steps you will eventually hit the file descriptor limit of your OS and a FileSystemException is thrown. See also provided test case. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - I expect to safely call java.nio.file.FileSystems.newFileSystem() for non-zip files without side effects. All file descriptors opened by ZipFileSystem and ZipFileSystemProvider should be released when the file is not a zip file. ACTUAL - - A file descriptor to the file is kept alive. (using Linux, check with lsof | grep PID) ERROR MESSAGES/STACK TRACES THAT OCCUR : Exception in thread "main" java.nio.file.FileSystemException: /tmp/test: Too many open files at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) at java.nio.file.Files.newByteChannel(Files.java:315) at java.nio.file.Files.newByteChannel(Files.java:361) at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:129) at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:139) at java.nio.file.FileSystems.newFileSystem(FileSystems.java:386) at de.abm.dependencies.ZipFileSystemBug.main(ZipFileSystemBug.java:30) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- // file ZipFileSystemBug.java import java.nio.file.FileSystem; import java.nio.file.FileSystemException; import java.nio.file.FileSystems; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.ProviderNotFoundException; /** * @author mhassert * */ public class ZipFileSystemBug { private static final String EXISTING_NON_ZIP_FILE = "/tmp/test"; /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { Path path = Paths.get(EXISTING_NON_ZIP_FILE); int i = 0; while (true) { try (FileSystem fs = FileSystems.newFileSystem(path, null);) { throw new Exception("THIS SHOULD NEVER HAPPEN"); } catch (final ProviderNotFoundException e) { // EXPECTED System.out.println(i++); } catch (FileSystemException e) { // NOT EXPECTED! e.printStackTrace(); throw e; } } } } ---------- END SOURCE ----------

    JDK Bug System | 3 years ago | Webbug Group
    java.nio.file.FileSystemException: /tmp/test: Too many open files
  6. 0

    Too many levels of symbolic links using Java NIO 2 - Paths.get(workFolder, timestamp);

    Stack Overflow | 3 years ago | Shiv Gopal
    java.nio.file.FileSystemException: /base/test/2014106/new: Too many levels of symbolic links

    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.nio.file.FileSystemException

      M:\test: Un dispositivo collegato al sistema non è in funzione.

      at sun.nio.fs.WindowsException.translateToIOException()
    2. Java RT
      Files.createDirectory
      1. sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)[?:1.8.0_102]
      2. sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)[?:1.8.0_102]
      3. sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)[?:1.8.0_102]
      4. sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:504)[?:1.8.0_102]
      5. java.nio.file.Files.createDirectory(Files.java:674)[?:1.8.0_102]
      5 frames
    3. org.cryptomator.ui
      MainController.didClickCreateNewVault
      1. org.cryptomator.ui.controllers.MainController.didClickCreateNewVault(MainController.java:197)[Cryptomator-1.1.4.jar:1.1.4]
      1 frame
    4. Java RT
      MethodUtil.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_102]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_102]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_102]
      4. java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_102]
      5. sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)[?:1.8.0_102]
      6. sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)[?:?]
      7. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_102]
      8. java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_102]
      9. sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)[?:1.8.0_102]
      9 frames
    5. javafx.fxml
      FXMLLoader$ControllerMethodEventHandler.handle
      1. javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1769)[jfxrt.jar:?]
      2. javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657)[jfxrt.jar:?]
      2 frames
    6. com.sun.javafx
      EventUtil.fireEvent
      1. com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)[jfxrt.jar:?]
      2. com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)[jfxrt.jar:?]
      3. com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)[jfxrt.jar:?]
      4. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)[jfxrt.jar:?]
      5. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)[jfxrt.jar:?]
      6. com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)[jfxrt.jar:?]
      7. com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)[jfxrt.jar:?]
      7 frames
    7. javafx.event
      Event.fireEvent
      1. javafx.event.Event.fireEvent(Event.java:198)[jfxrt.jar:?]
      1 frame
    8. FXSampler
      ContextMenuContent$MenuItemContainer.lambda$createChildren$343
      1. javafx.scene.control.MenuItem.fire(MenuItem.java:462)[jfxrt.jar:?]
      2. com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContainer.doSelect(ContextMenuContent.java:1405)[jfxrt.jar:?]
      3. com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContainer.lambda$createChildren$343(ContextMenuContent.java:1358)[jfxrt.jar:?]
      3 frames
    9. com.sun.javafx
      EventUtil.fireEvent
      1. com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)[jfxrt.jar:?]
      2. com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)[jfxrt.jar:?]
      3. com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)[jfxrt.jar:?]
      4. com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)[jfxrt.jar:?]
      5. com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)[jfxrt.jar:?]
      6. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)[jfxrt.jar:?]
      7. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)[jfxrt.jar:?]
      8. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)[jfxrt.jar:?]
      9. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)[jfxrt.jar:?]
      10. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)[jfxrt.jar:?]
      11. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)[jfxrt.jar:?]
      12. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)[jfxrt.jar:?]
      13. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)[jfxrt.jar:?]
      14. com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)[jfxrt.jar:?]
      15. com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)[jfxrt.jar:?]
      15 frames
    10. javafx.event
      Event.fireEvent
      1. javafx.event.Event.fireEvent(Event.java:198)[jfxrt.jar:?]
      1 frame
    11. javafx.scene
      Scene$ScenePeerListener.mouseEvent
      1. javafx.scene.Scene$MouseHandler.process(Scene.java:3757)[jfxrt.jar:?]
      2. javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)[jfxrt.jar:?]
      3. javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)[jfxrt.jar:?]
      4. javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)[jfxrt.jar:?]
      4 frames
    12. com.sun.javafx
      GlassViewEventHandler$MouseEventNotification.run
      1. com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:380)[jfxrt.jar:?]
      2. com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:294)[jfxrt.jar:?]
      2 frames
    13. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)[?:1.8.0_102]
      1 frame
    14. com.sun.javafx
      GlassViewEventHandler.handleMouseEvent
      1. com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:416)[jfxrt.jar:?]
      2. com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)[jfxrt.jar:?]
      3. com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:415)[jfxrt.jar:?]
      3 frames
    15. com.sun.glass
      WinApplication.lambda$null$148
      1. com.sun.glass.ui.View.handleMouseEvent(View.java:555)[jfxrt.jar:?]
      2. com.sun.glass.ui.View.notifyMouse(View.java:937)[jfxrt.jar:?]
      3. com.sun.glass.ui.win.WinApplication._runLoop(Native Method)[jfxrt.jar:?]
      4. com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)[jfxrt.jar:?]
      4 frames
    16. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[?:1.8.0_102]
      1 frame