Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1154

NSS startup error: java.lang.IllegalArgumentException: URI is not hierarchical

    Details

      Description

      The NanoSparqlServer resourceBaseURL is computed incorrectly. This can result in a stack trace such as the following:

      WARN : 79643      main org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:506): Failed startup of context o.e.j.w.WebAppContext@6b8d96d9{/bigdata,file:C:/Users/someone/code/BIGDATA_NSS_GROUP_COMMIT/bigdata-war/src/,null}{file:C:/Users/someone/code/BIGDATA_NSS_GROUP_COMMIT/bigdata-war/src}
      java.lang.IllegalArgumentException: URI is not hierarchical
      	at java.io.File.<init>(Unknown Source)
      	at org.eclipse.jetty.util.resource.FileResource.<init>(FileResource.java:107)
      	at org.eclipse.jetty.util.resource.FileResource.addPath(FileResource.java:210)
      	at org.eclipse.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:835)
      	at org.eclipse.jetty.webapp.WebInfConfiguration.findWebInfLibJars(WebInfConfiguration.java:708)
      	at org.eclipse.jetty.webapp.WebInfConfiguration.findJars(WebInfConfiguration.java:689)
      	at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:128)
      	at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:460)
      	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
      	at org.eclipse.jetty.server.Server.start(Server.java:387)
      

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        Kirk has specified a fix as follows.

        NanoSparqlServerBLZG-903

                        // Check the file system. 
        //                resourceBaseURL = new URL("file:" + file.getAbsolutePath());
                        resourceBaseURL = file.toURI().toURL();
        

        Committed to SVN GIT in the NSS_GROUP_COMMIT branch. 3ed69428a3cab0dde0f2dabcc8b2f0e1255ec0c5

        Show
        bryanthompson bryanthompson added a comment - Kirk has specified a fix as follows. NanoSparqlServerBLZG-903 // Check the file system. // resourceBaseURL = new URL("file:" + file.getAbsolutePath()); resourceBaseURL = file.toURI().toURL(); Committed to SVN GIT in the NSS_GROUP_COMMIT branch. 3ed69428a3cab0dde0f2dabcc8b2f0e1255ec0c5
        Hide
        bryanthompson bryanthompson added a comment -

        I will do QA on this as part of the NSS_GROUP_COMMIT branch.

        Show
        bryanthompson bryanthompson added a comment - I will do QA on this as part of the NSS_GROUP_COMMIT branch.

          People

          • Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: