Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337306 - A message with the key 'OF0002W' was not found
Summary: A message with the key 'OF0002W' was not found
Status: CLOSED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: runtime (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0.0.M03   Edit
Assignee: Hristo Iliev CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 08:18 EST by Hristo Iliev CLA
Modified: 2011-03-09 11:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hristo Iliev CLA 2011-02-16 08:18:40 EST
Virgo displays:
2011-02-16 13:52:49.759] main                         <ME0001W> A message with the key 'OF0002W' was not found. The inserts for the message were '[org.eclipse.virgo.osgi.console.*]'

where

in medic.core resource/*.properties:
ME0001W=The directory '{}' does not exist and could not be created

in kernel.osgi resource/*.properties:
OF0002W=No match found for region import: {}.

in LogBackEventLogger:
private static final String MISSING_MESSAGE_EVENT_CODE = "ME0001W";



The problem is caused by redundant org.eclipse.virgo.osgi.console.* package imports in user.region. 

The problem I see is that the message with key OF0002W is not displayed. 

Additionally the string "A message with the key" in LogBackEventLogger is hardcoded and the key before it seems to be duplicated with the one in medic.core properties file.
Comment 1 Hristo Iliev CLA 2011-03-08 04:44:12 EST
OF0002W cannot be found since PackageImportWildcardExpander.expandPackageImportsWildcards is called with the system BundleContext.

This call causes the StandardMessageResolver to be initialized with org.eclipse.osgi_3.7.0.v20110124-0830 and org.eclipse.virgo.medic.core_3.0.0.M01 as primary and secondary bundles. None of them contain the requested key.

The OF0002W has to be resolved with kernel.osgi instead of org.eclipse.osgi_3.7.0.v20110124-0830.
Comment 2 Hristo Iliev CLA 2011-03-09 07:05:35 EST
Changes in medic (0f8e0ccdd6d0b7be5ef2994438b8c0102afe17df) and kernel.osgi (0d5cb2ed14ae32fbd1694b2f1d92199bcae25645) pushed to fix the logging
Comment 3 Hristo Iliev CLA 2011-03-09 07:51:41 EST
+ commits:
   userfactory 208ddc8c19bd443060c7015dd8aec67de39c9667 - copyright year
   medic 094c2477478dae77dd2901c81be960336662ee1a - restored messages order