jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhathiya Jayasekara <tobhathi...@gmail.com>
Subject Re: 'Invalid namespace index' exception which Apache Sling integration
Date Mon, 02 Jul 2012 11:55:29 GMT
Hi Jeroen,

Thank you for the reply. Since the issue was about namespace indices, I
compared ns_idx.properties file in embedded and external repositories and I
could find the indices were different in those 2. May be a jackrabbit
version problem. So few days ago I got a new version of Sling Launchpad
which has a new version of Jackrabbit and configured all again. Now that
namespace index issue does not occur. But, now there are some other
exceptions.

Please have a look at the last post of mine here[1]. I have posted the
current exceptions I get in error.log file. Do you have any idea why these
occur?

Thanks in advance.

--Bhathiya

[1]
http://apache-sling.73963.n3.nabble.com/Plugging-an-external-jackrabbit-repository-to-Sling-Launchpad-tc4018547.html

On Sun, Jul 1, 2012 at 11:13 PM, Jeroen Reijn <j.reijn@onehippo.com> wrote:

> Hi,
>
> the error seems repository related. I personally have no experience
> with Sling, but from the looks of it something is wrong while starting
> up the repository.
>
> What kind of configuration do you have for your repository. Perhaps
> you can level up you loggin to see if the jackrabbit persistence
> manager is connecting correctly to your database.
>
> Also make sure that if you've used the embedded repository before that
> the repository storage (which contains lucene indexes etc) is either
> removed or pointing to a different location.
>
> Perhaps you can share your repository.xml and your repository settings?
>
> Regards,
>
> Jeroen
>
> On Mon, Jun 25, 2012 at 7:16 AM, Bhathiya Jayasekara
> <tobhathiyaj@gmail.com> wrote:
> > Hi all,
> >
> > I was trying to use Apache Sling to communicate with a Jacakrabbit
> > repository. In Sling Launchpad[1], there is an embedded jackrabbit
> > repository. But what I want is to plug an external jackrabbit repository.
> > So I configured it through its admin console, according to this[2]
> thread.
> >
> > But then when I start Sling Launchpad, it gives following error in its
> > logs. I asked this[3] from Sling user/div lists and they said it an issue
> > with the jackrabbit repository. They asked me to ask this from jackrabbit
> > list. Can you please help me figure this out? Thanks in advance.
> >
> > 25.06.2012 02:07:50.464 *ERROR* [FelixStartLevel]
> > org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
> > failed to read bundle: deadbeef-face-babe-cafe-babecafebabe:
> > java.lang.IllegalArgumentException: Invalid namespace index: 6086317
> > 25.06.2012 02:07:50.465 *ERROR* [FelixStartLevel]
> > org.apache.jackrabbit.core.RepositoryImpl failed to start Repository:
> > org.apache.jackrabbit.core.state.ItemStateException: failed to read
> bundle:
> > deadbeef-face-babe-cafe-babecafebabe: java.lang.IllegalArgumentException:
> > Invalid namespace index: 6086317 javax.jcr.RepositoryException:
> > org.apache.jackrabbit.core.state.ItemStateException: failed to read
> bundle:
> > deadbeef-face-babe-cafe-babecafebabe: java.lang.IllegalArgumentException:
> > Invalid namespace index: 6086317
> >  at
> >
> org.apache.jackrabbit.core.version.InternalVersionManagerImpl.<init>(InternalVersionManagerImpl.java:258)
> > at
> >
> org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:512)
> >  at
> > org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:355)
> > at
> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:673)
> >  at
> >
> org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepository.acquireRepository(SlingServerRepository.java:141)
> > at
> >
> org.apache.sling.jcr.base.AbstractSlingRepository.startRepository(AbstractSlingRepository.java:795)
> >  at
> >
> org.apache.sling.jcr.base.AbstractSlingRepository.activate(AbstractSlingRepository.java:606)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >  at java.lang.reflect.Method.invoke(Method.java:597)
> > at
> >
> org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
> >  at
> >
> org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
> > at
> >
> org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
> >  at
> org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
> > at
> >
> org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
> >  at
> >
> org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
> > at
> >
> org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
> >  at
> >
> org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:997)
> > at
> >
> org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
> >  at
> >
> org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:157)
> > at
> >
> org.apache.felix.scr.impl.config.ConfiguredComponentHolder.enableComponents(ConfiguredComponentHolder.java:262)
> >  at
> >
> org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:253)
> > at
> >
> org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147)
> >  at
> >
> org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:111)
> > at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:285)
> >  at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:203)
> > at
> >
> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
> >  at
> >
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
> > at
> >
> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
> >  at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3758)
> > at org.apache.felix.framework.Felix.startBundle(Felix.java:1780)
> >  at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
> > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> >  at java.lang.Thread.run(Thread.java:662)
> > Caused by: org.apache.jackrabbit.core.state.ItemStateException: failed to
> > read bundle: deadbeef-face-babe-cafe-babecafebabe:
> > java.lang.IllegalArgumentException: Invalid namespace index: 6086317
> >  at
> >
> org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1096)
> > at
> >
> org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
> >  at
> >
> org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
> > at
> >
> org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:470)
> >  at
> >
> org.apache.jackrabbit.core.version.InternalVersionManagerImpl.<init>(InternalVersionManagerImpl.java:212)
> > ... 34 more
> > Caused by: java.lang.IllegalArgumentException: Invalid namespace index:
> > 6086317
> > at
> >
> org.apache.jackrabbit.core.NamespaceRegistryImpl.indexToString(NamespaceRegistryImpl.java:310)
> >  at
> >
> org.apache.jackrabbit.core.persistence.util.BundleBinding.readBundle(BundleBinding.java:88)
> > at
> >
> org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1090)
> >  ... 38 more
> > 25.06.2012 02:07:50.466 *INFO* [FelixStartLevel]
> > org.apache.jackrabbit.core.RepositoryImpl Shutting down repository...
> > 25.06.2012 02:07:50.468 *INFO* [FelixStartLevel]
> > org.apache.jackrabbit.core.RepositoryImpl Repository has been shutdown
> > 25.06.2012 02:07:50.468 *ERROR* [FelixStartLevel]
> > org.apache.sling.jcr.jackrabbit.server acquireRepository: Repository
> > problem starting repository from
> >
> /home/bhathiya/Apps/airavata/newtrunk/modules/distribution/target/apache-airavata-0.4-incubating-SNAPSHOT/bin/jackrabbit/repository.xml
> > in
> >
> /home/bhathiya/Apps/airavata/newtrunk/modules/distribution/target/apache-airavata-0.4-incubating-SNAPSHOT/bin/jackrabbit
> > (javax.jcr.RepositoryException:
> > org.apache.jackrabbit.core.state.ItemStateException: failed to read
> bundle:
> > deadbeef-face-babe-cafe-babecafebabe: java.lang.IllegalArgumentException:
> > Invalid namespace index: 6086317) javax.jcr.RepositoryException:
> > org.apache.jackrabbit.core.state.ItemStateException: failed to read
> bundle:
> > deadbeef-face-babe-cafe-babecafebabe: java.lang.IllegalArgumentException:
> > Invalid namespace index: 6086317
> >  at
> >
> org.apache.jackrabbit.core.version.InternalVersionManagerImpl.<init>(InternalVersionManagerImpl.java:258)
> > at
> >
> org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:512)
> >  at
> > org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:355)
> > at
> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:673)
> >  at
> >
> org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepository.acquireRepository(SlingServerRepository.java:141)
> > at
> >
> org.apache.sling.jcr.base.AbstractSlingRepository.startRepository(AbstractSlingRepository.java:795)
> >  at
> >
> org.apache.sling.jcr.base.AbstractSlingRepository.activate(AbstractSlingRepository.java:606)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >  at java.lang.reflect.Method.invoke(Method.java:597)
> > at
> >
> org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
> >  at
> >
> org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
> > at
> >
> org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
> >  at
> org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
> > at
> >
> org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
> >  at
> >
> org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
> > at
> >
> org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
> >  at
> >
> org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:997)
> > at
> >
> org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
> >  at
> >
> org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:157)
> > at
> >
> org.apache.felix.scr.impl.config.ConfiguredComponentHolder.enableComponents(ConfiguredComponentHolder.java:262)
> >  at
> >
> org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:253)
> > at
> >
> org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147)
> >  at
> >
> org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:111)
> > at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:285)
> >  at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:203)
> > at
> >
> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
> >  at
> >
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
> > at
> >
> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
> >  at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3758)
> > at org.apache.felix.framework.Felix.startBundle(Felix.java:1780)
> >  at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
> > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> >  at java.lang.Thread.run(Thread.java:662)
> > Caused by: org.apache.jackrabbit.core.state.ItemStateException: failed to
> > read bundle: deadbeef-face-babe-cafe-babecafebabe:
> > java.lang.IllegalArgumentException: Invalid namespace index: 6086317
> >  at
> >
> org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1096)
> > at
> >
> org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
> >  at
> >
> org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
> > at
> >
> org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:470)
> >  at
> >
> org.apache.jackrabbit.core.version.InternalVersionManagerImpl.<init>(InternalVersionManagerImpl.java:212)
> > ... 34 more
> > Caused by: java.lang.IllegalArgumentException: Invalid namespace index:
> > 6086317
> > at
> >
> org.apache.jackrabbit.core.NamespaceRegistryImpl.indexToString(NamespaceRegistryImpl.java:310)
> >  at
> >
> org.apache.jackrabbit.core.persistence.util.BundleBinding.readBundle(BundleBinding.java:88)
> > at
> >
> org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1090)
> >  ... 38 more
> >
> > Thank you,
> >
> >  -- Bhathiya
> >
> > [1] http://sling.apache.org/site/the-sling-launchpad.html
> > [2]
> >
> http://apache-sling.73963.n3.nabble.com/configuring-jackrabbit-tp880359p880607.html
> > [3]
> >
> http://mail-archives.apache.org/mod_mbox/sling-users/201206.mbox/%3CE3FEB57C-4E97-4D7F-8754-1C987C98DA53@adobe.com%3E
>



-- 
-Bhathiya Jayasekara-
http://www.google.com/profiles/tobhathiyaj
http://www.facebook.com/#!/bhathiyaj1

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message