IBM Support

webMethods Knowlegebase : NegativeArraySizeException using HTTP Interceptor (1795532)

Troubleshooting


Problem

Using the HTTP (HyperText Transfer Protocol) Interceptor such as the following:

import java.util.Map;

import com.softwareag.is.interceptor.HttpInterceptorException;

import com.softwareag.is.interceptor.HttpInterceptorIFC;

public class HttpInterceptor implements HttpInterceptorIFC {

@Override

public void preProcess(String requestURL, String requestType, String httpVersion, Map headers, byte[] streamBytes, String correlationID)

throws HttpInterceptorException {

System.out.println("HTTP Interceptor preProcess: " + requestType + " url=" + requestURL);

}

@Override

public void postProcess(int responseCode, String responseMessage, Map<String, String> headers, byte[] bytes, String correlationID) {

System.out.println("HTTP Interceptor postProcess: response=" + responseCode + " " + responseMessage);

}

}

This gives the following message:

"java.lang.NegativeArraySizeException: null

at com.softwareag.is.interceptor.HttpInterceptorManager.preProcess(HttpInterceptorManager.java:140)

at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:367)

at com.wm.util.pool.PooledThread.run(PooledThread.java:127)

at java.lang.Thread.run(Thread.java:748)"

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVYEV","label":"IBM webMethods Integration"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Integration Server (PIE)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"10.1"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFIWYE","label":"IBM webMethods B2B"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Integration Server (PIE)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"10.1"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSQG2X","label":"IBM webMethods Managed File Transfer"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Integration Server (PIE)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"10.1"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17226539