Guest

Preview Tool

Cisco Bug: CSCvv43612 - CSM: Unable to import network objects through CSV file using perl command in CSM 4.21

Last Modified

Sep 01, 2020

Products (1)

  • Cisco Security Manager

Known Affected Releases

4.21(0)

Description (partial)

Symptom:
Below java exception is observed:

Problem Details: Initializing...

CSM is in Non-Workflow mode ....

WARNING: You have selected to import 'Network' type Policy Objects.Make sure that the above specified CSV file contains policy objects of type 'Network'.

WARNING: All the device overriden policies objects in the above CSV file won't be imported.

Loading policy object information...

Parsing the import file...
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser
        at com.cisco.nm.vms.buildingblock.util.xml.BuildingBlockNamingXmlParser.<init>(BuildingBlockNamingXmlParser.java:27)
        at com.cisco.nm.vms.buildingblock.util.naming.DefaultBuildingBlockNameValidator.load(DefaultBuildingBlockNameValidator.java:35)
        at com.cisco.nm.vms.buildingblock.util.naming.DefaultBuildingBlockNameValidator.<clinit>(DefaultBuildingBlockNameValidator.java:28)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.cisco.nm.vms.buildingblock.util.naming.BuildingBlockNameValidatorFactory.getBuildingBlockNameValidator(BuildingBlockNameValidatorFactory.java:17)
        at com.cisco.nm.vms.buildingblock.util.naming.BuildingBlockNameValidationUtil.isValidName(BuildingBlockNameValidationUtil.java:20)
        at com.cisco.nm.vms.buildingblock.util.bulkimport.importer.BBCsvImporter.constructObject(BBCsvImporter.java:234)
        at com.cisco.nm.vms.buildingblock.util.bulkimport.importer.BBCsvImporter.parseAttributes(BBCsvImporter.java:150)
        at com.cisco.nm.vms.buildingblock.util.bulkimport.importer.BBCsvImporter.parseCSVFile(BBCsvImporter.java:107)
        at com.cisco.nm.vms.buildingblock.util.bulkimport.importer.BBCsvImporter.process(BBCsvImporter.java:59)
        at com.cisco.nm.vms.buildingblock.util.bulkimport.BulkImportExport.<init>(BulkImportExport.java:247)
        at com.cisco.nm.vms.buildingblock.util.bulkimport.BulkImportExport.main(BulkImportExport.java:562)
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 13 more

Conditions:
Importing network objects through a csv file using the perl command.
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.