Unloading initial content during bundle update fails with NPE and subsequent
locked bundle content node
-------------------------------------------------------------------------------------------------------
Key: SLING-413
URL: https://issues.apache.org/jira/browse/SLING-413
Project: Sling
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0
Environment: Darwin 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar 4
21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386,
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
Reporter: Dominique Jäggi
when deploying a bundle using the maven-sling-plugin to a running sling
instance the following errors produce themselves should the bundle contain
initial content:
02.05.2008 11:52:07.237 *ERROR* [Background Update com.mycompany.mybundle (77)]
org.apache.sling.jcr.contentloader.internal.ContentLoaderService bundleChanged:
Problem unloading initial content of bundle com.mycompany.mybundle (77)
java.lang.NullPointerException
at
org.apache.sling.jcr.contentloader.internal.ContentLoaderService.contentIsUninstalled(ContentLoaderService.java:320)
at
org.apache.sling.jcr.contentloader.internal.Loader.unregisterBundle(Loader.java:193)
at
org.apache.sling.jcr.contentloader.internal.ContentLoaderService.bundleChanged(ContentLoaderService.java:134)
at
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:690)
at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:619)
at
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:532)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3568)
at org.apache.felix.framework.Felix._stopBundle(Felix.java:2010)
at org.apache.felix.framework.Felix.stopBundle(Felix.java:1920)
at org.apache.felix.framework.Felix._updateBundle(Felix.java:1757)
at org.apache.felix.framework.Felix.updateBundle(Felix.java:1719)
at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:372)
at
org.apache.sling.osgi.console.web.internal.core.InstallAction$2.doRun(InstallAction.java:242)
at
org.apache.sling.osgi.console.web.internal.core.InstallAction$InstallHelper.run(InstallAction.java:278)
with a subsequent "pending changes" state of the associated bundle content node:
02.05.2008 11:52:07.288 *ERROR* [Background Update com.mycompany.mybundle (77)]
org.apache.sling.jcr.contentloader.internal.Loader Cannot load initial content
for bundle com.mycompany.mybundle : Unable to lock node. Node has pending
changes: /var/sling/bundle-content/com.mycompany.mybundle
javax.jcr.InvalidItemStateException: Unable to lock node. Node has pending
changes: /var/sling/bundle-content/com.mycompany.mybundle
at org.apache.jackrabbit.core.NodeImpl.lock(NodeImpl.java:4092)
at
org.apache.sling.jcr.contentloader.internal.ContentLoaderService.getBundleContentInfo(ContentLoaderService.java:279)
at
org.apache.sling.jcr.contentloader.internal.Loader.registerBundleInternal(Loader.java:143)
at
org.apache.sling.jcr.contentloader.internal.Loader.registerBundle(Loader.java:107)
at
org.apache.sling.jcr.contentloader.internal.ContentLoaderService.bundleChanged(ContentLoaderService.java:123)
at
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:690)
at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:619)
at
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:532)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3568)
at org.apache.felix.framework.Felix._updateBundle(Felix.java:1848)
at org.apache.felix.framework.Felix.updateBundle(Felix.java:1719)
at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:372)
at
org.apache.sling.osgi.console.web.internal.core.InstallAction$2.doRun(InstallAction.java:242)
at
org.apache.sling.osgi.console.web.internal.core.InstallAction$InstallHelper.run(InstallAction.java:278)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.