perfsonar-dev - Java Package issues
Subject: perfsonar development work
List archive
- From: Stijn Melis <>
- To: "" <>
- Subject: Java Package issues
- Date: Thu, 01 Feb 2007 14:59:12 +0100
Hi,
I am using the java packages to create a SetupDataRequest and a MetadataKeyRequest for testing purposes. I need to have a perfsonar:subject element, that contains an nmwgt:endPointPair.
I tried using org.ggf.ns.nmwg.tools.org.perfsonar.v1_0.Subject, but that doesn't seem to support an EndPointPair object as its child (Error: see below). As a workaround, I now create a nmwg:subject element (package org.ggf.ns.nmwg.base.v2_0) and then use String operations afterwards to change it to perfsonar:subject. Likewise for the EndPointPair, I use the EndPointPair from the package org.ggf.ns.nmwg.topology.v2_0 and that doesn't result in nmwgt:endPointPair, but generates nmwgtopo:endPointPair instead. Again I use String operations afterwards to convert that to nmwgt:endPointPair.
As far as I am concerned, I am ok with using String operations, but I don't think that's the point of having these packages and classes. Is this a fault in the classes, or am I using them the wrong way?
Regards,
Stijn
The error I get if I use a org.ggf.ns.nmwg.tools.org.perfsonar.service.v1_0.Subject instead of a org.ggf.ns.nmwg.base.v2_0.Subject:
Error: org/ggf/ns/nmwg/tools/org/perfsonar/service/v1_0/Subject.java addChild(Element) unrecognized child: org/ggf/ns/nmwg/topology/v2_0/EndPointPair.java: ---> org/ggf/ns/nmwg/topology/v2_0/Src.java: ---> 192.168.217.129 type:ipv4 port: dst:org/ggf/ns/nmwg/topology/v2_0/Dst.java: ---> 192.168.217.130 type:ipv4 port:
PS: I am sorry if this was supposed to be submitted in bugzilla, but i checked and I couldn't really find an appropriate category to put this in.
- Java Package issues, Stijn Melis, 02/01/2007
- Re: [pS-dev] Java Package issues, Jason Zurawski, 02/01/2007
- Re: [pS-dev] Java Package issues, Stijn Melis, 02/01/2007
- Message not available
- Re: [pS-dev] Java Package issues, Stijn Melis, 02/01/2007
- Re: [pS-dev] Java Package issues, Verena Venus, 02/01/2007
- Re: [pS-dev] Java Package issues, Stijn Melis, 02/01/2007
- Re: [pS-dev] Java Package issues, Jason Zurawski, 02/01/2007
- Message not available
- Re: [pS-dev] Java Package issues, Stijn Melis, 02/01/2007
- Re: [pS-dev] Java Package issues, Jason Zurawski, 02/01/2007
Archive powered by MHonArc 2.6.16.