StringIndexOutOfBoundsException When Parsing HTTP Request Header

(Doc ID 987973.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version: to - Release: AS10gR3 to AS10gR3
Information in this document applies to any platform.
***Checked for relevance on 30-Nov-2011***


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.


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms