Skip to Content.
Sympa Menu

perfsonar-user - [Fwd: Parse errors in request for rrd AVERAGE data]

Subject: perfSONAR User Q&A and Other Discussion

List archive

[Fwd: Parse errors in request for rrd AVERAGE data]


Chronological Thread 
  • From: Jerome Durand <>
  • To:
  • Subject: [Fwd: Parse errors in request for rrd AVERAGE data]
  • Date: Fri, 06 Jan 2006 13:52:00 +0100

Hi all,

This case was submitted initially on December the 22nd. Seems that there was no answer at all, certainly due to a long festive period you all appreciated hopefully!

Is that possible that someone answers Barney's question, or maybe just ask him needed clarification of his problem? Please cc list so that we have tracking of all submitted cases.

It's maybe the first email sent to that list, we need to show how much responsive we are!

Thanks !

Jerome

-------- Original Message --------
Subject: Parse errors in request for rrd AVERAGE data
Date: Thu, 22 Dec 2005 09:21:43 -0500 (EST)
From:

To:


Hi I've been trying to set up a perfsonar MA and I've been running into problems.

I've tried both the CVS and packaged version of the java service and have had more luck with the cvs version.

If I use the MATestClient I eventually get an error indicating a problem connecting with the service. I'm not really a Java export but Looking at the source code I believe that this test client will never work as the documentation indicates it should. It appears to always connect to http://mu.dante.org.uk:8090/axis/services/MeasurementArchiveService and also always creates its own request file rather than taking it from an argument in the client-run-target.xml file.
If I use the CVS version there is a SOAPClient that appears to work as the documentation indicates. When I get it to send a metadata request the service replies appropriately.

If I request all the data in the rrd using the following request the service responds correctly :
<?xml version="1.0" encoding="UTF-8"?>

<nmwg:message type="SetupDataRequest"
id="datarq1-1"
xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";

xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
<!-- <nmtm:time type="unix" value="1107492095" /> -->

<nmwg:parameters id="msgparam1">
<nmwg:parameter name="authToken">UCL</nmwg:parameter>
</nmwg:parameters>

<!-- The previous fully qualified metadata *could* be
included in the message, but it should not be necessary
since the key's should fully define the selection
of data wanted. -->

<nmwg:metadata id="meta1">
<nmwg:key>
<nmwg:parameters id="param1">
<nmwg:parameter name="file">/var/local/rrd/UCL-FNAL_CDF.rrd</nmwg:parameter>
<nmwg:parameter name="dataSource">in</nmwg:parameter>
</nmwg:parameters>
</nmwg:key>
</nmwg:metadata>

<nmwg:metadata id="meta2">
<nmwg:key>
<nmwg:parameters id="param1">
<nmwg:parameter name="file">/var/local/rrd/UCL-FNAL_CDF.rrd</nmwg:parameter>
<nmwg:parameter name="dataSource">out</nmwg:parameter>
</nmwg:parameters>
</nmwg:key>
</nmwg:metadata>

<!-- triggers to indicate head of chains -->
<nmwg:data id="data1" metadataIdRef="meta1" />
<nmwg:data id="data2" metadataIdRef="meta2" />

</nmwg:message>


however when I try and get some "Filtered" data using the following request I get an error :

<nmwg:message id="msg5"
type="SetupDataRequest"

xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";>
<!-- <nmtm:time type="unix" value="1127250480" /> -->

<nmwg:parameters id="msgparam1">
<nmwg:parameter name="authToken">UCL</nmwg:parameter>
<nmwg:parameter name="timeValue">11351774850</nmwg:parameter>
<nmwg:parameter name="timeType">unix</nmwg:parameter>
</nmwg:parameters>

<!-- Consider situation 3, wherein we are sending down a cookedup key, this
would be the most compact representation, and we should get back the
same data as the previous 2 cases. -->

<nmwg:metadata id="meta1">
<nmwg:key>
<nmwg:parameters id="param1">
<nmwg:parameter name="file">/var/local/rrd/UCL-FNAL_CDF.rrd</nmwg:parameter>
<nmwg:parameter name="dataSource">out</nmwg:parameter>
<!-- Whether or not the selection parameters make
sense depends on the specific backend. RRD tool only
supprts these 4 parameters, so anything else will
produce an error. No need for operators like in the
general select, just a start and end time.
-->
<nmwg:parameter name="startTime">1135173885</nmwg:parameter>
<nmwg:parameter name="endTime">1135177485</nmwg:parameter>
<nmwg:parameter name="consolidationFunction">AVERAGE</nmwg:parameter>
<nmwg:parameter name="resolution">60</nmwg:parameter>
</nmwg:parameters>
</nmwg:key>
</nmwg:metadata>

<!-- trigger to get stuff back -->
<nmwg:data id="data1" metadataIdRef="meta1"/>

</nmwg:message>

with the error :
[java] End point: http://193.60.252.10:8080/axis/services/MeasurementArchiveService
[java] Request file: /usr/local/sonar/perfsonar/ant/requestdata.xml
[java] Response file: /usr/local/sonar/perfsonar/ant/responsedata.xml
[java] SOAPClient.makeRequest: General exception encountered by client
[java] AxisFault
[java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
[java] faultSubcode:
[java] faultString: org.perfsonar.service.commons.exceptions.SystemException: RRDInformationReader.parseInformationFile: Parse error occurred
[java] faultActor:
[java] faultNode:
[java] faultDetail:
[java] {http://xml.apache.org/axis/}hostname:Lonm.hep.rcn.ucl.ac.uk

[java] org.perfsonar.service.commons.exceptions.SystemException: RRDInformationReader.parseInformationFile: Parse error occurred.

Also when I try using the perfsonar UI the debug log shows :

2005-12-22 14:02:09,812 [Thread-8] DEBUG org.perfsonar.client.MARequest - <nmwg:message type="MetadataKeyRequest" xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"; xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"; xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"; xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";><nmwg:metadata id="meta1"><perfsonar:subject id="iusub1"><nmwgt:interface/></perfsonar:subject><nmwg:eventType>utilization</nmwg:eventType></nmwg:metadata><nmwg:data id="data1" metadataIdRef="meta1"/></nmwg:message>
2005-12-22 14:02:10,109 [Thread-8] ERROR org.perfsonar.client.MARequest - Problem contacting service...org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
2005-12-22 14:02:10,109 [Thread-8] DEBUG org.perfsonar.client.MARequest -
Sent query using AXIS...
2005-12-22 14:02:10,109 [Thread-8] DEBUG org.perfsonar.client.MARequest -
Received answer (?)...
2005-12-22 14:02:10,109 [Thread-8] ERROR org.perfsonar.client.MARequest - General exception encountered by clientjava.lang.NullPointerException
2005-12-22 14:02:10,109 [Thread-8] INFO org.perfsonar.client.MARequest - Client exiting

If anyone can help me I would greatly appreciate it.

Many Thanks

Barney Garrett




Archive powered by MHonArc 2.6.16.

Top of Page