Problem with installation "Enterprise Notifications" add-on
Asked by Yuriy Yunkevich:

```
Hello!

Please, help me with the following problem:

After istallation trial version of add-on "Enterprise Notifications" all modules are disabled and next message is appeared "The add-on has been installed but cannot be enabled. Please refer to the logs for more information."

Confluence version 5.1.3

Log file:

2013-06-11 18:49:14,616 ERROR [Spring executor 120] [sf.hibernate.proxy.LazyInitializer] initializeWrapExceptions Exception initializing proxy -- url: /rest/plugins/1.0/ | userName: yury_yunkevich | referer: http://wiki.dev.hubwoo.com:8090/plugins/servlet/upmnet.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed	at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)	at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)	at com.atlassian.confluence.spaces.Space$$EnhancerByCGLIB$$1127b733.getDescription(<generated>)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.buildGroupSpacesList(DescendantNotificationManagerImpl.java:622)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.performRebuild(DescendantNotificationManagerImpl.java:681)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.afterPropertiesSet(DescendantNotificationManagerImpl.java:736)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)2013-06-11 18:49:14,616 ERROR [Spring executor 120] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.adaptavist.confluence.enterpriseNotifications -- url: /rest/plugins/1.0/ | userName: yury_yunkevich | referer: http://wiki.dev.hubwoo.com:8090/plugins/servlet/upmorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descendantNotificationManager' defined in URL [bundle://195.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)Caused by: net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:64)	at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)	at com.atlassian.confluence.spaces.Space$$EnhancerByCGLIB$$1127b733.getDescription(<generated>)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.buildGroupSpacesList(DescendantNotificationManagerImpl.java:622)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.performRebuild(DescendantNotificationManagerImpl.java:681)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.afterPropertiesSet(DescendantNotificationManagerImpl.java:736)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	... 19 moreCaused by: net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed	at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)	... 27 more2013-06-11 18:49:14,616 ERROR [Spring executor 120] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.adaptavist.confluence.enterpriseNotifications -- url: /rest/plugins/1.0/ | userName: yury_yunkevich | referer: http://wiki.dev.hubwoo.com:8090/plugins/servlet/upmorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descendantNotificationManager' defined in URL [bundle://195.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)Caused by: net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:64)	at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)	at com.atlassian.confluence.spaces.Space$$EnhancerByCGLIB$$1127b733.getDescription(<generated>)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.buildGroupSpacesList(DescendantNotificationManagerImpl.java:622)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.performRebuild(DescendantNotificationManagerImpl.java:681)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.afterPropertiesSet(DescendantNotificationManagerImpl.java:736)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	... 19 moreCaused by: net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed	at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)	... 27 more2013-06-11 18:49:14,616 ERROR [Spring executor 120] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.adaptavist.confluence.enterpriseNotifications -- url: /rest/plugins/1.0/ | userName: yury_yunkevich | referer: http://wiki.dev.hubwoo.com:8090/plugins/servlet/upmorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descendantNotificationManager' defined in URL [bundle://195.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)Caused by: net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:64)	at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)	at com.atlassian.confluence.spaces.Space$$EnhancerByCGLIB$$1127b733.getDescription(<generated>)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.buildGroupSpacesList(DescendantNotificationManagerImpl.java:622)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.performRebuild(DescendantNotificationManagerImpl.java:681)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.afterPropertiesSet(DescendantNotificationManagerImpl.java:736)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	... 19 moreCaused by: net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed	at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)	... 27 more2013-06-11 18:49:14,616 ERROR [Spring executor 120] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.adaptavist.confluence.enterpriseNotifications -- url: /rest/plugins/1.0/ | userName: yury_yunkevich | referer: http://wiki.dev.hubwoo.com:8090/plugins/servlet/upmorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descendantNotificationManager' defined in URL [bundle://195.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)Caused by: net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:64)	at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)	at com.atlassian.confluence.spaces.Space$$EnhancerByCGLIB$$1127b733.getDescription(<generated>)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.buildGroupSpacesList(DescendantNotificationManagerImpl.java:622)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.performRebuild(DescendantNotificationManagerImpl.java:681)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.afterPropertiesSet(DescendantNotificationManagerImpl.java:736)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	... 19 moreCaused by: net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed	at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)	... 27 more2013-06-11 18:49:14,616 ERROR [Spring executor 120] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.adaptavist.confluence.enterpriseNotifications -- url: /rest/plugins/1.0/ | userName: yury_yunkevich | referer: http://wiki.dev.hubwoo.com:8090/plugins/servlet/upmorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descendantNotificationManager' defined in URL [bundle://195.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)Caused by: net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:64)	at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)	at com.atlassian.confluence.spaces.Space$$EnhancerByCGLIB$$1127b733.getDescription(<generated>)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.buildGroupSpacesList(DescendantNotificationManagerImpl.java:622)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.performRebuild(DescendantNotificationManagerImpl.java:681)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.afterPropertiesSet(DescendantNotificationManagerImpl.java:736)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	... 19 moreCaused by: net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed	at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)	... 27 more2013-06-11 18:49:14,616 ERROR [Spring executor 120] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.adaptavist.confluence.enterpriseNotifications -- url: /rest/plugins/1.0/ | userName: yury_yunkevich | referer: http://wiki.dev.hubwoo.com:8090/plugins/servlet/upmorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descendantNotificationManager' defined in URL [bundle://195.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)Caused by: net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:64)	at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)	at com.atlassian.confluence.spaces.Space$$EnhancerByCGLIB$$1127b733.getDescription(<generated>)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.buildGroupSpacesList(DescendantNotificationManagerImpl.java:622)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.performRebuild(DescendantNotificationManagerImpl.java:681)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.afterPropertiesSet(DescendantNotificationManagerImpl.java:736)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	... 19 moreCaused by: net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed	at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)	... 27 more2013-06-11 18:49:14,616 ERROR [Spring executor 120] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.adaptavist.confluence.enterpriseNotifications -- url: /rest/plugins/1.0/ | userName: yury_yunkevich | referer: http://wiki.dev.hubwoo.com:8090/plugins/servlet/upmorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descendantNotificationManager' defined in URL [bundle://195.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)Caused by: net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:64)	at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)	at com.atlassian.confluence.spaces.Space$$EnhancerByCGLIB$$1127b733.getDescription(<generated>)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.buildGroupSpacesList(DescendantNotificationManagerImpl.java:622)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.performRebuild(DescendantNotificationManagerImpl.java:681)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.afterPropertiesSet(DescendantNotificationManagerImpl.java:736)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	... 19 moreCaused by: net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed	at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)	... 27 more2013-06-11 18:49:14,616 ERROR [Spring executor 120] [extender.internal.activator.ContextLoaderListener] onOsgiApplicationEvent Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.adaptavist.confluence.enterpriseNotifications, config=osgibundle:/META-INF/spring/*.xml)) -- url: /rest/plugins/1.0/ | userName: yury_yunkevich | referer: http://wiki.dev.hubwoo.com:8090/plugins/servlet/upmorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descendantNotificationManager' defined in URL [bundle://195.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)Caused by: net.sf.hibernate.LazyInitializationException: Exception initializing proxy: [com.atlassian.confluence.spaces.Space#131073]	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:64)	at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)	at com.atlassian.confluence.spaces.Space$$EnhancerByCGLIB$$1127b733.getDescription(<generated>)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.buildGroupSpacesList(DescendantNotificationManagerImpl.java:622)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.performRebuild(DescendantNotificationManagerImpl.java:681)	at com.adaptavist.confluence.enterpriseNotifications.DescendantNotificationManagerImpl.afterPropertiesSet(DescendantNotificationManagerImpl.java:736)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	... 19 moreCaused by: net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed	at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)	at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)	... 27 more
```


Answers:
author: Monika Turska [Adaptavist]
body: @Yuriy Yunkevich, hope your issue has been resolved and you use our [Enterprise Notifications add-ons](https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.enterpriseNotifications) without any problems. Just in case of any follow-up questions regarding the plugin - don't hesitate to [contact](http://www.adaptavist.com/w/about/contact-us/) Adaptavist Product Support and the team will be there to help with troubleshooting. Also check the latest [add-on documentation](http://www.adaptavist.com/doco/pages/viewpage.action?pageId=6883467) to learn more about recent versions of Enterprise Notifications


author: Joe Clark
body: Hi,

Have you installed the add-on in a version of Confluence that the add-on is listed as being compatible with on <https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.enterpriseNotifications> ?

The add-on is only listed as being compatible with Confluence 5.0 and later.

comments: author: Yuriy Yunkevich
body: Yes, my version is 5.1.3


Tags: addon-com.adaptavist.confluence.enterprisenotifications