APM agent with SAP Netweaver 7.5 bootstrap not working

book

Article ID: 221453

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

Instrumentation works fine as long as we directly specify the Agent.jar in -javaagent, e.g. -javaagent:/usr/sap/JC5/J00/bcadapter/wily/releases/21.1/Agent.jar

When using the bootstrap agent via -javaagent:/usr/sap/JC5/J00/bcadapter/wily/Agent.jar we get the below class loading error:

Loading [ApplicationThreadManager]... ERROR: Server process failed to start due to:
java.lang.NoClassDefFoundError: com/wily/introscope/agent/trace/IMethodTracer
        at com.sap.engine.core.thread.impl3.ThreadManagerImpl.init(ThreadManagerImpl.java:284)
        at com.sap.engine.core.Framework.loadSingleManager(Framework.java:658)
        at com.sap.engine.core.Framework.loadManagers(Framework.java:409)
        at com.sap.engine.core.Framework.start(Framework.java:342)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sap.engine.boot.FrameThread.startFramework(FrameThread.java:155)
        at com.sap.engine.boot.FrameThread.run(FrameThread.java:179)
        at com.sap.engine.boot.StartFrame.work(StartFrame.java:93)
        at com.sap.engine.boot.Start.main(Start.java:38)
Caused by: java.lang.ClassNotFoundException: com.wily.introscope.agent.trace.IMethodTracer
------------------------- Loader Info -------------------------
ClassLoader name: [system:Kernel]
Loader hash code: 7a485a36
 Living status: alive
 Direct parent loaders:
   [library:core_lib]
 Resources:
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/activation.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/jenqulib.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/mail.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~antlr~runtime.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~cache_plugins~lib.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~cachemgmt~api_for_assembly.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~cachemgmt~impl.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~frame~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_cache~impl.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_classload~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_cluster~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_configuration~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_database~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_licensing~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_locking~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_log~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_pool~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_service~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~jkernel_thread~krn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~bl~opensqlkernel~implOpenSQLKrn.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~je~offline_deploy~impl.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~je~sessionmgmt~impl.jar
   /usr/sap/JC5/J00/j2ee/cluster/bin/kernel/sap.com~tc~sec~likey~likey_assembly.jar
---------------------------------------------------------------
        at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:280)
        at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:249)
        ... 12 more
4.034: [CMS-concurrent-abortable-preclean: 1.201/1.852 secs] [Times: user=7.06 sys=0.20 real=1.85 secs]

 

 

Cause

This problem is related to defect # DE508411

Environment

APM Java SaaS agent 21.x +

SAP Netweaver application server for Java 7.5

 

Resolution

Until defect DE508411 is fixed you can use the above mentioned workaround: 

Specify the Agent.jar in -javaagent 

-javaagent:<wily-home>/releases/<version>/Agent.jar

example:

-javaagent:/usr/sap/JC5/J00/bcadapter/wily/releases/21.1/Agent.jar