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

MIB compiler creates datacollections that fail to validate

    XMLWordPrintable

Details

    • 4
    • Horizon - May 26 - June 9, Horizon 22 - Jun 9 - 23
    • 1106

    Description

      With one of the shipped pre-compiled MIBs, the output of the MIB Compiler fails to validate and throws an error.  This has been reported multiple times with different MIBs from both customer and community.

      To reproduce:
      Admin -> SNMP MIB Compiler
      Right-click RFC1213-MIB and select Generate datacollection
      Click Save data collection file

      Result:

      2022-05-18T16:44:20-04:00 [ERROR] class org.opennms.core.xml.MarshallingResourceFailureException: Failed to marshal/unmarshal XML file while marshalling DatacollectionGroup: javax.xml.bind.MarshalException - with 
      linked exception: [Exception [EclipseLink-25003] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.XMLMarshalException Exception Description: An error occurred marshalling the 
      object Internal Exception: org.eclipse.persistence.oxm.record.ValidatingMarshalRecord$MarshalSAXParseException; cvc-pattern-valid: Value 'ipaddress' is not facet-valid with respect to pattern '([Cc](ounter|OUNTER)(32|64)?|
      [Gg](auge|AUGE)(32|64)?|[Tt](ime|IME)[Tt](icks|ICKS)|[Ii](nteger|NTEGER)(32|64)?|[Oo](ctet|CTET)[Ss](tring|TRING))|[Ss](tring|TRING)|[Hh](ex|EX)[Ss](tring|TRING)' for type '#AnonType_typemibObj'.]; nested exception is 
      javax.xml.bind.MarshalException - with linked exception: [Exception [EclipseLink-25003] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.XMLMarshalException Exception Description: 
      An error occurred marshalling the object Internal Exception: org.eclipse.persistence.oxm.record.ValidatingMarshalRecord$MarshalSAXParseException; cvc-pattern-valid: Value 'ipaddress' is not facet-valid with respect to pattern 
      '([Cc](ounter|OUNTER)(32|64)?|[Gg](auge|AUGE)(32|64)?|[Tt](ime|IME)[Tt](icks|ICKS)|[Ii](nteger|NTEGER)(32|64)?|[Oo](ctet|CTET)[Ss](tring|TRING))|[Ss](tring|TRING)|[Hh](ex|EX)[Ss](tring|TRING)' for type 
      '#AnonType_typemibObj'.]
      

      Attachments

        Issue Links

          Activity

            People

              aramos-vizcarra Alberto
              dino2gnt Dino Yancey
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: