NullPointerException java error when running bin/emShutdown.sh

book

Article ID: 198453

calendar_today

Updated On:

Products

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

Issue/Introduction

Installed Introscope 10.7 and then SP3 on a new environment. 

On the Enterprise Manager, the /Introscope/bin/emShutdown.sh script fails to shut it down.

The emStartup and emStatus scripts both work fine.  And the Shutdown script is able to locate the running EM, but then it doesn't shut down.  This is the error message when running the emShutdown.sh script:

[ERROR] [CLW.MessageServiceClient] Exception: java.lang.NullPointerException calling method: com.wily.isengard.messageprimitives.service.MessageServiceCallMessage: {com.wily.introscope.spec.server.beans.clw.ICommandLineWorkstationService.executeAsyncCommand, v1, [null, [Ljava.lang.String;@6ff504e5, [email protected]ca1c30, {}], source: Workstation_3.client_main:263, remoteHost: {Unknown}}

The shutdown command ultimately resolves to:
/opt/wily/Introscope/jre/bin/java -Xms64m -Xmx512m -Duser=xIntroscopeBind -Dpassword=FAKEPASSWORD -Dhost=localhost -Dport=5001 -jar /opt/wily/Introscope/lib/CLWorkstation.jar shutdown




Cause

Per Engineering, the EMCtrl script should be used .

emShutdown, emStart, and emStatus scripts are not part of APM 10.7 SP3

They were used with the very old versions of APM. 

Environment

Release : 10.7.0

Component : APM Agents

Resolution

EMCtrl script is used.