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

DriverInfo fix for InvalidPathException on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2016.12.0
    • 2016.12.0
    • core
    • None
    • Hide

      start datasource example on windows system

      Show
      start datasource example on windows system
    • Low

    Description

      Like SWARM-43 bug, DriverInfo class (2016.12.0-SNAPSHOT 7d84c71d73bc777317bfedd63aed3e39eefd0e8c commit) crash on windows:
      Wed Nov 30 08:39:52 CET 2016 DEBUG [org.wildfly.swarm.runtime.server] (main) Temporarily storing configuration at: C:\Users\ss\AppData\Local\Temp\swarm-config-7073905745753577559.xml
      Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/ss/.m2/repository/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.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.datasources.runtime.DriverInfo.findLocationOfClass(DriverInfo.java:192)
      at org.wildfly.swarm.datasources.runtime.DriverInfo.findLocationOfClass(DriverInfo.java:160)
      at org.wildfly.swarm.datasources.runtime.DriverInfo.attemptDetection(DriverInfo.java:137)
      at org.wildfly.swarm.datasources.runtime.DriverInfo.detect(DriverInfo.java:94)
      at org.wildfly.swarm.datasources.runtime.DatasourceAndDriverCustomizer.attemptInstallation(DatasourceAndDriverCustomizer.java:139)
      at java.lang.Iterable.forEach(Iterable.java:75)
      at org.wildfly.swarm.datasources.runtime.DatasourceAndDriverCustomizer.customizeJDBCDrivers(DatasourceAndDriverCustomizer.java:75)
      at org.wildfly.swarm.datasources.runtime.DatasourceAndDriverCustomizer.customize(DatasourceAndDriverCustomizer.java:70)
      at org.wildfly.swarm.container.runtime.RuntimeServer.start(RuntimeServer.java:156)
      at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$bootstrap$30(ServerBootstrapImpl.java:141)
      at org.wildfly.swarm.container.runtime.LogSilencer$SilentExecutor.execute(LogSilencer.java:60)
      at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:115)
      at org.wildfly.swarm.Swarm.start(Swarm.java:309)
      at org.wildfly.swarm.Swarm.start(Swarm.java:285)
      at eu.epsglobal.hu.cmp.scheduler.service.main.SchedulerMain.main(SchedulerMain.java:54)
      Wed Nov 30 08:39:52 CET 2016 INFO [org.wildfly.swarm.runtime.server] (Thread-4) Shutdown requested ...
      java.lang.NullPointerException
      at org.jboss.as.server.SelfContainedContainer.stop(SelfContainedContainer.java:160)
      at org.wildfly.swarm.container.runtime.RuntimeServer.stop(RuntimeServer.java:216)
      at org.wildfly.swarm.container.runtime.RuntimeServer.lambda$new$33(RuntimeServer.java:117)
      at java.lang.Thread.run(Thread.java:745)

      Attachments

        Activity

          People

            bmcwhirt@redhat.com Bob McWhirter (Inactive)
            rombow_jira Imrich Scheffer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: