Something I was slightly surprised at, but that could just be high
expectations.

I was today trying to define a contribution like so:


   <contribution configuration-id="hivemind.FactoryDefaults">
      <default symbol="CONFIG_FILE_DIR" value="./properties"/>
      <default symbol="GLOBAL_PROPERTIES"
value="${CONFIG_FILE_DIR}/global.properties"/>
      <default symbol="SITE_PROPERTIES"
value="${CONFIG_FILE_DIR}/site.properties"/>
   </contribution>

But I was getting this in my logs:

2004-06-04 16:27:37,944 hivemind.FactoryDefaultsSymbolSource [ERROR]
Unable to initialize service hivemind.FactoryDefaultsSymbolSource (by
invoking method initializeService on
org.apache.hivemind.service.impl.DefaultsSymbolSource, at
jar:file:/C:/dev/cowww/lib/hivemind-1.0.beta-1-snapshot.jar!/META-INF/hi
vemodule.sdl, line 104, column 25): null
2004-06-04 16:27:37,944 org.apache.hivemind.impl.RegistryImpl [ERROR] No
value available for symbol 'CONFIG_FILE_DIR' (at
file:/C:/dev/cowww/build/META-INF/hivemodule.xml, line 6, column 97).

The second error points to the line using the symbol.

Actually, one thing that could be added to the bug database is the first
log message.
This is an example of something that has really been draining
productivity from me.
If exceptions are thrown in an init method or one of the property
setters, the factory does not seem to propagate it, and a vague error is
logged by the BuilderFactory giving the correct line number, but the
cause being null. This may just be the niggling problem with
NullPointerException not having a message attached.

I will write a test case and investigate further.


Steve Gibson
Software Engineer
COWWW Software

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to