search cancel

Manual probe building instruction example when using 'agent directory' example is incorrect

book

Article ID: 241862

calendar_today

Updated On:

Products

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

Issue/Introduction

Doc at Manual ProbeBuilding (broadcom.com) appears incorrect.   The documented example format results in an error as below

java -cp wily/releases/2022.3/core/ext/ProbeBuilder.jar com.wily.introscope.api.IntroscopeProbeBuilder    -directives wily/releases/2022.3/core/config/default.pbl,wily/releases/2022.3/core/config/stream.pbd    -origdir classes    -destdir classes.isc  -verbose
Exception in thread "main" java.lang.NoClassDefFoundError: com/wily/introscope/etc/AIntroscopeApplication
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at com.wily.introscope.api.IntroscopeProbeBuilder.main(IntroscopeProbeBuilder.java:15)
Caused by: java.lang.ClassNotFoundException: com.wily.introscope.etc.AIntroscopeApplication
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 13 more

Environment

Release : 21.3

Component : Introscope

Cause

documentation is not up to date

Resolution

Several changes needed to documented command

change pbl list to fit 2x.x naming standard
add agent.jar to class path
add argument -Dcom.wily.introscope.agent.starter=premain
e.g.


java -cp wily/releases/2022.3/core/ext/ProbeBuilder.jar:wily/releases/2022.3/Agent.jar -Dcom.wily.introscope.agent.starter=premain com.wily.introscope.api.IntroscopeProbeBuilder    -directives wily/releases/2022.3/core/config/acc-master.pbl    -origdir classes    -destdir classes.isc  -verbose