[Sakai Jira] Created: (KERN-1193) Exceptions seen at shutdown

19 views
Skip to first unread message

Oszkar Nagy (JIRA)

unread,
Oct 6, 2010, 6:06:31 AM10/6/10
to sakai-...@googlegroups.com
Exceptions seen at shutdown
---------------------------

Key: KERN-1193
URL: http://jira.sakaiproject.org/browse/KERN-1193
Project: Nakamura
Issue Type: Bug
Components: System - other
Affects Versions: 0.8
Reporter: Oszkar Nagy
Priority: Minor


This might be expected/non-issue, if that's the case please disregard - it does not affect normal usage as far as I can see, but maybe it is a pointer to another problem.

When I am shutting down Nakamura in the OSX Terminal window by pressing Ctrl-C *sometimes* it shuts down without any exceptions, sometimes it shuts down with the following exceptions in the logs:

06.10.2010 11:00:26.459 *INFO* [FelixStartLevel] org.apache.felix.webconsole Service [org.apache.felix.webconsole.internal.servlet.OsgiManager,21] ServiceEvent UNREGISTERING
06.10.2010 11:00:26.459 *INFO* [FelixStartLevel] org.apache.felix.bundlerepository Service [11] ServiceEvent UNREGISTERING
06.10.2010 11:00:26.460 *INFO* [FelixStartLevel] org.apache.felix.bundlerepository Service [12] ServiceEvent UNREGISTERING
06.10.2010 11:00:26.460 *INFO* [FelixStartLevel] org.apache.sling.commons.log Service [7] ServiceEvent UNREGISTERING
06.10.2010 11:00:26.460 *INFO* [FelixStartLevel] org.apache.sling.commons.log Service [8] ServiceEvent UNREGISTERING
06.10.2010 11:00:26.460 *INFO* [FelixStartLevel] org.apache.sling.commons.log Service [org.apache.sling.commons.log.LogManager,4] ServiceEvent UNREGISTERING
06.10.2010 11:00:26.461 *INFO* [FelixStartLevel] org.apache.sling.commons.log Service [org.apache.sling.commons.log.LogManager.factory.writer,5] ServiceEvent UNREGISTERING
06.10.2010 11:00:26.461 *INFO* [FelixStartLevel] org.apache.sling.commons.log Service [org.apache.sling.commons.log.LogManager.factory.config,6] ServiceEvent UNREGISTERING
Persistence bundle stopping...
Persistence bundle stopped.
06.10.2010 11:00:26.479 *INFO* [Sling Notifier] Sling has been stopped
ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed)
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:518)
at java.util.zip.ZipFile.getEntry(ZipFile.java:251)
at java.util.jar.JarFile.getEntry(JarFile.java:206)
at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1781)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:758)
at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1656)
at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:514)
at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1824)
at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1802)
ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed)
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:518)
at java.util.zip.ZipFile.getEntry(ZipFile.java:251)
at java.util.jar.JarFile.getEntry(JarFile.java:206)
at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1781)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:758)
at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1656)
at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:514)
at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1824)
at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1802)
ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed)
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:518)
at java.util.zip.ZipFile.getEntry(ZipFile.java:251)
at java.util.jar.JarFile.getEntry(JarFile.java:206)
at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1781)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:758)
at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1656)
at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:514)
at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1824)
at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1802)
Exception in thread "ActiveMQ ShutdownHook" java.lang.NoClassDefFoundError: org/apache/activemq/broker/BrokerService$3$1
at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1656)
at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:514)
at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1824)
at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1802)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.sakaiproject.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Alan Berg (JIRA)

unread,
Oct 6, 2010, 6:13:31 AM10/6/10
to sakai-...@googlegroups.com

[ http://jira.sakaiproject.org/browse/KERN-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=110319#action_110319 ]

Alan Berg commented on KERN-1193:
---------------------------------

Exception in thread "ActiveMQ ShutdownHook" java.lang.NoClassDefFoundError: org/apache/activemq/broker/BrokerService$3$1

So some clean up cannot happen because a class is missing?

Ian Boston (JIRA)

unread,
Oct 6, 2010, 6:36:31 AM10/6/10
to sakai-...@googlegroups.com

[ http://jira.sakaiproject.org/browse/KERN-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Boston updated KERN-1193:
-----------------------------

Fix Version/s: 0.10

> Exceptions seen at shutdown
> ---------------------------
>
> Key: KERN-1193
> URL: http://jira.sakaiproject.org/browse/KERN-1193
> Project: Nakamura
> Issue Type: Bug
> Components: System - other
> Affects Versions: 0.8
> Reporter: Oszkar Nagy
> Priority: Minor

> Fix For: 0.10

Ian Boston (JIRA)

unread,
Oct 6, 2010, 6:36:31 AM10/6/10
to sakai-...@googlegroups.com

[ http://jira.sakaiproject.org/browse/KERN-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=110321#action_110321 ]

Ian Boston commented on KERN-1193:
----------------------------------

These are harmless.
The Zip failures are due to new Jars being loaded by the OSGi Container on shutdown, which is triggered by the Shutdown process surrounding ActiveMQ. Since ActiveMQ has already throttled down at this point.
If we had more time we could look into the shutdown procedure for AMQ and unbind it from a JVM triggered shutdown into a OSGi triggered shutdown, which should be possible.
Scheduling for Q2

> Exceptions seen at shutdown
> ---------------------------
>
> Key: KERN-1193
> URL: http://jira.sakaiproject.org/browse/KERN-1193
> Project: Nakamura
> Issue Type: Bug
> Components: System - other
> Affects Versions: 0.8
> Reporter: Oszkar Nagy
> Priority: Minor

> Fix For: 0.10

Ian Boston (JIRA)

unread,
Dec 15, 2010, 7:20:35 AM12/15/10
to sakai-...@googlegroups.com

[ http://jira.sakaiproject.org/browse/KERN-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Boston updated KERN-1193:
-----------------------------

Assignee: Ian Boston

> Exceptions seen at shutdown
> ---------------------------
>
> Key: KERN-1193
> URL: http://jira.sakaiproject.org/browse/KERN-1193
> Project: Nakamura
> Issue Type: Bug
> Components: System - other
> Affects Versions: 0.8
> Reporter: Oszkar Nagy

> Assignee: Ian Boston


> Priority: Minor
> Fix For: 0.10
>
>

Ian Boston (JIRA)

unread,
Dec 15, 2010, 7:54:35 AM12/15/10
to sakai-...@googlegroups.com

[ http://jira.sakaiproject.org/browse/KERN-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Boston resolved KERN-1193.
------------------------------

Resolution: Won't Fix

Wont fix, cant fix without a lot of work on the OSGi lifecycle deep within felix.

> Exceptions seen at shutdown
> ---------------------------
>
> Key: KERN-1193
> URL: http://jira.sakaiproject.org/browse/KERN-1193
> Project: Nakamura
> Issue Type: Bug
> Components: System - other
> Affects Versions: 0.8
> Reporter: Oszkar Nagy

> Assignee: Ian Boston
> Priority: Minor
> Fix For: 0.10
>
>

Reply all
Reply to author
Forward
0 new messages