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

BigdataSailFactory.connect()

    XMLWordPrintable

    Details

      Description

       
      //Both of the lines below generate an exception as it appears that the /sparql is appended twice.  The  workaround is to create the BigdataSailRemoteRepository directly not using the factory method.
      
       Repository repo = BigdataSailFactory.connect("http://localhost:9999/");
       Repository repo = BigdataSailFactory.connect("localhost",9999);
      
      

      Exception

      org.openrdf.repository.RepositoryException: com.bigdata.rdf.sail.webapp.client.HttpException: Status 
      
      				Code=404, Status Line=Not Found, Response=<html>
      
      
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <title>Error 404 Not Found</title>
      </head>
      <body><h2>HTTP ERROR 404</h2>
      <p>Problem accessing /bigdata/sparql/sparql. Reason:
      <pre>    Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
      
      </body>
      </html>
      
      

      WORKAROUND:

       BigdataSailRemoteRepository repo = new BigdataSailRemoteRepository("http://localhost:9999/bigdata");
      

      FIX: The issue is in line 141 of the RemoteRepositoryManager, which post-pends /sparql for all cases.

      public RemoteRepositoryManager(final String serviceURL,
                  final boolean useLBS, final HttpClient httpClient,
                  final Executor executor) {
      
              super(serviceURL + "/sparql", useLBS, httpClient, executor);
      
              this.baseServiceURL = serviceURL;
      
          }
      

        Attachments

          Activity

            People

            Assignee:
            beebs Brad Bebee
            Reporter:
            beebs Brad Bebee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: