My Oracle Support Banner

StringIndexOutOfBoundsException When Parsing HTTP Request Header (Doc ID 987973.1)

Last updated on OCTOBER 25, 2021

Applies to:

Oracle Containers for J2EE - Version to [Release AS10gR3]
Information in this document applies to any platform.


A servlet is deployed into OC4J. When getting header attributes of an HTTP request;
 it fails with the following exception: 

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.checkBounds(
    at java.lang.String.(
    at com.evermind.server.http.EvermindHttpServletRequest.newISOString(
    at com.evermind.server.http.EvermindHttpServletRequest.getHeaders(
    at com.evermind.server.http.EvermindHttpServletRequest.getHeaders(
    at _test__header._jspService(
    at com.orionserver.http.OrionHttpJspPage.service(
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(

This exception happens when invoking the getHeaders () method of the javax.servlet.http.HttpServletRequest  interface.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.