Mapping rule is generation cannot cast object error when saving
search cancel

Mapping rule is generation cannot cast object error when saving

book

Article ID: 432869

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

When trying to create mapping rules from Smarts to NCM, an error occurs when clicking Test Grammar or saving the rule.

Symptom:

ERROR MESSAGE: "Cannot cast object 'flowmapping․VcRule@[system-id] null' with class 'flowmapping․VcRule' to class 'flowmapping․Rule'" "An error occurred while saving: could not execute statement; SQL [n/a]; constraint [null]" "Reason: Too few tokens in rule definition"

 

Environment

NCM - All supported versions

Resolution

Prerequisites:

  • Administrator access to the NCM application server

  • Updated NCM Smarts Adapter war file provided by engineering

     

STEPS:

  1. Stop the adapter service using:

    systemctl stop ncmsmartsadapter

  2. Source the environment variables using:

    source /etc/voyence.conf

  3. Backup the existing war file provided by engineering:

    cp $VOYENCE_HOME/NCMSmartsAdapter/webapps/NCMSmartsAdapter-25.4.1.0.war <Backup Location>

  4. Deploy the new war file from engineer to the same location in the above step
  5. Update th new war file ownership:

    chown tomcatsmvc:tomcatsmvc NCMSmartsAdapter-25.4.1.0.war

    The above command must be ran in the same location.
  6. Start the adapter service using the followiing command:

    systemctl start ncmsmartsadapter

Additional Information

This will be included in the future version of the product.

Please contact support to obtain the war file from engineering.