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

SnmpInterfaceRrdMigrator breaks with "javax.xml.bind.UnmarshalException: inf"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.2
    • Fix Version/s: 1.13.0, 1.12.3
    • Component/s: Command-Line Tools
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      SnmpInterfaceRrdMigrator breaks on several rrds with following exception:

      Error: Can't upgrade Interface[ifName=Slot 9, Port 22, nodeId=376, foreignSource=Core, foreignId=1339752213632] because Failed to marshal/unmarshal XML file while unmarshalling an object (RRDv3): javax.xml.bind.UnmarshalException: inf

      • with linked exception:
        [java.lang.NumberFormatException: inf]; nested exception is javax.xml.bind.UnmarshalException: inf
      • with linked exception:
        [java.lang.NumberFormatException: inf]: org.opennms.core.xml.MarshallingResourceFailureException: Failed to marshal/unmarshal XML file while unmarshalling an object (RRDv3): javax.xml.bind.UnmarshalException: inf
      • with linked exception:
        [java.lang.NumberFormatException: inf]; nested exception is javax.xml.bind.UnmarshalException: inf
      • with linked exception:
        [java.lang.NumberFormatException: inf]
        at org.opennms.core.xml.MarshallingExceptionTranslator.translate(MarshallingExceptionTranslator.java:81)
        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:185)
        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:129)
        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:125)
        at org.opennms.netmgt.rrd.model.RrdConvertUtils.dumpRrd(RrdConvertUtils.java:99)
        at org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.mergeRrd(SnmpInterfaceRrdMigratorOnline.java:310)
        at org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.merge(SnmpInterfaceRrdMigratorOnline.java:276)
        at org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.execute(SnmpInterfaceRrdMigratorOnline.java:174)
        at org.opennms.upgrade.support.Upgrade.executeUpgrade(Upgrade.java:145)
        at org.opennms.upgrade.support.Upgrade.execute(Upgrade.java:234)
        at org.opennms.upgrade.support.Upgrade.main(Upgrade.java:260)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:362)
        at java.lang.Thread.run(Thread.java:744)
        Caused by: javax.xml.bind.UnmarshalException: inf
      • with linked exception:
        [java.lang.NumberFormatException: inf]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleError(UnmarshallingContext.java:691)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleError(UnmarshallingContext.java:687)
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.handleParseConversionException(Loader.java:271)
        at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:69)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:514)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:181)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.endElement(SAXConnector.java:154)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
        at org.opennms.core.xml.SimpleNamespaceFilter.endElement(SimpleNamespaceFilter.java:94)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:218)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:196)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:247)
        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:180)
        ... 15 more
        Caused by: java.lang.NumberFormatException: inf
        at com.sun.xml.bind.DatatypeConverterImpl._parseDouble(DatatypeConverterImpl.java:226)
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$20.parse(RuntimeBuiltinLeafInfoImpl.java:765)
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$20.parse(RuntimeBuiltinLeafInfoImpl.java:763)
        at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:247)
        at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:65)
        ... 36 more

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              mlaercher Martin Laercher
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: