]
Gary Brown commented on RTGOV-560:
----------------------------------
[~ewittmann] Any thoughts on what is causing this? The manifest imports the
org.overlord.rtgov.active.collection.QuerySpec class
(
Accessing the ActiveCollection REST service fails
-------------------------------------------------
Key: RTGOV-560
URL:
https://issues.jboss.org/browse/RTGOV-560
Project: RTGov (Run Time Governance)
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Gary Brown
Assignee: Gary Brown
Fix For: 2.0.0.Final
Accessing the Active Collection REST service within Fuse causes the following error:
Error 400 Could not find message body reader for type: class
org.overlord.rtgov.active.collection.QuerySpec of content type: application/json
Previously the QuerySpec was passed via the REST API as a string, and converted to a
QuerySpec class within the REST service. However to make the REST API docs more
descriptive, the method was updated to pass in a QuerySpec object - which works fine in
EAP, but is failing in Fuse.
The exception in the log is:
{noformat}
21:52:58,747 | ERROR | qtp988607914-80 | SynchronousDispatcher | 309 -
org.jboss.resteasy.resteasy-jaxrs - 2.3.7.Final | Failed executing POST /acm/query
org.jboss.resteasy.spi.BadRequestException: Could not find message body reader for type:
class org.overlord.rtgov.active.collection.QuerySpec of content type: application/json
at
org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:153)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:136)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:159)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)[309:org.jboss.resteasy.resteasy-jaxrs:2.3.7.Final]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[91:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.overlord.commons.auth.filters.SamlBearerTokenAuthFilter.doFilterChain(SamlBearerTokenAuthFilter.java:238)[300:org.overlord.overlord-commons-auth:2.0.8.Final]
at
org.overlord.commons.auth.filters.SamlBearerTokenAuthFilter.doFilter(SamlBearerTokenAuthFilter.java:220)[300:org.overlord.overlord-commons-auth:2.0.8.Final]
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)[92:org.eclipse.jetty.aggregate.jetty-all-
{noformat}