You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eagle.apache.org by 郭桂生 <gu...@8lab.cn> on 2017/03/24 09:56:22 UTC

RESTful API Error with Get Policy

Hi:I have a problem in the eagle with docker container。it's use "docker pull apacheeagle/sandbox" to download the image and run it.
I was use the container is normal but when I development a topology for the eagle storm.


  It's have a error report when the project request the "http://172.17.0.2:9099/eagle-service/rest/entities?query=AlertDefinitionService[@application=%22userProfile%22+AND+@site=%22sandbox%22+AND+@enabled=%22true%22]{*}&pageSize=100",
the error msg like this:
{"success": false,
"exception": "java.io.IOException: org.apache.eagle.storage.exception.QueryCompileException: java.lang.IllegalArgumentException: Fail to convert string: true into type of boolean, illegal type: boolean\norg.apache.eagle.storage.operation.QueryStatement.execute(QueryStatement.java:43)\norg.apache.eagle.service.generic.GenericEntityServiceResource.search(GenericEntityServiceResource.java:402)\nsun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)\nsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\njava.lang.reflect.Method.invoke(Method.java:606)\ncom.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\ncom.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)\ncom.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\ncom.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)\ncom.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\n"
}
,then I Direct access the REST URL with the browser,I was have the same Error.


Can you help me?


Thank you