Uploaded image for project: 'RTGov (Run Time Governance)'
  1. RTGov (Run Time Governance)
  2. RTGOV-560

Accessing the ActiveCollection REST service fails

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.Final
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Unpack fuse 6.1.

      From rtgov distribution top level folder, run:
      ant -Dappserver.id=fuse-6.1 -Dpath=/path/to/jboss-fuse-6.1.0.redhat-379 -Doverlord-commons.admin.password=<password>

      Add the jboss repo to pax.mvn.url

      Start up fuse and run:
      features:addurl mvn:org.overlord.rtgov/overlord-rtgov-features-fuse6/<version>/xml/features
      features:install rtgov-all rtgov-samples-ordermgmt-epn rtgov-samples-sla rtgov-samples-policy-async rtgov-samples-policy-sync

      Then from a REST client, POST the following content to: http://localhost:8181/overlord-rtgov/acm/query with basic auth

      { "collection" : "Situations" }
      Show
      Unpack fuse 6.1. From rtgov distribution top level folder, run: ant -Dappserver.id=fuse-6.1 -Dpath=/path/to/jboss-fuse-6.1.0.redhat-379 -Doverlord-commons.admin.password=<password> Add the jboss repo to pax.mvn.url Start up fuse and run: features:addurl mvn:org.overlord.rtgov/overlord-rtgov-features-fuse6/<version>/xml/features features:install rtgov-all rtgov-samples-ordermgmt-epn rtgov-samples-sla rtgov-samples-policy-async rtgov-samples-policy-sync Then from a REST client, POST the following content to: http://localhost:8181/overlord-rtgov/acm/query with basic auth { "collection" : "Situations" }
    • Bugzilla Update:
      Perform

      Description

      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:

      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-
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                objectiser Gary Brown
                Reporter:
                objectiser Gary Brown
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: