Running JVMD Agent on OC4J Container gives java.lang.StringIndexOutOfBoundsException (Doc ID 1383362.1)

Last updated on NOVEMBER 05, 2016

Applies to:

APM - Application Performance Management - Version 11.0.0.0 to 11.1.0.1 [Release 11.1]
Information in this document applies to any platform.

Symptoms

After deploying Java Agent (jamagent.war) to OC4J 10.1.3.x container and restarting OC4J, the following errors occur:

jamagent.2011-11-09soa: Error initializing servlet
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1768)
at jamagent.jamagent.copyToTemporaryLocation(jamagent.java:334)
at jamagent.jamagent.loadNative(jamagent.java:616)
at jamagent.jamagent.<init>(jamagent.java:900)
at jamagent.jaminit.init(jaminit.java:50)
...
11/11/10 09:06:36.714 jamagent.2011-11-09soa: Error preloading servlet
javax.servlet.ServletException: Error initializing servlet
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5033)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4930)

 

Cause

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