[ 
https://issues.apache.org/jira/browse/VXQUERY-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352782#comment-14352782
 ] 

Jay commented on VXQUERY-128:
-----------------------------

As you suggested, I have gone through the getting started steps. I have setup 
eclipse and downloaded vxquery-0.5. I tried to run the query mentioned in the 
article but ran into trouble.
Running the command: JAVA_OPTS="-Xmx1024m" sh ./target/appassembler/bin/vxq 
test.xq -compileonly, gave an error message:
Exception in thread "main" java.lang.NullPointerException
        at org.apache.vxquery.cli.VXQuery.getNodeList(VXQuery.java:316)
        at org.apache.vxquery.cli.VXQuery.runQueries(VXQuery.java:263)
        at org.apache.vxquery.cli.VXQuery.execute(VXQuery.java:161)
        at org.apache.vxquery.cli.VXQuery.main(VXQuery.java:121)

Running the command: JAVA_OPTS="-Xmx1024m" sh ./target/appassembler/bin/vxq 
test.xq, gave an error message(excluding most of the log messages):
Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
        The import org.apache.vxquery.functions.BuiltinOperators cannot be 
resolved
        BuiltinOperators cannot be resolved to a variable
        BuiltinOperators cannot be resolved to a variable
        BuiltinOperators cannot be resolved

        at 
org.apache.vxquery.compiler.rewriter.rules.RemoveUnusedSortDistinctNodesRule.<init>(RemoveUnusedSortDistinctNodesRule.java:30)
        at 
org.apache.vxquery.compiler.rewriter.RewriteRuleset.buildPathStepNormalizationRuleCollection(RewriteRuleset.java:87)
        at 
org.apache.vxquery.xmlquery.query.XMLQueryCompiler.buildDefaultLogicalRewrites(XMLQueryCompiler.java:233)
        at 
org.apache.vxquery.xmlquery.query.XMLQueryCompiler.<init>(XMLQueryCompiler.java:126)
        at org.apache.vxquery.cli.VXQuery.runQueries(VXQuery.java:263)
        at org.apache.vxquery.cli.VXQuery.execute(VXQuery.java:161)
        at org.apache.vxquery.cli.VXQuery.main(VXQuery.java:121)

Could you please tell where I could be going wrong?

> XMark Benchmark Support
> -----------------------
>
>                 Key: VXQUERY-128
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-128
>             Project: VXQuery
>          Issue Type: Task
>            Reporter: Preston Carman
>            Assignee: Preston Carman
>              Labels: gsoc, gsoc2015, java, mentor, xquery
>
> Currently only two XMark queries work in VXQuery. The attached issues must be 
> resolved to support all the XMark queries.
> The project will involve identifying all the issue related to XMark queries. 
> Each issue will require a plan to fix the issue (To be created in tandem with 
> the mentor). The student will then execute the plan to create error free 
> query execution. As secondary goal, the query should be optimized provide 
> reasonable query times.
> Goals
>  - All XMark queries execute error free.
>  - The queries are run on a large dataset as a benchmark test.
>  - (stretch goal) The queries are optimized to run efficiently.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to