Details

      Description

      SELECT *
      {  { SELECT * { ?s ?p ?o } LIMIT 1 }
         FILTER ( ?s = <eg:a> )
      }
      

      stack trace below

      workaround

      SELECT *
      {  { SELECT * { ?s ?p ?o } LIMIT 1 }
         FILTER ( ?s = <eg:a>|| 1 = 0 )
      }
      
      java.util.concurrent.ExecutionException: java.lang.Exception: java.lang.ClassCastException: com.bigdata.rdf.sparql.ast.ConstantNode cannot be cast to com.bigdata.rdf.sparql.ast.VarNode
      	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:111)
      	at com.bigdata.rdf.sail.webapp.QueryServlet.doQuery(QueryServlet.java:640)
      	at com.bigdata.rdf.sail.webapp.QueryServlet.doPost(QueryServlet.java:177)
      	at com.bigdata.rdf.sail.webapp.RESTServlet.doPost(RESTServlet.java:206)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      	at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
      	at org.eclipse.jetty.server.Server.handle(Server.java:352)
      	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
      	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068)
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
      	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
      	at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.Exception: java.lang.ClassCastException: com.bigdata.rdf.sparql.ast.ConstantNode cannot be cast to com.bigdata.rdf.sparql.ast.VarNode
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:1092)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:454)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	... 1 more
      Caused by: java.lang.ClassCastException: com.bigdata.rdf.sparql.ast.ConstantNode cannot be cast to com.bigdata.rdf.sparql.ast.VarNode
      	at com.bigdata.rdf.sparql.ast.AssignmentNode.getVarNode(AssignmentNode.java:56)
      	at com.bigdata.rdf.sparql.ast.AssignmentNode.getVar(AssignmentNode.java:62)
      	at com.bigdata.rdf.sparql.ast.StaticAnalysis.getDefinitelyProducedBindings(StaticAnalysis.java:1408)
      	at com.bigdata.rdf.sparql.ast.StaticAnalysis.getDefinitelyProducedBindings(StaticAnalysis.java:860)
      	at com.bigdata.rdf.sparql.ast.StaticAnalysis.getDefinitelyProducedBindings(StaticAnalysis.java:1132)
      	at com.bigdata.rdf.sparql.ast.StaticAnalysis.getMaybeProducedBindings(StaticAnalysis.java:1192)
      	at com.bigdata.rdf.sparql.ast.StaticAnalysis.getMaybeProducedBindings(StaticAnalysis.java:982)
      	at com.bigdata.rdf.sparql.ast.optimizers.ASTBottomUpOptimizer.handleFiltersWithVariablesNotInScope(ASTBottomUpOptimizer.java:664)
      	at com.bigdata.rdf.sparql.ast.optimizers.ASTBottomUpOptimizer.optimize(ASTBottomUpOptimizer.java:253)
      	at com.bigdata.rdf.sparql.ast.optimizers.ASTOptimizerList.optimize(ASTOptimizerList.java:92)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convert(AST2BOpUtility.java:220)
      	at com.bigdata.rdf.sparql.ast.eval.ASTEvalHelper.evaluateTupleQuery(ASTEvalHelper.java:235)
      	at com.bigdata.rdf.sail.BigdataSailTupleQuery.evaluate(BigdataSailTupleQuery.java:93)
      	at com.bigdata.rdf.sail.BigdataSailTupleQuery.evaluate(BigdataSailTupleQuery.java:75)
      	at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:62)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$TupleQueryTask.doQuery(BigdataRDFContext.java:1211)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:1065)
      

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: