Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-5674

The MIB Compiler UI is not catching the exceptions thrown by the jsmiparser library.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.11.3
    • Fix Version/s: 1.11.90
    • Component/s: Web UI - Admin
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      When trying to compile CISCO-VSAN-MIB, jsmiparser is throwing an exception while executing the method parse.

      The MibParser implementation used by the Vaadin UI is not catching the internal exceptions thrown by jsmiparser.

      Because of this, the UI says that the MIB was successfully compiled and there are no errors displayed; but, a small exclamation icon is displayed at the top of the MIB Tree with the exception details:

      java.lang.IllegalArgumentException: read-create is not a valid ModuleComplianceAccess
      at org.jsmiparser.smi.Util.find(Util.java:27)
      at org.jsmiparser.smi.ModuleComplianceAccess.find(ModuleComplianceAccess.java:39)
      at org.jsmiparser.phase.file.antlr.SMIParser.modulecompliance_access(SMIParser.java:2661)
      ...

      The idea is to execute the parse method between try/catch in order to properly display the parser errors on the UI.

      BTW, the error is related with the grammar analyzer, which is something internal of the jsmiparser. I contacted the maintainer of that project to see what's going on there.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: