Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 54665 invoked from network); 25 Nov 2008 07:54:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 07:54:50 -0000 Received: (qmail 32116 invoked by uid 500); 25 Nov 2008 07:54:59 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 31835 invoked by uid 500); 25 Nov 2008 07:54:59 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 31824 invoked by uid 99); 25 Nov 2008 07:54:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 23:54:58 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.101.100.50] (HELO smtpout3.reply.it) (62.101.100.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 07:53:34 +0000 Received: from ced01hubs01.replynet.prv (10.50.63.3) by ced01ets02.replynet.prv (172.16.1.34) with Microsoft SMTP Server (TLS) id 8.1.311.2; Tue, 25 Nov 2008 08:54:00 +0100 Received: from CED01CMBXS01.replynet.prv ([10.50.61.2]) by ced01hubs01.replynet.prv ([10.50.63.2]) with mapi; Tue, 25 Nov 2008 08:53:57 +0100 From: Blanco Emanuele To: "users@jackrabbit.apache.org" Date: Tue, 25 Nov 2008 08:53:52 +0100 Subject: RE: clustering problems - Jackrabbit 1.4 Thread-Topic: clustering problems - Jackrabbit 1.4 Thread-Index: AclOXqJOZaO6QEtUR3GsrP/abpHKhQAc/H0g Message-ID: <9889CC1A69BBC549931AF0B0C250EE65127968B4A8@CED01CMBXS01.replynet.prv> References: <9889CC1A69BBC549931AF0B0C250EE65127968B482@CED01CMBXS01.replynet.prv> <9889CC1A69BBC549931AF0B0C250EE65127968B495@CED01CMBXS01.replynet.prv> <60564.217.109.84.129.1227549635.squirrel@www.mail.fr.clara.net> In-Reply-To: <60564.217.109.84.129.1227549635.squirrel@www.mail.fr.clara.net> Accept-Language: it-IT, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: it-IT, en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org 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=EC 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 =E9crit : > 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=EC 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 director= y > 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 > 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=E0 >> (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=E0 >> (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.(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.(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.(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 i= t is addressed and may contain confidential and/or privileged material. Any= review, retransmission, dissemination or other use of, or taking of any ac= tion in reliance upon, this information by persons or entities other than t= he intended recipient is prohibited. If you received this in error, please = contact the sender and delete the material from any computer.