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

RRD file parsing failed with newts-repository-converter

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Low
    • Resolution: Fixed
    • 29.0.6
    • Meridian-2020.1.25
    • None
    • Security Level: Default (Default Security Scheme)
    • None
    • 3
    • Horizon 22 - Jun 23 - Jul 7
    • Backlog
      • script will work and convert data without errors

    Description

      Encountered stacktraces and exceptions in the output of $OPENNMS_HOME/bin/newts-repository-converter in the effort of migrating rrd data to newts.

      OpenNMS version 29.0.6

      OpenJDK 11.0.14

       

      Stacktrace follows

       
       

      17:09:51.865 [ForkJoinPool-1-worker-13] INFO  org.opennms.features.newts.converter.NewtsConverter - Processing resource: dir=/var/lib/opennms/rrd/response/127.0.0.1, file=icmp, group=icmp
      17:09:51.865 [ForkJoinPool-1-worker-21] INFO  org.opennms.features.newts.converter.NewtsConverter - Processing resource: dir=/var/lib/opennms/rrd/response/10.0.1.5, file=ssh, group=ssh
      17:09:51.852 [ForkJoinPool-1-worker-5] ERROR org.opennms.features.newts.converter.NewtsConverter - Can't parse JRB/RRD file: /var/lib/opennms/rrd/response/JianAzure/192.168.86.240/icmp.rrd
      org.jrobin.core.RrdException: Can't parse RRD Dump
              at org.opennms.netmgt.rrd.model.RrdConvertUtils.dumpRrd(RrdConvertUtils.java:102) ~[opennms-rrd-model-29.0.6.jar:?]
              at org.opennms.features.newts.converter.NewtsConverter.processResource(NewtsConverter.java:529) ~[newts-repository-converter-29.0.6.jar:?]
              at org.opennms.features.newts.converter.NewtsConverter.lambda$processStoreByGroupResource$2(NewtsConverter.java:441) ~[newts-repository-converter-29.0.6.jar:?]
              at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426) [?:?]
              at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
              at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) [?:?]
              at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) [?:?]
              at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) [?:?]
              at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?]
      Caused by: javax.xml.bind.JAXBException
              at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:206) ~[org.apache.karaf.specs.java.xml.ws-4.3.2.jar:2.9.0]
              at javax.xml.bind.ContextFinder.find(ContextFinder.java:386) ~[org.apache.karaf.specs.java.xml.ws-4.3.2.jar:2.9.0]
              at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:656) ~[org.apache.servicemix.specs.jaxb-api-2.2-2.9.0.jar:2.9.0]
              at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:599) ~[org.apache.servicemix.specs.jaxb-api-2.2-2.9.0.jar:2.9.0]
              at org.opennms.netmgt.rrd.model.RrdConvertUtils.dumpRrd(RrdConvertUtils.java:98) ~[opennms-rrd-model-29.0.6.jar:?]
              ... 8 more
      Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory
              at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[?:?]
              at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?]
              at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
              at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:499) ~[org.apache.karaf.specs.java.xml.ws-4.3.2.jar:2.9.0]
              at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:204) ~[org.apache.karaf.specs.java.xml.ws-4.3.2.jar:2.9.0]
              at javax.xml.bind.ContextFinder.find(ContextFinder.java:386) ~[org.apache.karaf.specs.java.xml.ws-4.3.2.jar:2.9.0]
              at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:656) ~[org.apache.servicemix.specs.jaxb-api-2.2-2.9.0.jar:2.9.0]
              at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:599) ~[org.apache.servicemix.specs.jaxb-api-2.2-2.9.0.jar:2.9.0]
              at org.opennms.netmgt.rrd.model.RrdConvertUtils.dumpRrd(RrdConvertUtils.java:98) ~[opennms-rrd-model-29.0.6.jar:?]
              ... 8 more
      

      Attachments

        Issue Links

          Activity

            People

              cpape Christian Pape
              jylee JianYet
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: