0 Replies Latest reply on Jul 21, 2014 11:37 PM by jbpm 6

    Error calling Rest API using curl command

    jbpm 6 Newbie

      Running curl command to get the HR history instance but get resteasy error. Can anyone please help if I have triggered the curl command correctly? I am using jbpm 6.1.0_CR1

       

      curl -v -H 'Content-Type: application/json' http://krisv:krisv@localhost:8080/jbpm-console/rest/runtime/org.jbpm:HR:1.0/history/instance

       

      org.jboss.resteasy.spi.LoggableFailure: Unable to find contextual data of type: javax.ws.rs.core.HttpHeaders

          org.jboss.resteasy.core.ContextParameterInjector$GenericDelegatingProxy.invoke(ContextParameterInjector.java:53)

          com.sun.proxy.$Proxy182.getRequestHeaders(Unknown Source)

          org.kie.services.remote.rest.ResourceBase.getVariant(ResourceBase.java:118)

          org.kie.services.remote.rest.exception.DescriptiveExceptionHandler.toResponse(DescriptiveExceptionHandler.java:66)

          org.kie.services.remote.rest.exception.DescriptiveExceptionHandler.toResponse(DescriptiveExceptionHandler.java:25)

          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          java.lang.reflect.Method.invoke(Method.java:606)

          org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:44)

          org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)

          org.kie.services.remote.rest.exception.DescriptiveExceptionHandler$Proxy$_$$_WeldClientProxy.toResponse(DescriptiveExceptionHandler$Proxy$_$$_WeldClientProxy.java)

          org.jboss.resteasy.core.SynchronousDispatcher.executeExceptionMapper(SynchronousDispatcher.java:324)

          org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:229)

          org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:123)

          org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)

          org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)

          org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)

          javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

          org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)

          org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)

          org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)

          org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)