Process Automation - HTTP POST operator fails after upgrade to 4.3 SP05
search cancel

Process Automation - HTTP POST operator fails after upgrade to 4.3 SP05

book

Article ID: 204403

calendar_today

Updated On:

Products

CA Process Automation Base Process Automation Manager

Issue/Introduction

After the upgrade of the environment was made to 4.3 SP05, a previously functional process with a HTTP Post operator started to fail:

Review c2o.log shows the following errors:

ERROR [com.optinuity.c2o.servicegroup.netutils.HttpGenericOperationsWrapper] [91-cf4499bf7c5a] IO Error when reading from response or when writing to file.
java.io.IOException: length cannot be negative: -1

ERROR [com.optinuity.c2o.servicegroup.netutils.HttpGenericOperationsWrapper] [91-cf4499bf7c5a] Error while executing request or processing HTTP response.
com.optinuity.c2o.util.C2OException: IO Error when reading from response or when writing to file.length cannot be negative: -1

INFO  [com.optinuity.c2o.servicegroup.netutils.HttpGenericOperationsWrapper] [91-cf4499bf7c5a] Shut down the HTTP client connection manager.
ERROR [com.optinuity.c2o.servicegroup.netutils.PostURLOperationRunner] [91-cf4499bf7c5a] Failed to run HTTPPostURLOperation
com.optinuity.c2o.util.C2OException: Error while executing request or processing HTTP response. class com.optinuity.c2o.util.C2OException. IO Error when reading from response or when writing to file.length cannot be negative: -1

Environment

Process Automation 4.3 SP05

Resolution

During the upgrade to SP05, there is a possibility to change the current JDK release to be used by the Orchestrator, offering the possibility to change from Oracle Java JDK to AdoptOpenJDK as explained in the official documentation:

JDK Prerequisites

The recommended version for AdoptOpenJDK is jdk8u222-b10, if a newer version is installed some unexpected behaviors may be seen on the environment, just like the error shown here with the HTTP Post operator.

The solution for this is to downgrade the current installed OpenJDK to the suggested version.