Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] NullPointerException: I need help!

Subject: perfsonar development work

List archive

Re: [pS-dev] NullPointerException: I need help!


Chronological Thread 
  • From: Loukik Kudarimoti <>
  • To: Maciej Glowiak <>
  • Cc: Cándido Rodríguez Montes <>, , Roman Lapcz <>
  • Subject: Re: [pS-dev] NullPointerException: I need help!
  • Date: Fri, 15 Dec 2006 12:47:30 +0000

Maciej,

Perhaps the problem is in other place, but components.properties was parsed by

ComponentsConfigurationReader().readFile(configFileName);
Candido mentioned that there is no output in catalina.out. Note: he is using older version of all these files.

because the sequence of componenets to be load was very important. First of all the configuration component should be read, then the logger, then all other components.

As I said, I didn't analyze all the changes. The AuxiliaryComponentManager class looks very similar (I can see changes for locating the properties file:
---------------------------------------------------------------------------------
URL urlString = this.getClass().getClassLoader().getResource("perfsonar/conf/components.properties");
(...)
---------------------------------------------------------------------------------
but not in the way of parsing components.properties, but I don't have the most recent revision and wasn't following your last changes.
Maciej,

I made very minor changes to your code. The changes include:
* replacing System.getProperty("service.properties") & System.getProperty("components.properties") to the class loader thingie that you have written above.
* some exception handling to rule out NullPointerException when files are missing..

thats it! Can you please have a look to see you are happy with them? Note: RRD MA has been installed on GEANT2 and is currently running fine, returning data and all ;)

Loukik.

Maciej





Archive powered by MHonArc 2.6.16.

Top of Page