3 Replies Latest reply on Aug 7, 2017 10:35 AM by Duncan Doyle

    How to use ResultClass on Rest task

    Francisco Meneses Newbie

      Iḿ trying to invoke a service that response an XML, the call works fine, but the process fails trying to marshall the response.

      Someone has any example of a process using 'ResultClass' as an input parameter

       

      This is the response of my service:

       

      Captura de pantalla de 2016-06-22 10-49-14.png

       

      This is my process and the I/O of the Rest service task:

       

      Captura de pantalla de 2016-06-22 10-57-36.png Captura de pantalla de 2016-06-22 10-57-54.png

       

      This the error log:

       

      11:40:05,086 WARN  [org.drools.persistence.SingleSessionCommandService] (http-127.0.0.1:8080-4) Could not commit session: org.jbpm.workflow.instance.WorkflowRuntimeException: [SolarVilage.new_order_permitting:1 - Electric Permit Request:27] -- java.lang.RuntimeException: Unable to transform respose to object
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:149) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:75) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.JoinInstance.triggerCompleted(JoinInstance.java:266) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.JoinInstance.internalTrigger(JoinInstance.java:62) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:381) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:117) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:341) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:318) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:323) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:94) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:385) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:361) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:484) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:147) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:75) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:592) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:385) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:166) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.wih.ExternalTaskEventListener.processTaskState(ExternalTaskEventListener.java:75) [jbpm-human-task-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.wih.ExternalTaskEventListener.afterTaskCompletedEvent(ExternalTaskEventListener.java:124) [jbpm-human-task-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.events.TaskEventSupport.fireAfterTaskCompleted(TaskEventSupport.java:251) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:386) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.impl.TaskInstanceServiceImpl.complete(TaskInstanceServiceImpl.java:188) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:76) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:39) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.CompositeCommand.execute(CompositeCommand.java:146) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:69) [jbpm-human-task-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.impl.command.CommandBasedTaskService.complete(CommandBasedTaskService.java:174) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.complete(SynchronizedTaskService.java:133) [jbpm-runtime-manager-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.kie.services.impl.UserTaskServiceImpl.complete(UserTaskServiceImpl.java:189) [jbpm-kie-services-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.kie.server.services.jbpm.UserTaskServiceBase.complete(UserTaskServiceBase.java:94) [kie-server-services-jbpm-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.kie.server.remote.rest.jbpm.UserTaskResource.complete(UserTaskResource.java:118) [kie-server-rest-jbpm-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_80]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_80]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_80]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_80]
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:561) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:543) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:128) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.13.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.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
      Caused by: org.jbpm.bpmn2.handler.WorkItemHandlerRuntimeException: java.lang.RuntimeException: Unable to transform respose to object
        at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:55) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:38) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.executeWorkItem(RESTWorkItemHandler.java:267) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:69) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:138) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        ... 89 more
      Caused by: java.lang.RuntimeException: Unable to transform respose to object
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.postProcessResult(RESTWorkItemHandler.java:329) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.executeWorkItem(RESTWorkItemHandler.java:251) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        ... 91 more
      Caused by: javax.xml.bind.UnmarshalException: elemento inesperado (URI:"", local:"order"). Los elementos esperados son (none)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:740) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:262) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:257) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:124) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1148) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:573) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:555) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:168) [jaxb-impl-2.2.11.jar:2.2.11]
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:496) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:258) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:229) [jaxb-impl-2.2.11.jar:2.2.11]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136) [jboss-jaxb-api_2.2_spec-1.0.4.Final-redhat-3.jar:1.0.4.Final-redhat-3]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:193) [jboss-jaxb-api_2.2_spec-1.0.4.Final-redhat-3.jar:1.0.4.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.transformResult(RESTWorkItemHandler.java:368) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.postProcessResult(RESTWorkItemHandler.java:325) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        ... 92 more
      
      
      11:40:05,092 WARN  [org.jbpm.services.task.persistence.TaskTransactionInterceptor] (http-127.0.0.1:8080-4) Could not commit session: org.jbpm.workflow.instance.WorkflowRuntimeException: [SolarVilage.new_order_permitting:1 - Electric Permit Request:27] -- java.lang.RuntimeException: Unable to transform respose to object
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:149) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:75) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.JoinInstance.triggerCompleted(JoinInstance.java:266) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.JoinInstance.internalTrigger(JoinInstance.java:62) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:381) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:117) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:341) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:318) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:323) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:94) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:385) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:361) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:484) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:147) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:75) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:592) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:385) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:166) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.wih.ExternalTaskEventListener.processTaskState(ExternalTaskEventListener.java:75) [jbpm-human-task-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.wih.ExternalTaskEventListener.afterTaskCompletedEvent(ExternalTaskEventListener.java:124) [jbpm-human-task-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.events.TaskEventSupport.fireAfterTaskCompleted(TaskEventSupport.java:251) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:386) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.impl.TaskInstanceServiceImpl.complete(TaskInstanceServiceImpl.java:188) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:76) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:39) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.CompositeCommand.execute(CompositeCommand.java:146) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:69) [jbpm-human-task-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.impl.command.CommandBasedTaskService.complete(CommandBasedTaskService.java:174) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.complete(SynchronizedTaskService.java:133) [jbpm-runtime-manager-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.kie.services.impl.UserTaskServiceImpl.complete(UserTaskServiceImpl.java:189) [jbpm-kie-services-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.kie.server.services.jbpm.UserTaskServiceBase.complete(UserTaskServiceBase.java:94) [kie-server-services-jbpm-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.kie.server.remote.rest.jbpm.UserTaskResource.complete(UserTaskResource.java:118) [kie-server-rest-jbpm-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_80]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_80]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_80]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_80]
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:561) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:543) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:128) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.13.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.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
      Caused by: org.jbpm.bpmn2.handler.WorkItemHandlerRuntimeException: java.lang.RuntimeException: Unable to transform respose to object
        at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:55) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:38) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.executeWorkItem(RESTWorkItemHandler.java:267) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:69) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:138) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        ... 89 more
      Caused by: java.lang.RuntimeException: Unable to transform respose to object
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.postProcessResult(RESTWorkItemHandler.java:329) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.executeWorkItem(RESTWorkItemHandler.java:251) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        ... 91 more
      Caused by: javax.xml.bind.UnmarshalException: elemento inesperado (URI:"", local:"order"). Los elementos esperados son (none)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:740) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:262) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:257) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:124) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1148) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:573) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:555) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:168) [jaxb-impl-2.2.11.jar:2.2.11]
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:496) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:258) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:229) [jaxb-impl-2.2.11.jar:2.2.11]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136) [jboss-jaxb-api_2.2_spec-1.0.4.Final-redhat-3.jar:1.0.4.Final-redhat-3]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:193) [jboss-jaxb-api_2.2_spec-1.0.4.Final-redhat-3.jar:1.0.4.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.transformResult(RESTWorkItemHandler.java:368) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.postProcessResult(RESTWorkItemHandler.java:325) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        ... 92 more
      
      
      11:40:05,147 ERROR [org.kie.server.remote.rest.jbpm.UserTaskResource] (http-127.0.0.1:8080-4) Unexpected error during processing [SolarVilage.new_order_permitting:1 - Electric Permit Request:27] -- java.lang.RuntimeException: Unable to transform respose to object: org.jbpm.workflow.instance.WorkflowRuntimeException: [SolarVilage.new_order_permitting:1 - Electric Permit Request:27] -- java.lang.RuntimeException: Unable to transform respose to object
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:149) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:75) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.JoinInstance.triggerCompleted(JoinInstance.java:266) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.JoinInstance.internalTrigger(JoinInstance.java:62) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:381) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:117) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:341) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:318) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:323) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:94) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:385) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:361) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:484) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:147) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:75) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:592) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:385) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:166) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.wih.ExternalTaskEventListener.processTaskState(ExternalTaskEventListener.java:75) [jbpm-human-task-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.wih.ExternalTaskEventListener.afterTaskCompletedEvent(ExternalTaskEventListener.java:124) [jbpm-human-task-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.events.TaskEventSupport.fireAfterTaskCompleted(TaskEventSupport.java:251) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:386) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.impl.TaskInstanceServiceImpl.complete(TaskInstanceServiceImpl.java:188) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:76) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:39) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.CompositeCommand.execute(CompositeCommand.java:146) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:69) [jbpm-human-task-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.services.task.impl.command.CommandBasedTaskService.complete(CommandBasedTaskService.java:174) [jbpm-human-task-core-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.complete(SynchronizedTaskService.java:133) [jbpm-runtime-manager-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.kie.services.impl.UserTaskServiceImpl.complete(UserTaskServiceImpl.java:189) [jbpm-kie-services-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.kie.server.services.jbpm.UserTaskServiceBase.complete(UserTaskServiceBase.java:94) [kie-server-services-jbpm-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.kie.server.remote.rest.jbpm.UserTaskResource.complete(UserTaskResource.java:118) [kie-server-rest-jbpm-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_80]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_80]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_80]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_80]
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:561) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:543) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:128) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.13.Final-redhat-1.jar:]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.13.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.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
      Caused by: org.jbpm.bpmn2.handler.WorkItemHandlerRuntimeException: java.lang.RuntimeException: Unable to transform respose to object
        at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:55) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:38) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.executeWorkItem(RESTWorkItemHandler.java:267) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:69) [drools-persistence-jpa-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:138) [jbpm-flow-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        ... 89 more
      Caused by: java.lang.RuntimeException: Unable to transform respose to object
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.postProcessResult(RESTWorkItemHandler.java:329) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.executeWorkItem(RESTWorkItemHandler.java:251) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        ... 91 more
      Caused by: javax.xml.bind.UnmarshalException: elemento inesperado (URI:"", local:"order"). Los elementos esperados son (none)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:740) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:262) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:257) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:124) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1148) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:573) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:555) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:168) [jaxb-impl-2.2.11.jar:2.2.11]
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:496) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555) [xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:258) [jaxb-impl-2.2.11.jar:2.2.11]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:229) [jaxb-impl-2.2.11.jar:2.2.11]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136) [jboss-jaxb-api_2.2_spec-1.0.4.Final-redhat-3.jar:1.0.4.Final-redhat-3]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:193) [jboss-jaxb-api_2.2_spec-1.0.4.Final-redhat-3.jar:1.0.4.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.transformResult(RESTWorkItemHandler.java:368) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
        at org.jbpm.process.workitem.rest.RESTWorkItemHandler.postProcessResult(RESTWorkItemHandler.java:325) [jbpm-workitems-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]
      
        • 1. Re: How to use ResultClass on Rest task
          Tito .. Newbie

          Same problem here, I created a Data Object from the kie-workbench, and defined the process with the rest task defining the ResultClass parameter as well.

          I seems that the classloader deployment.kie-server.war:main is not able to load that Data Object.

          Is it a bug or I am missing something?

           

          Caused by: org.jbpm.bpmn2.handler.WorkItemHandlerRuntimeException: java.lang.RuntimeException: Unable to transform response to object
                  at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:55)
                  at org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler.handleException(AbstractLogOrThrowWorkItemHandler.java:38)
                  at org.jbpm.process.workitem.rest.RESTWorkItemHandler.executeWorkItem(RESTWorkItemHandler.java:268)
                  at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:69)
                  at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:140)
                  ... 95 more
          Caused by: java.lang.RuntimeException: Unable to transform response to object
                  at org.jbpm.process.workitem.rest.RESTWorkItemHandler.postProcessResult(RESTWorkItemHandler.java:329)
                  at org.jbpm.process.workitem.rest.RESTWorkItemHandler.executeWorkItem(RESTWorkItemHandler.java:252)
                  ... 97 more
          Caused by: java.lang.ClassNotFoundException: com.myteam.prova.DisposabilityResponse from [Module "deployment.kie-server.war:main" from Service Module Loader]
                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
                  at java.lang.Class.forName0(Native Method)
                  at java.lang.Class.forName(Class.java:348)
                  at org.jbpm.process.workitem.rest.RESTWorkItemHandler.postProcessResult(RESTWorkItemHandler.java:323)
                  ... 98 more

          • 2. Re: How to use ResultClass on Rest task
            Duncan Doyle Newbie

            Do you have a reproducer project that I can try? It's kind of hard to debug this from just the logs and screenshots.

             

            Cheers,

             

            Duncan

            • 3. Re: How to use ResultClass on Rest task
              Duncan Doyle Newbie

              Looking closely at the I/O screenshot, it seems that the ResultClass parameter is wrong. This should be the fully qualified name of the class defined as a String AFAIK (so DataType should be "String" and not "Order". See also the code of the RestWorkItemHandler: jbpm/RESTWorkItemHandler.java at master · kiegroup/jbpm · GitHub ).

               

              Cheers,

               

              Duncan