Agent error on JBoss EAP 6.3 in Domain Mode

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

Description:

Agent error on JBoss EAP 6.3 in Domain Mode

While trying to set up the JBoss EAP 6.3 Wily agent, the following error is seen:


yy/yy/yy xx:xx:xx PM DRT [ERROR] [IntroscopeAgent.Agent] IntervalHeartbeat.execute threw executing: IntelligentInstrumentationService
java.lang.NullPointerException
at com.wily.introscope.probebuilder.intelligent.instrumentation.IntelligentInstrumentationConfig.initVisibilityGapProcessor(IntelligentInstrumentationConfig.java:488)
at com.wily.introscope.probebuilder.extension.instrument.intelligent.IntelligentInstrumentationService$EnableIntelligentInstrumentation.ITimestampedRunnable_execute(IntelligentInstrumentationService.java:272)
at com.wily.util.heartbeat.IntervalHeartbeat$BehaviorNode.execute(IntervalHeartbeat.java:972)
at com.wily.util.heartbeat.IntervalHeartbeat.executeNextBehaviorAndCalculateSleepTime(IntervalHeartbeat.java:491)
at com.wily.util.heartbeat.IntervalHeartbeat.access$2(IntervalHeartbeat.java:445)
at com.wily.util.heartbeat.IntervalHeartbeat$HeartbeatRunnable.run(IntervalHeartbeat.java:668)
at java.lang.Thread.run(Thread.java:722)


Solution:

This case could sometimes be very difficult to solve, specially because similar JBoss/agent configurations will be working fine and one can easily overlook the cause.

A careful examination of the agent logs will call out the attention to the following lines:

yy/yy/yy xx:xx:xx PM DRT [ERROR] [IntroscopeAgent.Agent] Introscope AutoProbe will not run because the provided directives files are not valid: Can't proceed because the flag "MethodClassLevelInstrument" is never declared. Please restart with valid directives.
yy/yy/yy xx:xx:xx PM DRT [INFO] [IntroscopeAgent] Fully Qualified Agent Host Name (introscope.agent.display.hostName.as.fqdn) set to "false"
yy/yy/yy xx:xx:xx PM DRT [INFO] [IntroscopeAgent] Configuration property (introscope.agent.fallback.domain.name) set to default value of null
yy/yy/yy xx:xx:xx PM DRT [INFO] [IntroscopeAgent] Configuration property (introscope.agent.hostName) set to default value of null
yy/yy/yy xx:xx:xx PM DRT [INFO] [IntroscopeAgent] Configuration property (introscope.agent.primary.net.interface.name) set to default value of null
yy/yy/yy xx:xx:xx PM DRT [INFO] [IntroscopeAgent] Configuration property (introscope.agent.ip.family.order) set to default value of "1"
yy/yy/yy xx:xx:xx PM DRT [INFO] [IntroscopeAgent] Configuration property (introscope.agent.subnetworks.path) set to default value of null
yy/yy/yy xx:xx:xx PM DRT [INFO] [IntroscopeAgent.Agent] Business Recording Enabled (introscope.agent.bizRecording.enabled) set to "true"
yy/yy/yy xx:xx:xx PM DRT [INFO] [IntroscopeAgent.Agent] Introscope Agent startup complete.
yy/yy/yy xx:xx:xx PM DRT [WARN] [IntroscopeAgent.Agent] No bytecode transformers are configured. Please make sure ProbeBuilder is deployed as an Agent extension.
yy/yy/yy xx:xx:xx PM DRT [WARN] [IntroscopeAgent.Agent] Dynamic Instrumentation is not available for the agent. Please make sure that the Dynamic Instrumentation module is deployed as agent extension.

where it can seen clearly that the class MethodClassLevelInstrument is not active. It is part of AppMap.pbd.

To resolve, remove the comment for that line in AppMap.pbd:

TurnOn: MethodClassLevelInstrument

 

The restart of the application will ensure that the issue is solved and the original error message no longer appears.