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

JasperReports measurements data-source step returning null

    XMLWordPrintable

    Details

      Description

      From support ticket:

      noformat
      in the Report the Request locks like:
      <queryString language="measurement">
      <![CDATA[<query-request step="1" start="$P

      {startDateTime}

      " end="$P

      {endDateTime}

      " maxrows="0">
      <source aggregation="AVERAGE" label="IfHCInOctets" attribute="ifHCInOctets" transient="false" resourceId="$P

      {nodeResourceDescriptor}.interfaceSnmp[$P{interface}]"/>
      <source aggregation="AVERAGE" label="IfHCOutOctets" attribute="ifHCOutOctets" transient="false" resourceId="$P{nodeResourceDescriptor}

      .interfaceSnmp[$P

      {interface}

      ]"/>
      </query-request>]]>
      </queryString>
      <field name="Step" class="java.lang.Double">
      <fieldDescription><![CDATA[Step]]></fieldDescription>
      </field>
      <field name="IfHCInOctets" class="java.lang.Double">
      <fieldDescription><![CDATA[IfHCInOctets]]></fieldDescription>
      </field>
      <field name="IfHCOutOctets" class="java.lang.Double">
      <fieldDescription><![CDATA[IfHCOutOctets]]></fieldDescription>
      </field>

      And the Debug Log says this:
      o.o.n.j.m.MeasurementQueryExecutor: Create datasource for query '<query-request step="1" start="1457564400000" end="1457650800000" maxrows="0">
      <source aggregation="AVERAGE" label="IfHCInOctets" attribute="ifHCInOctets" transient="false" resourceId="nodeSource[Switches:1404393057866].interfaceSnmp[Ethernet127_1_48-mac]"/>
      <source aggregation="AVERAGE" label="IfHCOutOctets" attribute="ifHCOutOctets" transient="false" resourceId="nodeSource[Switches:1404393057866].interfaceSnmp[Ethernet127_1_48-mac]"/>
      </query-request>'

      If I print the Field Step on the Output, I get only "null".

      
      

        Attachments

          Activity

            People

            • Assignee:
              mvr Markus von RĂ¼den
              Reporter:
              jeffg Jeff Gehlbach
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: