websphere agent java.lang.StringIndexOutOfBoundsException

book

Article ID: 129593

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

Application is getting this error with 10.7 sp2 agent in agent log file.

3/14/19 08:47:25 AM EDT [ERROR] [IntroscopeAgent.Agent] Error extracting namespace from Rest WebService
3/14/19 08:47:25 AM EDT [ERROR] [IntroscopeAgent.Agent] 
java.lang.StringIndexOutOfBoundsException
    at java.lang.String.substring(String.java:1238)
    at java.lang.StringBuffer.append(StringBuffer.java:1070)
    at java.util.regex.Matcher.appendReplacement(Matcher.java:850)
    at java.util.regex.Matcher.replaceAll(Matcher.java:917)
    at com.ca.apm.extensions.springws.SpringWsUtils.getReplacedString(SpringWsUtils.java:280)
    at com.ca.apm.extensions.springws.nameformatter.SpringRestNameFormatter.getNamespace(SpringRestNameFormatter.java:46)
    at com.wily.powerpack.webservices.extension.agent.trace.nameformatter.ANameFormatter.INameFormatter_format(ANameFormatter.java:96)
    at com.wily.introscope.agent.trace.ATracerFactory.customFormat(ATracerFactory.java:287)
    at com.wily.introscope.agent.trace.ATracerFactory.runtimeFormat(ATracerFactory.java:461)
    at com.wily.introscope.agent.trace.ATracerFactory.formatParameterizedName(ATracerFactory.java:480)
    at com.wily.introscope.agent.trace.hc2.ASingleInstanceTracerFactoryHC.getComponentName(ASingleInstanceTracerFactoryHC.java:165)
    at com.wily.introscope.agent.trace.hc2.ASingleInstanceTracerFactoryHC.getBlameComponent(ASingleInstanceTracerFactoryHC.java:148)
    at com.wily.introscope.agent.trace.hc2.ASingleInstanceTracerFactoryHC.submitToTransactionStructureOnStartTrace(ASingleInstanceTracerFactoryHC.java:302)
    at com.wily.introscope.agent.trace.hc2.BlamePointTracer.doStartBlamePointTrace(BlamePointTracer.java:434)
    at com.wily.introscope.agent.trace.hc2.BlamePointTracer.ITracer_startTrace(BlamePointTracer.java:412)
    at com.ca.apm.extensions.springws.SpringWebServiceBlamePointTracer.ITracer_startTrace(SpringWebServiceBlamePointTracer.java:47)
    at com.wily.introscope.agent.trace.InvocationData.IMethodTracer_startTrace(InvocationData.java:1374)
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java)
    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:485)
    at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:362)
    at com.bcbsfl.etgw.eb.utilities.RestClient.getEbResponse(RestClient.java:125)
    at com.bcbsfl.etgw.eb.ejb.BxHome270_5010RequestProcessor.processMessage(BxHome270_5010RequestProcessor.java:352)
    at com.bcbsfl.etgw.core.ejb.GatewayMdb.onMessage(GatewayMdb.java:45)
    at com.ibm.ejs.jms.listener.MDBWrapper$PriviledgedOnMessage.run(MDBWrapper.java:309)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
    at com.ibm.ejs.jms.listener.MDBWrapper.callOnMessage(MDBWrapper.java:266)
    at com.ibm.ejs.jms.listener.MDBWrapper.onMessage(MDBWrapper.java:235)
    at com.ibm.mq.jms.MQSession$FacadeMessageListener.onMessage(MQSession.java:133)
    at com.ibm.msg.client.jms.internal.JmsSessionImpl.run(JmsSessionImpl.java:2911)
    at com.ibm.mq.jms.MQSession.run(MQSession.java:958)
    at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:1056)
    at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:1090)
    at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:760)
    at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:726)
    at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:613)
    at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:47)
    at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:100)
    at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:132)
    at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:581)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)

Environment

Release: 10.7
Component: APMAGT

Resolution

We suggest you to disable the Spring extension:

Remove the following file and directory (make a backup).

Depending on the spring extension version, you may have:

[Agent-Home]/extensions/spring
[Agent-Home]/extensions/deploy/spring.tar.gz

OR


[Agent-Home]/extensions/deploy/spring-2c90899-10.7.0.116.tar.gz
[Agent-Home]/extensions/spring-2c90899-10.7.0.116

Recycle the Application Server