After enabling APM Java Agent, WebSphere System.Out shows java.lang.ClassNotFoundException: com.wily.agent.main.IntelligentInstrumentationShim
search cancel

After enabling APM Java Agent, WebSphere System.Out shows java.lang.ClassNotFoundException: com.wily.agent.main.IntelligentInstrumentationShim

book

Article ID: 279465

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope) CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management SaaS DX Application Performance Management

Issue/Introduction

NCR Third party application running in WebSphere ND fails to send SOAP message and System.out contains following stack dump:

[c.n.n.c.c.c.r.o.e.CustomHandlerExceptionResolver.processException] - Uncaught exception:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 at com.ncr.nep.dibs.service.module.invoker.DefaultIntegrationServiceInvoker.invoke(DefaultIntegrationServiceInvoker.java:81)
 at com.ncr.nep.dibs.rest.DibsIntegrationServiceInvocationController.invoke(DibsIntegrationServiceInvocationController.java:103)
 at com.ncr.nep.dibs.rest.DibsIntegrationServiceInvocationController$$FastClassBySpringCGLIB$$4e453978.invoke(<generated>)
 at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
 ...
 at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
 at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
Caused by: java.lang.reflect.InvocationTargetException: null
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:508)
 at com.ncr.nep.dibs.service.module.invoker.DefaultIntegrationServiceInvoker.invoke(DefaultIntegrationServiceInvoker.java:64)
 ... 134 common frames omitted
Caused by: java.lang.NoClassDefFoundError: com.wily.agent.main.IntelligentInstrumentationShim
 at com.ncr.connections.dibs. .transfers.TransferService.getAccounts(TransferService.java)
 ... 139 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.wily.agent.main.IntelligentInstrumentationShim
 at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
 at com.ncr.nep.dibs.service.module.spring.loader.SpringModuleClassLoader.loadClass(SpringModuleClassLoader.java:55)
 ... 140 common frames omitted

 

Environment

DX APM Java Agent Release 23.12.1.14 (Build 990014) , Agent Release 2022.1.0.25 (Build 990025)

Resolution

1) The NCR 'connections' package has a dibs.packages.whitelist.connections property which can be configured in the Connections Portal. 

Add com.wily as a value to this property

2) Restart the App /JVM

Additional Information

https://knowledge.broadcom.com/external/article/145354/apm-introscope-java-agent-troubleshooti.html