APM 10.7 - Exception: java.lang.NullPointerException calling method .. remoteHost: {Unknown}}

book

Article ID: 210161

calendar_today

Updated On:

Products

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

Issue/Introduction

I am unable to run any CLWorkstation commands

java -Xmx128M -Duser=admin -Dhost=localhost -Dport=5001 -jar CLWorkstation.jar get historical data from agents matching (.*) and metrics matching (Agent Stats:.*) for past 1 minute with frequency of 60 seconds > agent_versions.csv

java -Xmx128M -Duser=admin -Dhost=localhost -Dport=5001 -jar CLWorkstation.jar list management modules matching (.*)

Output:

3/08/21 04:28:25 PM CET [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;@3391b660, [email protected]ede21d, {}], source: Workstation_22.client_main:263, remoteHost: {Unknown}}
com.wily.isengard.messageprimitives.ConnectionException
        at com.wily.isengard.messageprimitives.service.MessageServiceClient.sendRequest(MessageServiceClient.java:197)
        at com.wily.isengard.messageprimitives.service.MessageServiceClient.invoke(MessageServiceClient.java:359)
        at com.sun.proxy.$Proxy3.executeAsyncCommand(Unknown Source)
        at com.wily.introscope.clws.CommandLineWorkstation.execute(CommandLineWorkstation.java:478)
        at com.wily.introscope.clws.CommandLineWorkstation.run(CommandLineWorkstation.java:405)
        at com.wily.introscope.clws.CommandLineWorkstation.main(CommandLineWorkstation.java:91)
Caused by: java.lang.NullPointerException
3/08/21 04:28:25 PM CET [ERROR] [CLW.MessageServiceClient] Exception: java.lang.NullPointerException calling method: com.wily.isengard.messageprimitives.service.MessageServiceCallMessage: {com.wily.introscope.spec.server.beans.session.ISessionManager.getUser, v1, [null], source: Workstation_22.client_main:259, remoteHost: {Unknown}}

What could be the cause?  How to resolve it?

 

 

Cause

-Dpassword argument is missing

 

Environment

APM 10.7.0

Resolution

As per documentation: https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/application-performance-management/10-7/using/apm-command-line-workstation.html

Make sure to pass key important parameters

-Duser=<user name>
-Dpassword=<password>
-Dhost=<Enterprise Manager host / ip address>
-Dport=<Enterprise Manager port number>