Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D59AF2827 for ; Tue, 3 May 2011 07:17:14 +0000 (UTC) Received: (qmail 78051 invoked by uid 500); 3 May 2011 07:17:06 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 77593 invoked by uid 500); 3 May 2011 07:16:52 -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 77583 invoked by uid 99); 3 May 2011 07:16:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 07:16:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.24.201.138] (HELO mx01.innovations.de) (217.24.201.138) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 07:16:41 +0000 X-ASG-Debug-ID: 1304406979-42bd00590000-L7RJYL X-Barracuda-URL: http://217.24.201.138:8000/cgi-bin/mark.cgi Received: from immpwamx01.innoimm.local (localhost [127.0.0.1]) by mx01.innovations.de (Spam Firewall) with ESMTP id 8978421BBE9 for ; Tue, 3 May 2011 09:16:19 +0200 (CEST) Received: from immpwamx01.innoimm.local ([192.168.18.25]) by mx01.innovations.de with ESMTP id TEbUp4cXSwF2xeKo for ; Tue, 03 May 2011 09:16:19 +0200 (CEST) X-Barracuda-RBL-Trusted-Forwarder: 192.168.18.25 X-ASG-Whitelist: Client Received: from email.innoimm.local ([192.168.18.4]) by immpwamx01.innoimm.local with Microsoft SMTPSVC(6.0.3790.4675); Tue, 3 May 2011 09:16:19 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-ASG-Orig-Subj: AW: Jackrabbit doesn`t startup anymore Subject: AW: Jackrabbit doesn`t startup anymore Date: Tue, 3 May 2011 09:16:18 +0200 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Jackrabbit doesn`t startup anymore Thread-Index: AcwIqgIxfqcsKTFyR1GCjWFTiHXu0AAEOAgwACmxtDA= References: From: To: X-OriginalArrivalTime: 03 May 2011 07:16:19.0348 (UTC) FILETIME=[FFB5BD40:01CC0961] X-Barracuda-Connect: UNKNOWN[192.168.18.25] X-Barracuda-Start-Time: 1304406979 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at innovations.de Hi all, I have now a detailed log output of the raised NumnberFormatException: 2011-05-03 08:55:25,329 [main] ERROR BundleDbPersistenceManager - failed = to read bundle: cafebabe-cafe-babe-cafe-babecafebabe: = java.lang.NumberFormatException: For input string: "" java.lang.NumberFormatException: For input string: "" at = java.lang.NumberFormatException.forInputString(NumberFormatException.java= :48) at java.lang.Integer.parseInt(Integer.java:468) at java.lang.Integer.parseInt(Integer.java:497) at = org.apache.jackrabbit.core.nodetype.NodeDefId.valueOf(NodeDefId.java:106)= at = org.apache.jackrabbit.core.persistence.bundle.util.BundleBinding.readBund= le(BundleBinding.java:105) at = org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.= loadBundle(BundleDbPersistenceManager.java:1161) at = org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.= loadBundle(BundleDbPersistenceManager.java:1094) at = org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceMa= nager.getBundle(AbstractBundlePersistenceManager.java:701) at = org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceMa= nager.exists(AbstractBundlePersistenceManager.java:506) at = org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItem= State(SharedItemStateManager.java:1343) at = org.apache.jackrabbit.core.state.SharedItemStateManager.(SharedItem= StateManager.java:203) at = org.apache.jackrabbit.core.RepositoryImpl.createItemStateManager(Reposito= ryImpl.java:1317) at = org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(Repo= sitoryImpl.java:1863) at = org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(Reposi= toryImpl.java:1834) at = org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repositor= yImpl.java:483) at = org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:324)= at = org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:621)= at [SKIPPED] Please note that the line numbers in BundleDbPersistenceManager have = changed regarding to the 1.5.6 version of Jackrabbit because I have = patched the class. But I think that doesn`t matter. Any ideas what = causes the problem now? Or how to fix the problem? Thanks in advance, Sascha -----Urspr=FCngliche Nachricht----- Von: Sascha.Theves@bosch-si.com [mailto:Sascha.Theves@bosch-si.com]=20 Gesendet: Montag, 2. Mai 2011 13:24 An: users@jackrabbit.apache.org Betreff: AW: Jackrabbit doesn`t startup anymore Hi, > did you copy the complete repository home directory, i.e. including > the "ns_*.properties" files? Yes I copied the complete repository home directory. But I also tried to = remove the complete repository home directory to force a rebuild of the = index files without success. Still same error. Very strange. Debugging = is currently not possible because the machine is hosted by our customer. = But I will try to patch Jackrabbit`s BundleDbPersistenceManager to get a = complete stack trace. If I have any news I will post it here. But anyway, thank you very much for your help so far. Cheers, Sascha -----Urspr=FCngliche Nachricht----- Von: Stefan Guggisberg [mailto:stefan.guggisberg@gmail.com]=20 Gesendet: Montag, 2. Mai 2011 11:19 An: users@jackrabbit.apache.org Betreff: Re: Jackrabbit doesn`t startup anymore On Mon, May 2, 2011 at 9:18 AM, wrote: > Hi, > >> i would need a full stacktrace of the following error: > >> 2011-04-29 07:41:14,278 [main] ERROR BundleDbPersistenceManager - = failed >> to read bundle: cafebabe-cafe-babe-cafe-babecafebabe: >> java.lang.NumberFormatException: For input string: "" > > Attached you will find a debug output log of Jackrabbit. = Unfortunately, I do not see a full stack trace of the = NumberFormatException. I think the exception must be catched somewhere = in Jackrabbit? Any ideas how to get the full stack? either debug jackrabbit and set a breakpoint on the line in BundleDbPersistenceManager.java which logs the error, or change that line to print the full stacktrace and rebuild jackrabbit from the soruces. all i can say is that for some reason the deserialization of the root node data fails. > >> what exact steps did you perform to setup the test on the other = machine? > > I copied the whole application, including the workspace and the lucene = index data and the database configuration, to the other machine and = started up the application. did you copy the complete repository home directory, i.e. including the "ns_*.properties" files? > >> has anything changed on the original machine? environment settings, = locales etc? > > I do not see any differences. What should I exactly look for? e.g. environment settings (default encoding, charset, locale), jvm runtime version, etc. > >> what os? deployment details? > > OS is a Unix operating system. Jackrabbit is embedded in our = application which runs in an OSGi container. Jackrabbit is connected to = a Oracle database which is hosted on another machine. Java 5 is = installed on the machine. More details are printed in the attached log = file. > > Any ideas how to get rid of the problem are appreciated because I = really need to get it working again on the orig. machine. you'll probably have to debug jackrabbit in order to see why the deserialization of the root node bundle fails. cheers stefan > > Thanks in advance, > > Sascha > > -----Urspr=FCngliche Nachricht----- > Von: Stefan Guggisberg [mailto:stefan.guggisberg@gmail.com] > Gesendet: Freitag, 29. April 2011 15:22 > An: users@jackrabbit.apache.org > Betreff: Re: Jackrabbit doesn`t startup anymore > > On Fri, Apr 29, 2011 at 11:54 AM, =A0 = wrote: >> Hi, >> >> thanks for your fast reply. We didn`t try a db backup yet but what we = have tried is to install Jackrabbit on another machine with exactly the = same configuration (also same db in use). That Jackrabbit instance works = without problems. We can start and stop it and we can browse the nodes. > > that's good news :) > >> So it seems that it doesn`t depend on the database... > > agreed > >> Any other ideas? > > what exact steps did you perform to setup the test on the other = machine? > has anything changed on the original machine? environment settings, = locales etc? > what os? deployment details? > > obviously there's a problem reading the root node (cafebabe...) on the > original machine. > > i would need a full stacktrace of the following error: > > 2011-04-29 07:41:14,278 [main] ERROR BundleDbPersistenceManager - = failed > to read bundle: cafebabe-cafe-babe-cafe-babecafebabe: > java.lang.NumberFormatException: For input string: "" > > it might be that the internal namespace index files (ns_*.properties) > got corrupted. > > cheers > stefan > >> >> Thanks, >> >> Sascha >> >> >> >> -----Urspr=FCngliche Nachricht----- >> Von: Stefan Guggisberg [mailto:stefan.guggisberg@gmail.com] >> Gesendet: Freitag, 29. April 2011 10:53 >> An: users@jackrabbit.apache.org >> Betreff: Re: Jackrabbit doesn`t startup anymore >> >> On Fri, Apr 29, 2011 at 9:58 AM, =A0 = wrote: >>> Hi all, >>> >>> >>> >>> we have running a Jackrabbit 1.5.6 instance for months now without = any >>> problems. But since yesterday we were not able anymore to list nodes >>> anymore and so on. We just got back empty results so that it seems = that >>> no data was ever persisted. After that we shutdown the Jackrabbit >>> instance and now we are not able to start it again. The following >>> exception occurs when starting up: >>> >>> >>> >>> 2011-04-29 07:41:14,278 [main] ERROR BundleDbPersistenceManager - = failed >>> to read bundle: cafebabe-cafe-babe-cafe-babecafebabe: >>> java.lang.NumberFormatException: For input string: "" >>> >>> 2011-04-29 07:41:14,278 [main] ERROR BundleDbPersistenceManager - = failed >>> to read bundle: cafebabe-cafe-babe-cafe-babecafebabe: >>> java.lang.NumberFormatException: For input string: "" >>> >>> 2011-04-29 07:41:14,409 [main] ERROR ConnectionRecoveryManager - = could >>> not execute statement, reason: ORA-00001: unique constraint >>> (UJXMTSRADMIN.DEFAULT_BUNDLE_IDX) violated >> >> seems like your oracle db got corrupted somehow. did you perform = sanity >> checks on your oracle instance? did you try with a db backup? >> >> cheers >> stefan >> >>> >>> , state/code: 23000/1 >>> >>> 2011-04-29 07:41:14,409 [main] ERROR ConnectionRecoveryManager - = could >>> not execute statement, reason: ORA-00001: unique constraint >>> (UJXMTSRADMIN.DEFAULT_BUNDLE_IDX) violated >>> >>> , state/code: 23000/1 >>> >>> 2011-04-29 07:41:14,417 [main] ERROR BundleDbPersistenceManager - = failed >>> to write bundle: deadbeef-cafe-babe-cafe-babecafebabe >>> >>> java.sql.SQLException: ORA-00001: unique constraint >>> (UJXMTSRADMIN.DEFAULT_BUNDLE_IDX) violated >>> >>> >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:12 >>> 5) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:626) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.jav >>> a:182) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStat >>> ement.java:630) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement. >>> java:1081) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrepare >>> dStatement.java:2905) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStateme >>> nt.java:2996) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryMan >>> ager.executeStmtInternal(ConnectionRecoveryManager.java:371) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryMan >>> ager.executeStmtInternal(ConnectionRecoveryManager.java:298) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryMan >>> ager.executeStmt(ConnectionRecoveryManager.java:261) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryMan >>> ager.executeStmt(ConnectionRecoveryManager.java:239) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager >>> .storeBundle(BundleDbPersistenceManager.java:1198) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceM >>> anager.putBundle(AbstractBundlePersistenceManager.java:732) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceM >>> anager.storeInternal(AbstractBundlePersistenceManager.java:672) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceM >>> anager.store(AbstractBundlePersistenceManager.java:536) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager >>> .store(BundleDbPersistenceManager.java:524) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.state.SharedItemStateManager.createRootNodeSt >>> ate(SharedItemStateManager.java:1303) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.state.SharedItemStateManager.(SharedIte >>> mStateManager.java:204) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.RepositoryImpl.createItemStateManager(Reposit >>> oryImpl.java:1317) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(Rep >>> ositoryImpl.java:1863) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(Repos >>> itoryImpl.java:1834) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Reposito >>> ryImpl.java:483) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:324 >>> ) >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at >>> = org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:621 >>> ) >>> >>> >>> >>> I think the SQL exception is only raised because Jackrabbit is not = able >>> to read the bundle "cafebabe-cafe-babe-cafe-babecafebabe". Do you = have >>> any ideas how to fix the problem or what could have caused the = problem? >>> >>> Any suggestions would be helpful. >>> >>> >>> >>> Thanks in advance. >>> >>> >>> >>> Sascha >>> >>> >>> >>> >> >