activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Cons <>
Subject Error with Apollo REST API
Date Wed, 08 Jun 2011 12:20:02 GMT

Using apollo-1.0-20110607.125153-128, I got an error with the REST API.

I can run:

$ curl -u "guest:guest" 'http://localhost:8080/broker/connections.json'

and the resulting objects contain both an id and a subscription_count


I can filter the fields and get only the id:

$ curl -u "guest:guest" 'http://localhost:8080/broker/connections.json?f=id'

However, If I want only the subscription_count, I get an error:

$ curl -u "guest:guest" 'http://localhost:8080/broker/connections.json?f=subscription_count'
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /WEB-INF/scalate/errors/500.scaml. Reason:
<pre>    Not Found</pre></p><h3>Caused by:</h3><pre>org.josql.QueryParseException:
Unable to create getter: subscription_count
	at org.josql.expressions.Accessor.init(
	at org.josql.expressions.SelectItemExpression.init(
	at org.josql.Query.init(
	at org.josql.Query.parse(

Also, I'm surprised to get an HTML result when I asked for
JSON. Shouldn't the error be returned as a JSON object?



View raw message