Custom attribute display “CsOIDValueList (class java.lang.String) 1: 1 ==>” error in Spectrum OneClick
search cancel

Custom attribute display “CsOIDValueList (class java.lang.String) 1: 1 ==>” error in Spectrum OneClick

book

Article ID: 438138

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

After adding a custom asset attribute to the "Asset Information" subview in OneClick, the field displays a technical error prefix instead of the expected value: CsOIDValueList (class java.lang.String) 1: 1 ==> followed by the value.

In the $SPECROOT/custom/topo/config/asset-info-subview-config.xml file we added the following:

<?xml version="1.0" encoding="utf-8"?>
<field-subview idref="asset-info-subview-config">
  <field-column>
    <column idref="column-userasset-DELL-ServiceTAG-config"></column>
  </field-column>
</field-subview>

 

And created the $SPECROOT/custom/topo/config/column-userasset-DELL-ServiceTAG-config.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<column id="column-userasset-DELL-ServiceTAG-config"
        xmlns ="http://www.aprisma.com"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.aprisma.com
                            ../../common/schema/column-config.xsd">
  <name>DELL-ServiceTAG</name>
  <content>
    <attribute>0x11645fe</attribute>
  </content>
</column>

Environment

DX NetOps Spectrum: Any version

Cause

This typically occurs when following the procedure in KB 144878 to add attributes that are part of an SNMP table (List attributes), such as the Dell Service Tag (0x11645fe).

The attribute being queried is a List attribute, meaning it contains multiple instances or is part of a table structure. By default, the OneClick subview does not know how to render this complex data type, so it outputs the raw Java object class and index.

Resolution

To suppress the technical prefix and display only the clean underlying value, you must apply the ObjectIDValueListRenderer to the attribute in your custom column configuration file.

  1. Navigate to the custom configuration directory on your OneClick server: $SPECROOT/custom/topo/config/
  2. Locate the specific column configuration XML file created for the attribute (e.g., column-userasset-DELL-ServiceTAG-config.xml).
  3. Modify the XML to include the <renderer> tag within the <content> section:
xml
<?xml version="1.0" encoding="UTF-8"?>
<column id="column-userasset-DELL-ServiceTAG-config"
        xmlns="http://www.aprisma.com"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.aprisma.com ../../common/schema/column-config.xsd">
  <name>DELL-ServiceTAG</name>
  <content>
    <attribute>0x11645fe</attribute>
    <renderer>
        com.aprisma.spectrum.app.util.render.ObjectIDValueListRenderer
    </renderer>
  </content>
</column>
  1. Save the file.
  2. Close and relaunch the Spectrum OneClick console for the changes to take effect.