jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blanco Emanuele <e.bla...@reply.it>
Subject RE: clustering problems - Jackrabbit 1.4
Date Tue, 25 Nov 2008 07:53:52 GMT
Ok, I will try to copy only namespaces and nodetypes and will let you know.

--
Emanuele Blanco

Open Reply s.r.l.
C.so Francia 110, Torino
C e-mail: e.blanco@reply.it

-----Original Message-----
From: slandelle@excilys.com [mailto:slandelle@excilys.com]
Sent: lunedì 24 novembre 2008 19.01
To: users@jackrabbit.apache.org
Subject: RE: clustering problems - Jackrabbit 1.4

No no no no no, you have to let each node initialize its own indexes!!!

Le Lun 24 novembre 2008 18:54, Blanco Emanuele a écrit :
> Hi Alexander,
>
>
> I had two fresh new directories on my nodes (one for each node), each one
> that contains the specific repository.xml file. I'll let Jackrabbit
> manage the initialization by himself.
>
> However, if I understand right, I should let the first node start and
> initialize the repository, then copy the indexes that the first node
> generated into the second node, then start the second node. Is this what
> you mean? My data contains custom namespaces and nodetypes. Are you
> talking about the index/, meta/, namespaces/ and nodetypes/ directories?
>
> Thank you.
>
>
> --
> Emanuele Blanco
>
>
> -----Original Message-----
> From: Alexander Klimetschek [mailto:aklimets@day.com]
> Sent: lunedì 24 novembre 2008 18.06
> To: users@jackrabbit.apache.org
> Subject: Re: clustering problems - Jackrabbit 1.4
>
>
> Hi,
>
>
> the problem is most likely the first error you get: URIIndex not valid?
> javax.jcr.NamespaceException: URI for index 11 not registered.
> The following errors seem to occur because after failing to read it,
> Jackrabbit tries to create that node
> (cafebabe-cafe-babe-cafe-babecafebabe is the fixed uuid of the root
> node), which gives the duplicate primary key error, because the node is
> actually present in the database, but could not be read due to the
> namespace problem.
>
> How did you create the second cluster? Did you copy the
> repository/namespaces and repository/nodetypes directories in the
> repository directory to a fresh new cluster node? The namespaces directory
> contains the namespace index, which must be the same on all nodes.
> Clustering synchronizes them, but if you start with an empty
> cluster node and your data contains custom namespaces (or nodetypes), it
> might be required to copy these directories.
>
> Regards,
> Alex
>
>
> On Mon, Nov 24, 2008 at 5:39 PM, Blanco Emanuele <e.blanco@reply.it>
> wrote:
>
>> Hi there,
>>
>>
>> I tried to upgrade Jackrabbit to 1.4.6 in my web application. It seems
>> successful, but I still got some problems in cluster deploying. The
>> first node deploys OK, the second gives me lots of errors like:
>>
>> 17:35:01,381 INFO  [STDOUT] ERROR 24-11 17:35:01,376
>> (BundleDbPersistenceManager.java:loadBundle:1228)   failed to read
>> bundle: cafebabe-cafe-babe-cafe-babecafebabe:
>> java.lang.IllegalStateException: URIIndex not valid?
>> javax.jcr.NamespaceException: URI for index 11 not registered.
>> 17:35:01,425 INFO  [STDOUT] ERROR 24-11 17:35:01,422
>> (ConnectionRecoveryManager.java:logException:447)   could not execute
>> statement, reason: ORA-00001: violata restrizione di unicità
>> (COOPTRACE.DEFAULT_BUNDLE_IDX)
>> , state/code: 23000/1
>> 17:35:01,434 INFO  [STDOUT] ERROR 24-11 17:35:01,429
>> (Oracle9PersistenceManager.java:storeBundle:127)    failed to write
>> bundle: deadbeef-cafe-babe-cafe-babecafebabe
>> java.sql.SQLException: ORA-00001: violata restrizione di unicità
>> (COOPTRACE.DEFAULT_BUNDLE_IDX)
>>
>>
>> at
>> oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:1
>> 12)
>> at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) at
>> oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
>> at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745) at
>> oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.ja
>> va:216)
>> at
>> oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedState
>> ment.java:966)
>> at
>> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement
>> .java:1170)
>> at
>> oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrepar
>> edStatement.java:3339)
>> at
>> oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatem
>> ent.java:3445)
>> at
>> org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryMa
>> nager.executeStmtInternal(ConnectionRecoveryManager.java:365)
>> at
>> org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryMa
>> nager.executeStmtInternal(ConnectionRecoveryManager.java:292)
>> at
>> org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryMa
>> nager.executeStmt(ConnectionRecoveryManager.java:257)
>> at
>> org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryMa
>> nager.executeStmt(ConnectionRecoveryManager.java:237)
>> at
>> org.apache.jackrabbit.core.persistence.bundle.Oracle9PersistenceManager
>> .storeBundle(Oracle9PersistenceManager.java:124)
>> at
>> org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistence
>> Manager.putBundle(AbstractBundlePersistenceManager.java:703)
>> at
>> org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistence
>> Manager.store(AbstractBundlePersistenceManager.java:643)
>> at
>> org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManage
>> r.store(BundleDbPersistenceManager.java:526)
>> at
>> org.apache.jackrabbit.core.state.SharedItemStateManager.createRootNodeS
>> tate(SharedItemStateManager.java:1084)
>> at
>> org.apache.jackrabbit.core.state.SharedItemStateManager.<init>(SharedIt
>> emStateManager.java:194)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl.createItemStateManager(Reposi
>> toryImpl.java:1201)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(Re
>> positoryImpl.java:1753)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(Repo
>> sitoryImpl.java:1724)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.
>> java:576)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Reposit
>> oryImpl.java:415)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:30
>> 5)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:55
>> 7)
>> at
>> org.apache.jackrabbit.core.TransientRepository$2.getRepository(Transien
>> tRepository.java:245)
>> at
>> org.apache.jackrabbit.core.TransientRepository.startRepository(Transien
>> tRepository.java:265)
>> at
>> org.apache.jackrabbit.core.TransientRepository.login(TransientRepositor
>> y.java:333)
>> at
>> org.apache.jackrabbit.core.TransientRepository.login(TransientRepositor
>> y.java:363)
>> at
>> org.drools.brms.server.repository.BRMSRepositoryConfiguration.newSessio
>> n(BRMSRepositoryConfiguration.java:91)
>>
>>
>> and
>>
>> 17:35:02,054 INFO  [STDOUT] ERROR 24-11 17:35:02,049
>> (RepositoryImpl.java:initStartupWorkspaces:418)     Failed to
>> initialize workspace 'default' javax.jcr.RepositoryException: failed to
>> instantiate shared item state manager: failed to write bundle:
>> deadbeef-cafe-babe-cafe-babecafebabe: failed to write bundle:
>> deadbeef-cafe-babe-cafe-babecafebabe at
>> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(Re
>> positoryImpl.java:1771)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(Repo
>> sitoryImpl.java:1724)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.
>> java:576)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Reposit
>> oryImpl.java:415)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:30
>> 5)
>> at
>> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:55
>> 7)
>> at
>> org.apache.jackrabbit.core.TransientRepository$2.getRepository(Transien
>> tRepository.java:245)
>> at
>> org.apache.jackrabbit.core.TransientRepository.startRepository(Transien
>> tRepository.java:265)
>> at
>> org.apache.jackrabbit.core.TransientRepository.login(TransientRepositor
>> y.java:333)
>> at
>> org.apache.jackrabbit.core.TransientRepository.login(TransientRepositor
>> y.java:363)
>> at
>> org.drools.brms.server.repository.BRMSRepositoryConfiguration.newSessio
>> n(BRMSRepositoryConfiguration.java:91)
>> at
>> org.drools.brms.server.repository.BRMSRepositoryConfiguration.create(BR
>> MSRepositoryConfiguration.java:58)
>>
>>
>> The ORA error description is in Italian and it means that an integrity
>> violation has occurred (I guess a duplicate primary key).
>>
>> Any suggestions?
>>
>>
>> Thank you.
>>
>>
>> --
>> Emanuele Blanco
>>
>>
>>
>> ________________________________
>> --
>> The information transmitted is intended for the person or entity to
>> which it is addressed and may contain confidential and/or privileged
>> material. Any review, retransmission, dissemination or other use of, or
>> taking of any action in reliance upon, this information by persons or
>> entities other than the intended recipient is prohibited. If you
>> received this in error, please contact the sender and delete the
>> material from any computer.
>>
>
>
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>
> --
> The information transmitted is intended for the person or entity to which
> it is addressed and may contain confidential and/or privileged material.
> Any review, retransmission, dissemination or other use of, or taking of
> any action in reliance upon, this information by persons or entities
> other than the intended recipient is prohibited. If you received this in
> error, please contact the sender and delete the material from any
> computer.
>



--
The information transmitted is intended for the person or entity to which it is addressed
and may contain confidential and/or privileged material. Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received this in error, please
contact the sender and delete the material from any computer.

Mime
View raw message