WebService Execution Step throws error "org.apache.axis2.client.ServiceClient.getLastOperationContext()" is null
search cancel

WebService Execution Step throws error "org.apache.axis2.client.ServiceClient.getLastOperationContext()" is null

book

Article ID: 414817

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

After upgrading to DevTest 10.8.3.1 or 10.8.4, the Web Service Execution step fails when running in the Interactive Test Runner (ITR). The step throws a specific NullPointerException related to the Axis2 client.

Error Details (from ITR)

| Trapped Exception: java.lang.NullPointerException: Cannot invoke "org.apache.axis2.context.OperationContext.getMessageContext(String)" because the return value of "org.apache.axis2.client.ServiceClient.getLastOperationContext()" is null

| Trapped Message: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "org.apache.axis2.context.OperationContext.getMessageContext(String)" because the return value of "org.apache.axis2.client.ServiceClient.getLastOperationContext()" is null

Environment

DevTest Versions: 10.8.3.1 and 10.8.4

Cause

The root cause is a SOAP version mismatch between the transport layer and the message body. While older versions using Axis1 were more permissive, the Axis2 engine used in newer DevTest versions enforces strict protocol validation.

The error occurs when the configuration uses:

  • Transport: SOAP 1.1 (text/xml)

  • Payload: SOAP 1.2 Envelope (xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope")

This mismatch triggers org.apache.axis2.AxisFault: Transport level information does not match with SOAP Message namespace URI, which ultimately results in the NullPointerException because the operation context fails to initialize.

Resolution

Please open a Broadcom Support ticket referencing DE657463 to obtain the required files.

Required Files:

  1. axis2.xml

  2. Patch File (Version Dependent):

    • For DevTest 10.8.4.x: patch_DE649894_10.8.4_GA.jar

    • For DevTest 10.8.3.1: patch_DE649894_10.8.3_GA.jar

Implementation Steps:

These steps must be performed on all Workstation machines and all server machines running VSE, Coordinator, or Simulator components.

  1. Backup Configuration: Navigate to LISA_HOME/repository/conf/ and move the existing axis2.xml to a secure backup folder.

  2. Update Configuration: Place the new axis2.xml file into the LISA_HOME/repository/conf folder.

  3. Apply Patch: Place the appropriate .jar patch file into the LISA_HOME/lib/patches folder. (Create the patches folder if it does not exist).

  4. Restart Components:

    • Relaunch the DevTest Workstation.

    • Restart all DevTest server services: Registry, Coordinator, Simulator, and VSE.

  5. Verification: Re-run the failed Web Service Execution Step in the ITR to confirm the fix.