Skip to Content.
Sympa Menu

perfsonar-user - Re: Cannot run MA Client

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: Cannot run MA Client


Chronological Thread 
  • From: "Jeff W. Boote" <>
  • To: Loukik Kudarimoti <>, Joe Metzger <>
  • Cc: ,
  • Subject: Re: Cannot run MA Client
  • Date: Sun, 08 Jan 2006 13:23:53 -0700

Loukik, Joe,

Since you guys have made the most use of the EGEE version... Would you mind forwarding on some examples of valid requests and responses for ivo.koga please?

Thanks,
jeff


wrote:
Hi all,

I´m trying to run the MA client Java Version but I only get this error.
Can anyone see the problem or help me find it?


I´m using this information (trying to get some information from abilene):
<!--------------------- client-run-targets.xml----------->
<property name="ma.abilene"
value="http://thunderbird.internet2.edu:8080/axis/services/MeasurementArchiveService"/>

<!-- This client connects with the service using Document style -->
<!-- The running servive is the main operational service
perfsonar_service.py -->
<target name="run-client3" description="Runs Java client Ivo - Test">
<java classname="org.perfsonar.service.testHarness.MATestClient"
classpathref="classpath" fork="true">
<arg value="${ma.abilene}"/>
<arg
value="${basedir}/ivo-tests/SetupDataRequest-FilterRRDSelect-Ivo.xml"/>
<arg value="${basedir}/ivo-tests/response.xml"/>
</java>
</target>

<!--------- SetupDataRequest-FilterRRDSelect-Ivo.xml----------->

<nmwg:message id="msg3"
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">Internet2</nmwg:parameter>
<nmwg:parameter name="timeValue">1127250480</nmwg:parameter>
<nmwg:parameter name="timeType">unix</nmwg:parameter>
</nmwg:parameters>
<!-- Consider situation 1, wherein we are sending down a key, and some parameter information. We hope to get back some data. --> <nmwg:metadata id="meta1">
<nmwg:key>
<nmwg:parameters id="param1">
<!--<nmwg:parameter
name="file">/usr/local/src/perfSONAR-build/Python-Test/perfsonar-Python/perfSONAR-MA/service/var/rrd/test.rrd</nmwg:parameter>
-->
<nmwg:parameter
name="file">/data/sonar/Abilene/atla-hstn.rrd</nmwg:parameter>

<nmwg:parameter name="dataSource">bytes</nmwg:parameter>
</nmwg:parameters>
</nmwg:key> </nmwg:metadata>

<nmwg:metadata id="meta2">
<!-- the subject is the previous metadata (key) -->
<perfsonar:subject id="iusub2" metadataIdRef="meta1"/>
<!-- this is a general eventType, it should be a lot more exact... -->
<nmwg:eventType>select</nmwg:eventType>
<nmwg:parameters id="param1">
<!-- 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">1121299200</nmwg:parameter>
<nmwg:parameter name="endTime">1121904000</nmwg:parameter>-->
<nmwg:parameter name="startTime">1121299200</nmwg:parameter>
<!--Thursday, July 14th 2005, 0:00:00 (GMT)-->
<nmwg:parameter name="endTime">1136748557</nmwg:parameter> <!--Today Sunday, January 8th 2006, 19:29:17 (GMT) translates to 1136748557-->
<nmwg:parameter name="consolidationFunction">AVERAGE</nmwg:parameter>
<nmwg:parameter name="resolution">300</nmwg:parameter>
</nmwg:parameters>
</nmwg:metadata>

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

</nmwg:message>
<!---------------------------- response.xml--------------------------------->

<perfsonar:message id="msg8"
messageIdRef="msg5"
type="SetupDataRequest"
timeValue="1127250485"
timeType="unix" xmlns:perfsonar="http://perfsonar.org/ns/perfsonar/"; xmlns:nmwg="http://ggf.org/ns/nmwg/"; xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/";

xmlns:rrdfile="http://perfsonar.org/ns/perfsonar/keys/rrdfile/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/";>
<!-- <nmtm:time type="unix" value="1127250485" /> -->

<!-- Parrot back what you sent .... (maybe) -->
<perfsonar:metadata id="meta1">
<nmwg:key>
<nmwg:parameters id="param1">
<nmwg:parameter
name="file">/data/sonar/Abilene/atla-hstn.rrd</nmwg:parameter>
<nmwg:parameter name="dataSource">output</nmwg:parameter>
<nmwg:parameter name="startTime">1124250480</nmwg:parameter>
<nmwg:parameter name="endTime">1124250840</nmwg:parameter>
<nmwg:parameter name="consolidationFunction">AVERAGE</nmwg:parameter>
<nmwg:parameter name="resolution">60</nmwg:parameter>
</nmwg:parameters> </nmwg:key> </perfsonar:metadata>


<perfsonar:data id="data1" metadataIdRef="meta1">
<perfsonar:datum value="12345" timeValue="1124250481" timeType="unix" /> <perfsonar:datum value="12349" timeValue="1124250482" timeType="unix" /> <!-- ... -->
<perfsonar:datum value="32345" timeValue="1124250839" timeType="unix" /> </perfsonar:data>

</perfsonar:message>

<!--------------------ERROR----------------->

[java] General exception encountered by client
[java] AxisFault
[java] faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userEx
ception
[java] faultSubcode:
[java] faultString: java.util.EmptyStackException
[java] faultActor:
[java] faultNode:
[java] faultDetail:
[java]
{http://xml.apache.org/axis/}hostname:thunderbird.internet2.edu

[java] java.util.EmptyStackException
[java] at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaul
tBuilder.java:222)
[java] at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFault
Builder.java:129)
[java] at
org.apache.axis.encoding.DeserializationContext.endElement(De
serializationContext.java:1087)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknow
n Source)
[java] at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElemen
t(Unknown Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen
tContentDispatcher.dispatch(Unknown Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
ument(Unknown Source)
[java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
So
urce)
[java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
So
urce)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
[java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
[java] at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
[java] at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
[java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
[java] at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
[java] at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
[java] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
[java] at org.apache.axis.client.Call.invoke(Call.java:2767)
[java] at org.apache.axis.client.Call.invoke(Call.java:1792)
[java] at
org.perfsonar.service.testHarness.MATestClient.makeRequest(Unknown Source)
[java] at
org.perfsonar.service.testHarness.MATestClient.main(Unknown Source)
[java] Client exiting

BUILD SUCCESSFUL
Total time: 6 seconds

=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=


Regards,
Ivo K. Koga





Archive powered by MHonArc 2.6.16.

Top of Page