[MAGNOLIA-2390] ERROR "Unable to remove event listener" during shutdown. Created: 23/Sep/08  Updated: 23/Jan/13  Resolved: 30/Sep/08

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.6.1
Fix Version/s: 4.0

Type: Bug Priority: Minor
Reporter: Paul Hodges Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: shutdown
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows Server 2003; Magnolia 3.6.1 CE + Tomcat bundle installed; running using default webapps; Apache v2.2 running to provide reverse proxy. Java JDK 1.5.07 or 1.6.04. Magnolia Packager installed for migration from v2.1.5.


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

I have installed the Magnolia 3.6.1 CE + Tomcat bundle on two different machines, with similar specifications (but different Java versions as above). On both machines, when shutting down Magnolia (initiated by clicking the close button), the following error message is generated (twice - once for each webapp):

ERROR info.magnolia.cms.util.ObservationUtil 16.09.2008 13:59:26 – Unable to remove event listener [info.magnolia.cms.util.ObservationUtil$DeferringEventListener@154ae5a:info.magnolia.module.cache.AbstractListeningFlushPolicy$CacheCleaner@3404a8] from repository website
javax.jcr.RepositoryException: this session has been closed
at org.apache.jackrabbit.core.SessionImpl.sanityCheck(SessionImpl.java:359)
at org.apache.jackrabbit.core.WorkspaceImpl.sanityCheck(WorkspaceImpl.java:175)
at org.apache.jackrabbit.core.WorkspaceImpl.getObservationManager(WorkspaceImpl.java:512)
at info.magnolia.cms.util.ObservationUtil.getObservationManager(ObservationUtil.java:203)
at info.magnolia.cms.util.ObservationUtil.unregisterChangeListener(ObservationUtil.java:196)
at info.magnolia.module.cache.AbstractListeningFlushPolicy.stop(AbstractListeningFlushPolicy.java:87)
at info.magnolia.module.cache.CacheModule.stop(CacheModule.java:124)
at info.magnolia.module.ModuleManagerImpl.stopModule(ModuleManagerImpl.java:385)
at info.magnolia.module.ModuleManagerImpl.stopModules(ModuleManagerImpl.java:418)
at info.magnolia.cms.servlets.MgnlServletContextListener.contextDestroyed(MgnlServletContextListener.java:141)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4364)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:893)
at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at org.apache.catalina.core.StandardService.stop(StandardService.java:510)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:645)

There appear to be no bad effects persisting as a result of this.

It occurs to me that the installation of the Magnolia Packager (in both webapps) is the only slightly non-standard item in the installation.



 Comments   
Comment by Magnolia International [ 24/Sep/08 ]

Thanks for reporting - will try to look into this before the 3.6.2 release

Comment by Jan Haderka [ 30/Sep/08 ]

fixed on trunk as r18396 and on 3.6 branch as r18395.

Generated at Mon Feb 12 03:36:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.