| Summary: | "java.lang.IllegalStateException: The EventAdmin is stopped" on shutdown of Virgo | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Virgo | Reporter: | George Calm <georgecalm> | ||||
| Component: | unknown | Assignee: | Glyn Normington <glyn.normington> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | glyn.normington | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 2.1.0.M05-incubation | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 310219 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
George Calm
Created attachment 172160 [details]
Log. From startup to shutdown, with exception.
Thanks for reporting this George. We have given this issue no cycles so far because it is completely benign. However, I agree it would be good to fix in due course just to avoid the distraction in the log when diagnosing other issues. Perhaps we should revisit this after Virgo has switched to using Equinox event admin as the problem may just go away. With that in mind, I'm linking this bug to the Equinox event admin requirement. I think I have a reasonable compromise for now. We absorb the exception and issue a log message: Failed to send event to topic 'org/osgi/service/blueprint/container/DESTROYED'. Exception message: 'The EventAdmin is stopped'. This may be expected during shutdown. Turn on debug logging for more details. If you turn on debug logging, you get the full stack trace as before: Failed to send event to topic 'org/osgi/service/blueprint/container/DESTROYED'. This may be expected during shutdown. java.lang.IllegalStateException: The EventAdmin is stopped at org.apache.felix.eventadmin.impl.EventAdminImpl$1.createHandlerTasks(EventAdminImpl.java:128) at org.apache.felix.eventadmin.impl.EventAdminImpl.sendEvent(EventAdminImpl.java:101) at org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator.sendEvent(EventAdminSecurityDecorator.java:102) at org.eclipse.virgo.kernel.agent.dm.internal.BlueprintEventPostingOsgiBundleApplicationContextListener.sendEvent(BlueprintEventPostingOsgiBundleApplicationContextListener.java:216) <etc> RC1 is planned instead of milestone 5. |