Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-43

Add support for undertow websockets and concurrency utils and fix for InvalidPathException on Windows

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Alpha6
    • Component/s: None
    • Labels:
      None

      Description

      On Windows, that location.getPath returns with an extra slash at the front of the path string, causing Paths.get() to throw the exception:
      <pre>
      Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/amann.malik/IdeaProjects/demo-warming-service/target/demo-warming-service-1.0-SNAPSHOT-swarm.jar
      at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
      at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
      at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
      at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
      at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
      at java.nio.file.Paths.get(Paths.java:84)
      at org.wildfly.swarm.bootstrap.util.Layout.getRoot(Layout.java:53)
      at org.wildfly.swarm.bootstrap.util.Layout.isFatJar(Layout.java:29)
      at org.wildfly.swarm.bootstrap.modules.BootstrapModuleFinder.findModule(BootstrapModuleFinder.java:36)
      at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:452)
      at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:355)
      at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:302)
      at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:234)
      at org.wildfly.swarm.bootstrap.Main.main(Main.java:37)

      Process finished with exit code 1
      </pre>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                amannm Amann Malik (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: