Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-46

"org.kie.remote.services.exception.KieRemoteServicesDeploymentException: Could not unmarshall user-defined class instance parameter of type" with multiple @Remotable classes in a dependent jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 6.x.x
    • jBPM Core
    • Hide
      Show
      Start BPMS Unzip the attached multi-remotable-reproducer.zip cd multi-remotable-reproducer cd custom_remotable_pojo mvn clean install cd ../jbpm_proj_kjar mvn clean install Deploy the jbpm project (e.g. curl -u bpmsAdmin:password1! -X POST http://localhost:8080/business-central/rest/deployment/com.sample:jbpm-simple-kjar:1.0.0-SNAPSHOT/deploy ) cd ../rest_remote_client Edit ProcessStartTest.java if you change username/password mvn test

      When you have multiple @Remotable classes in a dependent jar (not kjar) and make a REST call, you will hit the following error:

      14:49:28,290 WARN  [org.kie.remote.services.cdi.ProcessRequestBean] (http-127.0.0.1:8080-2) Unable to execute StartProcessCommand/0: org.kie.remote.services.exception.KieRemoteServicesDeploymentException: Could not unmarshall user-defined class instance parameter of type 'myPojo2'
      	at org.kie.remote.services.cdi.ProcessRequestBean.verifyObjectHasBeenUnmarshalled(ProcessRequestBean.java:277) [kie-remote-services-6.4.0.Final-redhat-3-debug01.jar:6.4.0.Final-redhat-3]
      	at org.kie.remote.services.cdi.ProcessRequestBean.checkThatUserDefinedClassesWereUnmarshalled(ProcessRequestBean.java:266) [kie-remote-services-6.4.0.Final-redhat-3-debug01.jar:6.4.0.Final-redhat-3]
      	at org.kie.remote.services.cdi.ProcessRequestBean.preprocessCommand(ProcessRequestBean.java:241) [kie-remote-services-6.4.0.Final-redhat-3-debug01.jar:6.4.0.Final-redhat-3]
      	at org.kie.remote.services.cdi.ProcessRequestBean.processCommand(ProcessRequestBean.java:180) [kie-remote-services-6.4.0.Final-redhat-3-debug01.jar:6.4.0.Final-redhat-3]
      	at org.kie.remote.services.cdi.ProcessRequestBean$Proxy$_$$_WeldClientProxy.processCommand(ProcessRequestBean$Proxy$_$$_WeldClientProxy.java) [kie-remote-services-6.4.0.Final-redhat-3-debug01.jar:6.4.0.Final-redhat-3]
      	at org.kie.remote.services.util.ExecuteCommandUtil.restProcessJaxbCommandsRequest(ExecuteCommandUtil.java:63) [kie-remote-services-6.4.0.Final-redhat-3-debug01.jar:6.4.0.Final-redhat-3]
      	at org.kie.remote.services.rest.ExecuteResourceImpl.execute(ExecuteResourceImpl.java:60) [kie-remote-services-6.4.0.Final-redhat-3-debug01.jar:6.4.0.Final-redhat-3]
      	at org.kie.remote.services.rest.ExecuteResourceImpl$Proxy$_$$_WeldClientProxy.execute(ExecuteResourceImpl$Proxy$_$$_WeldClientProxy.java) [kie-remote-services-6.4.0.Final-redhat-3-debug01.jar:6.4.0.Final-redhat-3]
      ...
      

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: