Mediation Manager (CAMM) Error - ./cammStatus: line 27: /usr/lib/jvm/java-$JAVA_VERSION/bin/java: No such file or directory

book

Article ID: 208021

calendar_today

Updated On:

Products

DX NetOps CA Performance Management - Usage and Administration CA Mediation Manager

Issue/Introduction

Mediation Manager (CAMM) Error - ./cammStatus: line 27: /usr/lib/jvm/java-$JAVA_VERSION/bin/java: No such file or directory

A similar error is seen for stopall as well as startall

Cause

The Java release was updated and the prior release was removed

Environment

Release : 20.2

Component : Mediation Manager

Resolution

An update to the camm.env file within /opt/CA/CAMM/tools/ needs to be made to reflect the updated version.  Take the below scenario for example:

1. When running cammStatus, the following error appears:

./cammStatus: line 27: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.el7_9.x86_64/bin/java: No such file or directory

2. When you go to check for /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.el7_9.x86_64, you see that it does not exist but you notice /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64 in its place.

3. You will need to go to the camm.env file on that system and update these two entries:

TIM_JAVA="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.el7_9.x86_64" export TIM_JAVA
JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.el7_9.x86_64" export JAVA_HOME

You will change them to:

TIM_JAVA="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64" export TIM_JAVA
JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64" export JAVA_HOME

4. Once the edit has been made and file saved, you will be able to utilize the startall, stopall, and cammStatus commands once again.