Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • JBPM 6.4 Error Startprocess RemoteRuntimeEngineFactory

    Posted on

    Code:
    // Select a user with the rest-all role.
    RuntimeEngine engine = RemoteRuntimeEngineFactory.newRestBuilder().addDeploymentId(deploymentId).addUrl(baseUrl)
    .addUserName(user).addPassword(password).build();
    // Create KieSession and TaskService instances and use them:
    KieSession ksession = engine.getKieSession();
    TaskService taskService = engine.getTaskService();
    // Each operation on a KieSession, TaskService, or AuditLogService (client)
    // instance
    // sends a request for the operation to the server side and waits for the
    // response.
    // If something goes wrong on the server side, the client will throw an
    // exception.
    ProcessInstance processInstance = ksession.startProcess(bpmProcessId);

    org.kie.remote.client.api.exception.RemoteCommunicationException: Unable to retrieve content from response
    at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:439)
    at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeCommand(AbstractRemoteCommandObject.java:160)
    at org.kie.services.client.api.command.TaskServiceClientCommandObject.getTasksAssignedAsPotentialOwner(TaskServiceClientCommandObject.java:566)
    at org.jbpm.beans.RemoteJavaApiRestClientExample.startProcessAndStartTask(RemoteJavaApiRestClientExample.java:59)
    at org.jbpm.beans.RemoteJavaApiRestClientExample.main(RemoteJavaApiRestClientExample.java:31)
    Caused by: org.kie.remote.common.rest.KieRemoteHttpRequestException: Unable to retrieve input stream of response
    at org.kie.remote.common.rest.KieRemoteHttpRequest.responseStream(KieRemoteHttpRequest.java:1389)
    at org.kie.remote.common.rest.KieRemoteHttpRequest.responseBuffer(KieRemoteHttpRequest.java:1407)
    at org.kie.remote.common.rest.KieRemoteHttpRequest.responseBody(KieRemoteHttpRequest.java:1349)
    at org.kie.remote.common.rest.KieRemoteHttpRequest.access$2100(KieRemoteHttpRequest.java:117)
    at org.kie.remote.common.rest.KieRemoteHttpRequest$5.body(KieRemoteHttpRequest.java:1315)
    at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:421)
    ... 4 more
    Caused by: java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1674)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at org.kie.remote.common.rest.KieRemoteHttpRequest.responseCode(KieRemoteHttpRequest.java:1329)
    at org.kie.remote.common.rest.KieRemoteHttpRequest.post(KieRemoteHttpRequest.java:719)
    at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:376)
    ... 4 more

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat