NullPointerException is reported in the agent log after enabling the OSB extension

Document ID : KB000008484
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

The below error message is reported in the IntroscopeAgent log:

[ERROR] [IntroscopeAgent.Agent]
java.lang.NullPointerException
at com.wily.util.StringUtils.replace(StringUtils.java:452)
at com.wily.powerpack.webservices.extension.agent.trace.nameformatter.weblogic.AsynCallbackNameFormatter.INameFormatter_format(AsynCallbackNameFormatter.java:55)
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:160)
at com.wily.introscope.agent.trace.hc2.ASingleInstanceTracerFactoryHC.getBlameComponent(ASingleInstanceTracerFactoryHC.java:143)
at com.wily.introscope.agent.trace.hc2.ASingleInstanceTracerFactoryHC.submitToTransactionStructureOnStartTrace(ASingleInstanceTracerFactoryHC.java:297)
at com.wily.introscope.agent.trace.hc2.BlamePointTracer.doStartBlamePointTrace(BlamePointTracer.java:436)
at com.wily.powerpack.webservices.extension.agent.trace.weblogic.hc2.AsyncFaultTracer.ITracer_startTrace(AsyncFaultTracer.java:156)
at com.wily.introscope.agent.trace.InvocationData.IMethodTracer_startTrace(InvocationData.java:1342)
at com.sun.xml.ws.client.AsyncResponseImpl.set(AsyncResponseImpl.java)
at com.sun.xml.ws.client.dispatch.DispatchImpl$DispatchAsyncInvoker$1.onCompletion(DispatchImpl.java:620)
at com.sun.xml.ws.client.Stub$1.onCompletion(Stub.java:560)
at com.sun.xml.ws.api.pipe.Fiber.completionCheck(Fiber.java:927)
at com.sun.xml.ws.api.pipe.Fiber.run(Fiber.java:823)
at com.sun.xml.ws.api.server.ThreadLocalContainerResolver$2$1.run(ThreadLocalContainerResolver.java:112)
at com.oracle.webservices.impl.disi.client.DISIServiceDelegate$1.execute(DISIServiceDelegate.java:47)
at com.sun.xml.ws.api.server.ThreadLocalContainerResolver$2.execute(ThreadLocalContainerResolver.java:107)
at com.sun.xml.ws.api.pipe.Engine.addRunnable(Engine.java:96)
at com.sun.xml.ws.api.pipe.Fiber.resume(Fiber.java:504)
at com.sun.xml.ws.api.pipe.Fiber.resume(Fiber.java:467)
at com.sun.xml.ws.api.pipe.Fiber.resume(Fiber.java:452)
at com.oracle.webservices.impl.internalapi.fiber.FiberResumer.onResume(FiberResumer.java:14)
at com.oracle.webservices.impl.disi.client.ClientResponseTransportImpl.response(ClientResponseTransportImpl.java:93)
at com.bea.wli.sb.service.disi.handlerchain.handlers.OutboundDISIHandler.handleResponse(OutboundDISIHandler.java:263)
at com.bea.wli.sb.service.disi.DISIUtil$2.handleResponse(DISIUtil.java:176)
at com.bea.wli.sb.service.handlerchain.handlers.AbstractHandler.handleResponse(AbstractHandler.java:139)
...at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

Environment:
Weblogic 12.1.3, OSB 12.1.3
Cause:

You can change the name displayed of web services by editing the agent’s core/core/webservices.pbd file and specifying whether you want to use {namespace} or {servicename}

The above "NullPointerException" occurs while the agent is formatting the web service name after it has been configure to report the web services names using the {namespace}

 

Resolution:

1) Upgrade to 10.7

2) Apply one of the below available hotfixes:

For Agent 9.7.1: APM9.7.1HF24_DE320152.zip

For Agent 10.1 : APM10.1.0HF34_DE309316

Contact CA Support to obtain a copy of a hotfix package or in case you need a hotfix for a different release.


Deployment Instruction: 

- Stop the JVM/appserver
- Replace <AGENT_HOME>/core/ext/WebservicesAgent.jar
- Restart the appserver