A few thoughts without diving to deep into the issue you posted.

 - SYSE0001 happens to be our default error message. The bad news is that
can be basically any error we have not specified.
 - The CLI will connect to a cluster if a cluster ip address was supplied,
otherwise it will start a local cluster controller and node controller to
execute the query. It does not need to have a cluster set up.
 - If your API is just a wrapper for the CLI, the only parameter should be
the query to execute.
 - The test you have created should work on its own. In the final version
of the API, I think the cluster will offer the API as a service. Basically
you will need to start a cluster to gain access to the API. (Although I
think the CLI should support its current model, where it will use the API
to the cluster if given or create a local instance.)

Hope this helps, until someone can dive into your code.

On Wed, Mar 2, 2016 at 7:51 AM, Dilanka Rathnayake <[email protected]>
wrote:

> 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>    *
>

Reply via email to