Bhathiya Jayasekara | 25 Jun 2012 07:16
Picon
Gravatar

'Invalid namespace index' exception which Apache Sling integration

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)
(Continue reading)

Jeroen Reijn | 1 Jul 2012 19:43

Re: 'Invalid namespace index' exception which Apache Sling integration

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 <at> 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
(Continue reading)

Bhathiya Jayasekara | 2 Jul 2012 13:55
Picon
Gravatar

Re: 'Invalid namespace index' exception which Apache Sling integration

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 <at> 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
(Continue reading)

Jukka Zitting | 2 Jul 2012 13:59
Picon
Gravatar

Re: 'Invalid namespace index' exception which Apache Sling integration

Hi,

On Mon, Jul 2, 2012 at 1:55 PM, Bhathiya Jayasekara
<tobhathiyaj <at> gmail.com> wrote:
> 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.

Sounds like a likely reason. You can upgrade to a more recent
Jackrabbit version, but using an existing Jackrabbit repository with
an older version of Jackrabbit is not guaranteed to work.

BR,

Jukka Zitting

Bhathiya Jayasekara | 2 Jul 2012 16:07
Picon
Gravatar

Re: 'Invalid namespace index' exception which Apache Sling integration

Hi Jukka,

I did the same with jackrabbit 2.4.2 with Sling Launchpad 7 which uses
jackrabbit 2.4.2. But I still get the following error in Sling error.log.
Any thoughts please?

02.07.2012 19:22:35.916 *INFO* [FelixStartLevel]
org.apache.jackrabbit.core.RepositoryImpl workspace 'security' initialized
02.07.2012 19:22:35.917 *INFO* [FelixStartLevel]
org.apache.jackrabbit.core.DefaultSecurityManager init: use Repository
Login-Configuration for Jackrabbit
02.07.2012 19:22:35.983 *INFO* [FelixStartLevel]
org.apache.jackrabbit.core.RepositoryImpl Repository started (6694ms)
02.07.2012 19:22:35.992 *INFO* [FelixStartLevel]
org.apache.sling.jcr.jackrabbit.server pingAndCheck; loginAdministrative
failed (javax.jcr.LoginException: LoginModule ignored Credentials)
javax.jcr.LoginException: LoginModule ignored Credentials
 at
org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1493)
at
org.apache.sling.jcr.base.AbstractSlingRepository.login(AbstractSlingRepository.java:205)
 at
org.apache.sling.jcr.base.AbstractSlingRepository.loginAdministrative(AbstractSlingRepository.java:171)
at
org.apache.sling.jcr.base.AbstractSlingRepository.pingAndCheck(AbstractSlingRepository.java:499)
 at
org.apache.sling.jcr.base.AbstractSlingRepository.startRepository(AbstractSlingRepository.java:755)
at
org.apache.sling.jcr.base.AbstractSlingRepository.activate(AbstractSlingRepository.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(Continue reading)

Bhathiya Jayasekara | 5 Jul 2012 18:09
Picon
Gravatar

Re: 'Invalid namespace index' exception which Apache Sling integration

Hi all,

I replaced jackrabbit repository.xml's 'Security' configuration element
with following part and now that 'login credentials ignored' problem is
solved. :D Now it works smoothly.

    *<Security appName="Jackrabbit">*
*        <SecurityManager
class="org.apache.jackrabbit.core.DefaultSecurityManager"
workspaceName="security">*
*        </SecurityManager>*
*
*
*        <AccessManager
class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultAccessManager">
*
*        </AccessManager>*
*
*
*        <LoginModule
class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultLoginModule">
*
*            <param name="anonymousId" value="anonymous"/>*
*            <param name="adminId" value="admin"/>*
*        </LoginModule>*
*    </Security>*
*
*
Thanks all,

(Continue reading)

shilpa | 6 Jul 2012 23:19
Picon

Re: 'Invalid namespace index' exception which Apache Sling integration

Hi Bhatiya, 
I am having the similar issues what you experience. Could you please help
how you made everything work.

Thanks so much
!!

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Invalid-namespace-index-exception-which-Apache-Sling-integration-tp4655601p4655855.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

AtulMaurya | 16 Jul 2012 17:03
Picon

Re: 'Invalid namespace index' exception which Apache Sling integration

Hello Jayasekara,

I am getting a similar error with Jackrabbit 1.5.5 (without sling). The
description is as-

We are using Jackrabbit as an repository in our product. Right now I am
dealing with an issue where the repository is getting failed to initialize.
I have tried all the work around suggested on different forums like- adding
(
) parameters to repository.xml, upgrading the repository etc. The exception
I am getting is as follows-

Caused by: javax.jcr.RepositoryException:
org.apache.jackrabbit.core.state.ItemStateException: failed to read bundle:
deadbeef-face-babe-cafe-babecafebabe: java.lang.IllegalArgumentException:
Index not found: 1
        at
org.apache.jackrabbit.core.version.InternalVersionManagerImpl.<init>(InternalVersionManagerImpl.java:209)
        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.jackrabbit.core.TransientRepository$1.getRepository(TransientRepository.java:179)
        at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:259)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:355)
(Continue reading)


Gmane