Bug 641034 - findLiveData doesn't return any Live Data
Summary: findLiveData doesn't return any Live Data
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RHQ Project
Classification: Other
Component: Web Services
Version: 3.0.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-07 15:36 UTC by Isaac
Modified: 2014-05-09 16:04 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-09 16:04:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Isaac 2010-10-07 15:36:53 UTC
Description of problem:
findLiveData only returns the Measurement Names and Ids and does not return any live data values.

Version-Release number of selected component (if applicable):


How reproducible:
Consistent.

Steps to Reproduce:
1. Call login action to get sessionId
2. Call findLiveData action

Example request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.rhq-project.org/2.3/2009/9/Webservices.xsd">
   <soapenv:Header/>
   <soapenv:Body>
      <web:findLiveData>
         <!--Optional:-->
         <subject>
            <factive>true</factive>
            <fsystem>false</fsystem>
            <id>10001</id>
            <name>isaac</name>
            <sessionId>1825703509</sessionId>
         </subject>
         <resourceId>10001</resourceId>  <!-- Platform -->
         <!--Zero or more repetitions:-->
         <definitionIds>10025</definitionIds>  
         <definitionIds>10026</definitionIds>  
         <definitionIds>10027</definitionIds>
         <definitionIds>10029</definitionIds>
      </web:findLiveData>
   </soapenv:Body>
</soapenv:Envelope>
Actual results:

Example Response:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <ns2:findLiveDataResponse xmlns:ns2="http://www.rhq-project.org/2.3/2009/9/Webservices.xsd">
         <return>
            <id/>
            <name>Native.SwapInfo.used</name>
         </return>
         <return>
            <id/>
            <name>CpuPerc.idle</name>
         </return>
         <return>
            <id/>
            <name>Native.SwapInfo.total</name>
         </return>
         <return>
            <id/>
            <name>CpuPerc.user</name>
         </return>
      </ns2:findLiveDataResponse>
   </env:Body>
</env:Envelope>

Expected results:

Need the Measurement values for each definitionId

Additional info:

Problem seems to be that the org.rhq.core.domain.measurement.MeasurementData is an Abstract and there's no mapping of the implementations so that the WSDL can generate the response types.

Comment 1 Isaac 2010-10-07 23:43:02 UTC
Adding the following annotation to the org.rhq.core.domain.measurement.MeasurementData java class resolves the issue: 


@XmlSeeAlso( { MeasurementDataNumeric.class, 
	       MeasurementDataNumeric1D.class, 
  	       MeasurementDataNumeric1H.class, 
  	       MeasurementDataNumeric6H.class,
	       MeasurementDataTrait.class
             })

Comment 2 Jay Shaughnessy 2014-05-09 16:04:12 UTC
WebServices are no longer supported.


Note You need to log in before you can comment on or make changes to this bug.