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

Sentinel cannot persist Telemetry when running under OracleJDK 11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 24.1.0
    • Fix Version/s: 25.0.0
    • Component/s: Container Image, Sentinel
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      It looks like JAXB is not part of OpenJDK 11 or something like that, as I'm seeing ClassNotFoundException on karaf.log when running Sentinel with this version of Java.

      When running the same Sentinel version under OpenJDK or Oracle JDK 8, there are no issues, and the persistence of Telemetry works as expected.

      Here is a section of the exception in question:

      2019-06-19T12:17:57,186 | WARN  | kafka-consumer-15 | TelemetryMessageConsumer         | 230 - org.opennms.features.telemetry.daemon - 24.1.0 | Adapter: org.opennms.netmgt.telemetry.protocols.sflow.adapter.SFlowTelemetryAdapter@6732f9a7 failed to handle message log: location: "GNS3"
      system_id: "gns3-minion-1"
      source_address: "10.0.0.252"
      source_port: 18641
      message {
        timestamp: 1560961076147
        bytes: "|\001\000\000\022time\000\262\313\207pk\001\000\000\003data\000c\001\000\000\003agent_address\000\032\000\000\000\002ipv4\000\v\000\000\00010.0.0.252\000\000\022sub_agent_id\000d\000\000\000\000\000\000\000\022sequence_number\000M\001\000\000\000\000\000\000\022uptime\000\360\0274\000\000\000\000\000\004samples\000\355\000\000\000\0030\000\345\000\000\000\002format\000\004\000\000\0000:4\000\003data\000\312\000\000\000\022sequence_number\000\247\000\000\000\000\000\000\000\003source_id\0006\000\000\000\022source_id_type\000\002\000\000\000\000\000\000\000\022source_id_index\000\001\000\000\000\000\000\000\000\000\003counters\000a\000\000\000\0030:1001\000T\000\000\000\020cpu_5s\000\362\r\000\000\020cpu_1m\000\026\022\000\000\020cpu_5m\000$\023\000\000\022total_memory\000\000@\017\354\001\000\000\000\022free_memory\000\000\340\030\373\000\000\000\000\000\000\000\000\000\000\000"
      }
      . Skipping.
      com.google.common.util.concurrent.UncheckedExecutionException: javax.xml.bind.DataBindingException: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
       - with linked exception:
      [java.lang.ClassNotFoundException: org.eclipse.persistence.jaxb.JAXBContextFactory] 

      At this point, Minion doesn't seem affected, but maybe it worth fixing our Docker images to use OpenJDK 8 for now, and let the users know about this problem, until the problem between Java11 and JAXB is fixed.

        Attachments

          Activity

            People

            • Assignee:
              j-white Jesse White
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: