Discussion:
Content repository not initializing
AtulMaurya
2012-07-18 09:55:54 UTC
Permalink
Hello,

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)
at
org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:123)
at
com.primavera.ucr.jcr.jackrabbit.JackrabbitImpl.initialLogin(JackrabbitImpl.java:142)
at
com.primavera.ucr.jcr.jackrabbit.JackrabbitImpl.init(JackrabbitImpl.java:87)
... 45 more
Caused by: 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.persistence.bundle.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1170)
at
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1103)
at
org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:638)
at
org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:457)
at
org.apache.jackrabbit.core.version.InternalVersionManagerImpl.<init>(InternalVersionManagerImpl.java:163)
... 54 more
Caused by: java.lang.IllegalArgumentException: Index not found: 1
at
org.apache.jackrabbit.core.persistence.bundle.DbNameIndex.getString(DbNameIndex.java:215)
at
org.apache.jackrabbit.core.persistence.bundle.DbNameIndex.indexToString(DbNameIndex.java:117)
at
org.apache.jackrabbit.core.persistence.util.BundleBinding.readBundle(BundleBinding.java:89)
at
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1164)
... 58 more


Also in our application the method initialLogin(ucrSession) calls the method
login(new SimpleCredentials(superUser, passChars)) and here I am getting the
exception.

Thanks very much in advance, hope you will get time to reply. I am stuck
because of this. I have another question- while the log-in does Jackrabbit
read any data from database because the exception looks the root element
related but I could not see if it is checking the database while log-in.

Thanks again.

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Content-repository-not-initializing-tp4656033.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
AtulMaurya
2012-07-23 07:05:43 UTC
Permalink
Hello everyone,

I am new to Jackrabbit and badly in need of help on the issue above. please
suggest me something if you have some idea. I have tried all the work around
suggested on different forums for this issue.

Thanks a ton in advance.



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Content-repository-not-initializing-tp4656033p4656084.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
R***@ipaustralia.gov.au
2012-07-25 02:42:23 UTC
Permalink
Dude

You are using an unsupported version of jackrabbit, you dont describe your
deployment, is this a problem with an existing repository, can it be
reproduced with a new repository
you need to supply some details!

Ross



From: AtulMaurya <***@gmail.com>
To: ***@jackrabbit.apache.org
Date: 23/07/2012 05:06 PM
Subject: Re: Content repository not initializing



Hello everyone,

I am new to Jackrabbit and badly in need of help on the issue above.
please
suggest me something if you have some idea. I have tried all the work
around
suggested on different forums for this issue.

Thanks a ton in advance.



--
View this message in context:
http://jackrabbit.510166.n4.nabble.com/Content-repository-not-initializing-tp4656033p4656084.html

Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
AtulMaurya
2012-07-25 10:54:40 UTC
Permalink
Hello Ross
http://jackrabbit.510166.n4.nabble.com/file/n4656111/jackrabbit_config.xml
jackrabbit_config.xml
http://jackrabbit.510166.n4.nabble.com/file/n4656111/repository.xml
repository.xml ,

Thanks very much for the reply. My deployment and configuration details are
as follows-

We are using Jackrabbit 1.5.5 repository in build in our application (using
all the relevant jars). The application is deployed on weblogic/JBoss.
The problem that I am facing is on Oracle Database. Initially the repository
was working fine but at some point it stopped working and gave this
exception.
The repository is still working with our sample database, its giving the
exceptions only with the customer database(I am sorry I can not provide the
connection details to the DB).

Initailly I was getting following exception-

Caused by: javax.jcr.RepositoryException: File system initialization
failure.: failed to initialize file system: failed to initialize file system
at
org.apache.jackrabbit.core.config.RepositoryConfigurationParser$2.getFileSystem(RepositoryConfigurationParser.java:769)
at
org.apache.jackrabbit.core.config.RepositoryConfig.getFileSystem(RepositoryConfig.java:666)
at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:262)
at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:621)
at
org.apache.jackrabbit.core.TransientRepository$1.getRepository(TransientRepository.java:181)
at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:255)
at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:323)
at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:353)
<our application calls the login() method with all the required
parameters>
... 45 more
Caused by: org.apache.jackrabbit.core.fs.FileSystemException: failed to
initialize file system
at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.init(DatabaseFileSystem.java:205)
at
org.apache.jackrabbit.core.fs.db.OracleFileSystem.init(OracleFileSystem.java:137)
at
org.apache.jackrabbit.core.config.RepositoryConfigurationParser$2.getFileSystem(RepositoryConfigurationParser.java:762)
... 54 more
Caused by: org.apache.jackrabbit.core.fs.FileSystemException: failed to
create folder entry: /
at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.createDeepFolder(DatabaseFileSystem.java:1392)
at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.verifyRootExists(DatabaseFileSystem.java:1360)
at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.init(DatabaseFileSystem.java:199)
... 56 more
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001:
unique constraint (XYZ Table) violated

at
oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
at
oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
at
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at
oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
at
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3488)
at
oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.executeStmt(DatabaseFileSystem.java:1074)
at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.createDeepFolder(DatabaseFileSystem.java:1383)
... 58 more

Then I modifed the XYZ table in the database and got the error mentioned in
my first post.

I am also uploading the configuration file that we use to configure
Jackrabbit and repository.xml.



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Content-repository-not-initializing-tp4656033p4656111.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
AtulMaurya
2012-08-13 06:39:21 UTC
Permalink
Hello All,


Can anyone suggest me something on the issue?


Thanks and regards,
Atul



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Content-repository-not-initializing-tp4656033p4656286.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Jeroen Reijn
2012-08-14 15:13:40 UTC
Permalink
Well I'm not really experienced with Oracle or so much of the
underlaying DBs, but apparently you have a constraint violation. If I
were you I would check to see if the triggers and constraints are
correct for that specific table.

Jeroen
Post by AtulMaurya
Hello All,
Can anyone suggest me something on the issue?
Thanks and regards,
Atul
--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Content-repository-not-initializing-tp4656033p4656286.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
--
Jeroen Reijn
Solution Architect
Hippo

Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

http://about.me/jeroenreijn
AtulMaurya
2012-09-04 13:09:27 UTC
Permalink
Thank you all for the replies.. I resolved the issue.. it was a database
issue and nothing from JackRabbit was to be corrected. Actually the database
was migrated from MS SQL to Oracle and the and this caused the corruption of
BLOB data. After correcting the migrate utility the issue got resolved
itself and the repository is getting started normally.

Once again thanks very much for the help :)



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Content-repository-not-initializing-tp4656033p4656429.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Continue reading on narkive:
Loading...