Tasks not right returned via Rest?

Hi Camunda Community,

I am developing a little web application (based on xQuery) and I take and put information from/to camunda via Rest. For example, my app displays all deployed processes and existing instances.

Now I’d like to get informaion about a (user)-task. I deployed the “Loan Approval” process from the getting started sources where the user task with Key “UserTask_11fud4o” exists. I try to get infomation about the task via the following HTTP request:

Calling this URL via the bowser, the results are well displayed. If I try to execute the rest call via an xQuery Editor, the result is Conversion failed: Line 59: </body> found, </hr> expected. (so it seems that the return informaion is not valid)

In my webapp the error is
HTTP Status 500 - org.jboss.resteasy.spi.ApplicationException:
org.jboss.resteasy.spi.BadRequestException: Malformed quality value.

I don’t have any idea how to solve the poblem. Can anybody help me?


Hi engine,

is your xQuery editor able to provide you with the request it makes (i.e. HTTP method, URL, request headers, and request body if applicable)? If yes, please post it here.



sorry, but I cannot give much information because of traveling by train at the moment.

But I use BaseX with this HTTP request: http://docs.basex.org/wiki/HTTP_Module

Does it help you? Regards, engine

Hi engine,

I am sorry but I am not familiar with that tool and haven’t got the time to try this out myself. If you can provide more details on the request once you have the time, that would be great.


Hi thorben,

I just had time again to examine the incident further:

The problem I have is getting the message “HTTP Status 500” when accessing the URL http://localhost:8080/engine-rest/task?taskDefinitionKey=UserTask_11fud4o via my application written in xQuery. The error-message “Conversion failed: Line 59: found, expected” that I mentioned in my first post is because of a wrong html-syntax in the “HTTP Status 500”–message that is sent by Tomcat.

I’m wondering why the 500-error occurs: calling the URL by Firefox, the JSON-Result is well displayed. Calling the URL
from BaseX, the 500 error occurs.

Here is a log entry taken from the tomcat access log: - - [16/Mar/2016:11:10:10 +0100] “GET /engine-rest/task?taskDefinitionKey=UserTask_11fud4o HTTP/1.1” 500 6246

0:0:0:0:0:0:0:1 - - [16/Mar/2016:11:11:23 +0100] “GET/engine-rest/task?taskDefinitionKey=UserTask_11fud4o HTTP/1.1” 200 608

Does it help you?
Regards, engine