Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-4731

[GSS][6.4.z] "No enum constant org.kie.server.api.marshalling.MarshallingFormat.application/json;" when consuming container started on managed intelligent process server with rest api in json format.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.4.4
    • None
    • Kie-Server
    • None
    • CR1
    • PR merged
    • Workaround Exists
    • Hide

      Make sure that in POST REST request, content type is not using a sub-type, thus specified as Content-Type: 'application/json' rather than Content-Type: 'application/json; charset=utf-8'

      Show
      Make sure that in POST REST request, content type is not using a sub-type, thus specified as Content-Type: 'application/json' rather than Content-Type: 'application/json; charset=utf-8'
    • Hide

      1. follow the "steps to reproduce" in RHBPMS-4591 to set up and start the container from business central

      2. submit a rest request

      Show
      1. follow the "steps to reproduce" in RHBPMS-4591 to set up and start the container from business central 2. submit a rest request

      This issue is related to https://issues.jboss.org/browse/RHBPMS-4591

      After setting up and starting a managed intelligent process server as mentioned in RHBPMS-4591, if a rest POST request is sent to the url, for example:

      http://localsho:8080/kie-server/services/rest/server/containers/ContainerId/processes/Processid/instances

      the server side shows the following error and rest request fails:
      ERROR [org.kie.server.remote.rest.jbpm.ProcessResource] (http-127.0.0.1:8080-2) Unexpected error during processing No enum constant org.kie.server.api.marshalling.MarshallingFormat.application/json; charset=UTF-8: java.lang.IllegalArgumentException: No enum constant org.kie.server.api.marshalling.MarshallingFormat.application/json; charset=UTF-8
      at java.lang.Enum.valueOf(Enum.java:238) [rt.jar:1.8.0_65]
      at org.kie.server.api.marshalling.MarshallingFormat.valueOf(MarshallingFormat.java:18) [kie-server-api-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
      at org.kie.server.api.marshalling.MarshallingFormat.fromType(MarshallingFormat.java:52) [kie-server-api-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
      at org.kie.server.services.impl.marshal.MarshallerHelper.getFormat(MarshallerHelper.java:128) [kie-server-services-common-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
      at org.kie.server.services.impl.marshal.MarshallerHelper.unmarshal(MarshallerHelper.java:84) [kie-server-services-common-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
      at org.kie.server.services.jbpm.ProcessServiceBase.startProcess(ProcessServiceBase.java:83) [kie-server-services-jbpm-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
      at org.kie.server.remote.rest.jbpm.ProcessResource.startProcess(ProcessResource.java:93) [kie-server-rest-jbpm-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_65]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_65]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_65]
      at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:560) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:542) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:130) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.15.Final-redhat-1.jar:]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.12.Final-redhat-1.jar:7.5.12.Final-redhat-1]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:656) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.19.Final-redhat-1.jar:7.5.19.Final-redhat-1]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_65]

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-agiertli Anton Giertli
              Dominik Hanak Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: