I created a Restful API to get query result using vxquery CLI. I implemented a new java class called vxquery.java and the controller of Rest service call the 'run()' method in vxquery.java. But, as soon as the 'run()' has been called an exception is thrown as follows. 'org.apache.hyracks.api.exceptions.HyracksDataException: org.apache.hyracks.api.exceptions.HyracksDataException: org.apache.hyracks.api.exceptions.HyracksDataException: org.apache.hyracks.algebricks.common.exceptions.AlgebricksException: org.apache.vxquery.exceptions.SystemException: SYSE0001:'
If I run same method in same way through the main method in vxquery.java, then it runs normally and gives the expected result. When I was debugging, I have found out that the exception is throwing because of "request error" when calling the method 'deliverIncomingMessage()' in RPCInterface.class. I think the above mentioned error is occurred because the CLI is starting a cluster and run the query even if a cluster has not been defined. At that time we cant send requests to localhost by tomcat. Is this correct? Does anyone has an idea to solve this. Appreciate any help regarding this. I am trying to find a solution almost 2 days. Still no success. You can check my code here.. https://github.com/dilankamr/vxquery Please check "readme" for more info. *Best Regards.* *Dilanka Rathnayake,* *Department of Computer Engineering,* *Faculty of Engineering,**University of Peradeniya,* *Sri Lanka.* * <https://lk.linkedin.com/in/dilankamr> <https://www.facebook.com/Dilankamr> *
