Skip to Content.
Sympa Menu

perfsonar-dev - r2010 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/rrdType

Subject: perfsonar development work

List archive

r2010 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/rrdType


Chronological Thread 
  • From:
  • To:
  • Subject: r2010 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/rrdType
  • Date: Wed, 31 Jan 2007 08:44:02 -0500

Author: roman
Date: 2007-01-31 08:44:01 -0500 (Wed, 31 Jan 2007)
New Revision: 2010

Modified:

trunk/perfsonar/src/org/perfsonar/service/measurementArchive/rrdType/RRDTypeMAServiceEngine.java
Log:
Catching an exception has been fixed when eventType is missing in metadata
element but it should be there.

Modified:
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/rrdType/RRDTypeMAServiceEngine.java
===================================================================
---
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/rrdType/RRDTypeMAServiceEngine.java
2007-01-31 12:46:42 UTC (rev 2009)
+++
trunk/perfsonar/src/org/perfsonar/service/measurementArchive/rrdType/RRDTypeMAServiceEngine.java
2007-01-31 13:44:01 UTC (rev 2010)
@@ -322,8 +322,21 @@
Map metadataMap = request.getMetadataMap();
Metadata metadata = (Metadata)
metadataMap.get(data.getMetadataIdRef());

- _getKey(metadata, null, metadataMap, message, metadataConfig);
+ try {

+ _getKey(metadata, null, metadataMap, message, metadataConfig);
+
+ } catch (NullPointerException npex) {
+
+ throw new RequestException(
+ "error.ma.query",
+ "RRDTypeMAServiceEngine.getKey: "
+ + "getting the key is impossible "
+ + "because of some problem with the format of the
request; "
+ + npex.toString());
+
+ }
+
messageVector.add(message);

}
@@ -583,8 +596,22 @@
Metadata meta = (Metadata)
metadataMap.get(data.getMetadataIdRef());
if (meta == null) continue;

- Key key = getStoreKey(meta);
+ Key key = null;
+ try {

+ key = getStoreKey(meta);
+
+ } catch (NullPointerException npex) {
+
+ throw new RequestException(
+ "error.ma.query",
+ "RRDTypeMAServiceEngine.storeData: "
+ + "getting the store key is impossible "
+ + "because of some problem with the format of the
request; "
+ + npex.toString());
+
+ }
+
Message msg = new Message();
Metadata md = new Metadata();
msg.addChild(md);



  • r2010 - trunk/perfsonar/src/org/perfsonar/service/measurementArchive/rrdType, svnlog, 01/31/2007

Archive powered by MHonArc 2.6.16.

Top of Page