java.lang.IllegalArgumentException: URI authority component has undefined host

Java.net JIRA | qui.tiqe | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    The following code will result in an java.lang.IllegalArgumentException exception when using TrueZIP in combination with Java 1.7 (the path is assumed to be valid): TFile tfile = new TFile("\\\\hostname\\share\\test.zip"); System.out.println( tfile.length() ); results in: Exception in thread "main" java.lang.IllegalArgumentException: URI authority component has undefined host at sun.nio.fs.WindowsUriSupport.fromUri(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.getPath(Unknown Source) at java.nio.file.Paths.get(Unknown Source) at de.schlichtherle.truezip.fs.nio.file.FileController.<init>(FileController.java:50) at de.schlichtherle.truezip.fs.nio.file.FileDriver.newController(FileDriver.java:31) at de.schlichtherle.truezip.fs.FsAbstractCompositeDriver.newController(FsAbstractCompositeDriver.java:33) at de.schlichtherle.truezip.fs.FsDefaultManager.getController0(FsDefaultManager.java:59) at de.schlichtherle.truezip.fs.FsDefaultManager.getController0(FsDefaultManager.java:63) at de.schlichtherle.truezip.fs.FsDefaultManager.getController(FsDefaultManager.java:51) at de.schlichtherle.truezip.file.TFile.getController(TFile.java:1495) at de.schlichtherle.truezip.file.TFile.getController(TFile.java:1490) at de.schlichtherle.truezip.file.TFile.length(TFile.java:2070) More surprisingly, when using Java 1.6 this error does not occur. Instead I get the result I desire. Executing the following code will produce the expected result on my machine both for Java 1.6 AND 1.7: File file = new File("\\\\hostname\\share\\test.zip"); System.out.println( file.length() ); So as far as I can tell there seems to be a bug in TrueZIP. I also tested the latest TrueZIP revision (5541). This revision yields the same results.

    Java.net JIRA | 4 years ago | qui.tiqe
    java.lang.IllegalArgumentException: URI authority component has undefined host
  2. 0

    The following code will result in an java.lang.IllegalArgumentException exception when using TrueZIP in combination with Java 1.7 (the path is assumed to be valid): TFile tfile = new TFile("\\\\hostname\\share\\test.zip"); System.out.println( tfile.length() ); results in: Exception in thread "main" java.lang.IllegalArgumentException: URI authority component has undefined host at sun.nio.fs.WindowsUriSupport.fromUri(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.getPath(Unknown Source) at java.nio.file.Paths.get(Unknown Source) at de.schlichtherle.truezip.fs.nio.file.FileController.<init>(FileController.java:50) at de.schlichtherle.truezip.fs.nio.file.FileDriver.newController(FileDriver.java:31) at de.schlichtherle.truezip.fs.FsAbstractCompositeDriver.newController(FsAbstractCompositeDriver.java:33) at de.schlichtherle.truezip.fs.FsDefaultManager.getController0(FsDefaultManager.java:59) at de.schlichtherle.truezip.fs.FsDefaultManager.getController0(FsDefaultManager.java:63) at de.schlichtherle.truezip.fs.FsDefaultManager.getController(FsDefaultManager.java:51) at de.schlichtherle.truezip.file.TFile.getController(TFile.java:1495) at de.schlichtherle.truezip.file.TFile.getController(TFile.java:1490) at de.schlichtherle.truezip.file.TFile.length(TFile.java:2070) More surprisingly, when using Java 1.6 this error does not occur. Instead I get the result I desire. Executing the following code will produce the expected result on my machine both for Java 1.6 AND 1.7: File file = new File("\\\\hostname\\share\\test.zip"); System.out.println( file.length() ); So as far as I can tell there seems to be a bug in TrueZIP. I also tested the latest TrueZIP revision (5541). This revision yields the same results.

    Java.net JIRA | 4 years ago | qui.tiqe
    java.lang.IllegalArgumentException: URI authority component has undefined host
  3. 0

    using truezip in shadowJar built with gradle

    Stack Overflow | 2 years ago | inx
    java.util.ServiceConfigurationError: file (Unknown file system scheme! May be the class path doesn't contain the respective driver module or it isn't set up correctly?)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ServiceConfigurationError when using ssh+sftp file system provider

    GitHub | 3 years ago | helsing
    java.util.ServiceConfigurationError: file (unknown file system scheme - check run time class path configuration)

    2 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.lang.IllegalArgumentException

      URI authority component has undefined host

      at sun.nio.fs.WindowsUriSupport.fromUri()
    2. Java RT
      Paths.get
      1. sun.nio.fs.WindowsUriSupport.fromUri(Unknown Source)
      2. sun.nio.fs.WindowsFileSystemProvider.getPath(Unknown Source)
      3. java.nio.file.Paths.get(Unknown Source)
      3 frames
    3. de.schlichtherle.truezip
      FsDefaultManager.getController
      1. de.schlichtherle.truezip.fs.nio.file.FileController.<init>(FileController.java:50)
      2. de.schlichtherle.truezip.fs.nio.file.FileDriver.newController(FileDriver.java:31)
      3. de.schlichtherle.truezip.fs.FsAbstractCompositeDriver.newController(FsAbstractCompositeDriver.java:33)
      4. de.schlichtherle.truezip.fs.FsDefaultManager.getController0(FsDefaultManager.java:59)
      5. de.schlichtherle.truezip.fs.FsDefaultManager.getController0(FsDefaultManager.java:63)
      6. de.schlichtherle.truezip.fs.FsDefaultManager.getController(FsDefaultManager.java:51)
      6 frames
    4. TrueZIP File*
      TFile.length
      1. de.schlichtherle.truezip.file.TFile.getController(TFile.java:1495)
      2. de.schlichtherle.truezip.file.TFile.getController(TFile.java:1490)
      3. de.schlichtherle.truezip.file.TFile.length(TFile.java:2070)
      3 frames