org.eclipse.kura.KuraInvalidMetricTypeException: Metric null value is invalid.

GitHub | pstanton | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    setting a payload metric to null should throw an exception immediately

    GitHub | 6 months ago | pstanton
    org.eclipse.kura.KuraInvalidMetricTypeException: Metric null value is invalid.

    Root Cause Analysis

    1. org.eclipse.kura.KuraInvalidMetricTypeException

      Metric null value is invalid.

      at org.eclipse.kura.core.cloud.CloudPayloadProtoBufEncoderImpl.setProtoKuraMetricValue()
    2. org.eclipse.kura
      CloudPayloadProtoBufEncoderImpl.getBytes
      1. org.eclipse.kura.core.cloud.CloudPayloadProtoBufEncoderImpl.setProtoKuraMetricValue(CloudPayloadProtoBufEncoderImpl.java:166)
      2. org.eclipse.kura.core.cloud.CloudPayloadProtoBufEncoderImpl.getBytes(CloudPayloadProtoBufEncoderImpl.java:66)
      2 frames