From users-returndavisamy@example.org Tue Jul 01 01:57:24 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 24505 invoked from network); 1 Jul 2008 01:57:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 01:57:24 -0000 Received: (qmail 87770 invoked by uid 500); 1 Jul 2008 01:57:24 -0000 Delivered-To: davisamy@example.org Received: (qmail 87754 invoked by uid 500); 1 Jul 2008 01:57:24 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 87743 invoked by uid 99); 1 Jul 2008 01:57:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2008 18:57:24 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO outbound-mail-24.bluehost.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 01:56:31 +0000 Received: (qmail 29235 invoked by uid 0); 1 Jul 2008 01:56:47 -0000 Received: from unknown (HELO box163.bluehost.com) (83.161.120.155) by outboundproxy2.bluehost.com with SMTP; 1 Jul 2008 01:56:47 -0000 Received: from [83.161.120.155] (helo=[83.161.120.155]) by box163.bluehost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from <davisamy@example.org>) id 1KDV6t-0004nL-Fu for davisamy@example.org; Mon, 30 Jun 2008 19:56:47 -0600 Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <davisamy@example.org> References: <davisamy@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <davisamy@example.org> Content-Transfer-Encoding: 7bit From: Scott Dietrich <davisamy@example.org> Subject: Re: Mac OS X WebDAV and mime type question Date: Mon, 30 Jun 2008 18:56:39 -0700 To: davisamy@example.org X-Mailer: Apple Mail (2.753.1) X-Identified-User: {801:box163.bluehost.com:minutest:minutestopost.com} {sentby:smtp auth 83.161.120.155 authed with davisamy@example.org} DomainKey-Status: no signature X-Virus-Checked: Checked by ClamAV on apache.org Hello, After looking into things a bit more, I realized I was able to resolve the issue by overriding doMove in my servlet without making changes to AbstractWebdavServlet. I'm including the method here in case others are having the same problem with Mac OS X clients. @Override protected void doMove(WebdavRequest request, WebdavResponse response, DavResource resource) throws IOException, DavException { if (!resource.isCollection()) { String mimeType = getResourceConfig().getMimeResolver ().getMimeType(request.getDestinationLocator().getResourcePath()); resource.setProperty(new DefaultDavProperty (DavPropertyName.GETCONTENTTYPE, mimeType)); } super.doMove(request, response, resource); } Scott On Jun 30, 2008, at 12:39 PM, Scott Dietrich wrote: > Hello, > > I've been doing some tests with Mac OS X 10.4 and Jackrabbit's > SimpleWebdavServlet. It looks like when many apps on the Mac (I > think it affects all apps that use the Cocoa libs for file save > operations) save a file the following happens: > > * The original file is moved to a backup file name (e.g. "xxx.txt" > moved to "xxx~.txt") > * A temp file ending with ".dat" is created containing the updated > file data > * This ".dat" temp file is moved to the original file name (e.g. > "xxx.txt") > * The backup file is removed (or possibly not, I suppose, based on > user preferences) > > This is somewhat simplified, there are actually a number of other > steps (lock, unlock, etc.) but it gives the general idea. > > The problem is that a file will have the correct mime type when it > is originally uploaded, but is given an incorrect mime type after a > file is saved due to the ".dat" temp file name extension. Also, > because a new file is created with the incorrect mime type, none of > the text extractors run and the file isn't indexed. > > Has anyone else noticed this behavior? If so, what is the best way > to work around it? > > I've managed to work around the problem by patching the doMove > method of AbstractWebdavServlet, however it seems fairly awkward > because I need access to private methods and data in > AbstractWebdavServlet. There doesn't seem to be an easy way to > simply override the method in my own servlet. Is there a policy > regarding patches to deal with the quirks of individual DAV clients? > > Thanks, > Scott From users-returndavisamy@example.org Tue Jul 01 06:41:45 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 10413 invoked from network); 1 Jul 2008 06:41:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 06:41:45 -0000 Received: (qmail 43662 invoked by uid 500); 1 Jul 2008 06:41:44 -0000 Delivered-To: davisamy@example.org Received: (qmail 43648 invoked by uid 500); 1 Jul 2008 06:41:44 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 43637 invoked by uid 99); 1 Jul 2008 06:41:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2008 23:41:44 -0700 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 [83.161.120.155] (HELO rose.man.poznan.pl) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 06:40:53 +0000 X-Virus-Scanned: by PSNC antivirus davisamy@example.org Received: from [83.161.120.155] (cauliflower.man.poznan.pl [83.161.120.155]) (authenticated bits=0) by rose.man.poznan.pl (8.13.8/8.13.8/auth/ldap/milter/tls) with ESMTP id m616eXmj020851 for <davisamy@example.org>; Tue, 1 Jul 2008 08:40:34 +0200 (CEST) Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 08:40:28 +0200 From: maneo <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155ubu (X11/20080505) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: Document clustering advice References: <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org All day coders wrote: > Hi there list! I'm building a web site which uses jackrabbit behind > the scenes. So far jackrabbit it's doing just fine, but we're in the > need of clustering documents in the repository. I've previous > experience with Carrot2 clustering engine, but i didn't find an easy > way to integrate both Jackrabbit and Carrot2. That's why I'm asking > here, for previous experiences or general advices. > What kind of integration You want to perfom? I have limited experience with Carrot2 but from that what I know, usually you just have to prepare appropriate input class. This is simple adapter which gets data from Your source (jackrabbit) and prepares Carrot2 objects. I used to play with carrot2/components/carrot2-input-lucene component and for my particular experiment it worked fine. If that was a problem I can send You some pieces of my code. kind regards, Adam Dudczak From users-returndavisamy@example.org Tue Jul 01 06:46:55 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 11675 invoked from network); 1 Jul 2008 06:46:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 06:46:55 -0000 Received: (qmail 48078 invoked by uid 500); 1 Jul 2008 06:46:49 -0000 Delivered-To: davisamy@example.org Received: (qmail 48063 invoked by uid 500); 1 Jul 2008 06:46:49 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 48052 invoked by uid 99); 1 Jul 2008 06:46:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2008 23:46:49 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO goobak01.day.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 06:45:57 +0000 Received: by goobak01.day.com (Postfix, from userid 1212) id 49B4250823; Tue, 1 Jul 2008 08:45:01 +0200 (CEST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [83.161.120.155]) by goobak01.day.com (Postfix) with ESMTP id 123905081F for <davisamy@example.org>; Tue, 1 Jul 2008 08:45:01 +0200 (CEST) Received: by nf-out-0910.google.com with SMTP id d3so546162nfc.21 for <davisamy@example.org>; Mon, 30 Jun 2008 23:45:16 -0700 (PDT) Received: by 83.161.120.155 with SMTP id e7mr4969861eba.123.1214894715779; Mon, 30 Jun 2008 23:45:15 -0700 (PDT) Received: from ?83.161.120.155? ( [83.161.120.155]) by mx.google.com with ESMTPS id j8sm12477541gvb.1.283.161.120.155.45.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 30 Jun 2008 23:45:14 -0700 (PDT) Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 08:47:02 +0200 From: Angela Schreiber <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20070221) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: Mac OS X WebDAV and mime type question References: <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org hi > This is somewhat simplified, there are actually a number of other steps > (lock, unlock, etc.) but it gives the general idea. yes. there are some other areas where using webdav on the mac is from my point of view highly inefficient basically because it behaves like a local filesystem but having each individual step 'translated' to webdav. > Has anyone else noticed this behavior? If so, what is the best way to > work around it? i'm not having a mac. but the best way would be if there was a way to configure the dav-client to always pass the intended mimetype with the http headers. another way was to write a IOHandler that deals with the mac-specific stuff and does some guessing (not sure how many cases need to be treated separately... but that's what i would try first). regards angela From users-returndavisamy@example.org Tue Jul 01 07:37:35 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 24973 invoked from network); 1 Jul 2008 07:37:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 07:37:35 -0000 Received: (qmail 4362 invoked by uid 500); 1 Jul 2008 07:37:35 -0000 Delivered-To: davisamy@example.org Received: (qmail 4218 invoked by uid 500); 1 Jul 2008 07:37:35 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 4207 invoked by uid 99); 1 Jul 2008 07:37:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 00:37:35 -0700 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 [83.161.120.155] (HELO trinity.anyware-tech.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 07:36:43 +0000 Received: from localhost (localhost [83.161.120.155]) by trinity.anyware-tech.com (Postfix) with ESMTP id 2C847400DBB for <davisamy@example.org>; Tue, 1 Jul 2008 09:37:03 +0200 (CEST) Received: from trinity.anyware-tech.com ([83.161.120.155]) by localhost (trinity.anyware-tech.com [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 25166-04 for <davisamy@example.org>; Tue, 1 Jul 2008 09:37:02 +0200 (CEST) Received: from [83.161.120.155] (cobra.anyware [83.161.120.155]) by trinity.anyware-tech.com (Postfix) with ESMTP id 68216400DA3 for <davisamy@example.org>; Tue, 1 Jul 2008 09:37:02 +0200 (CEST) Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 09:37:08 +0200 From: =?ISO-8859-1?Q?S=E9bastien_Launay?= <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155 (X11/20080505) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: Birthdate query References: <davisamy@example.org> <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Debian davisamy@example.org X-Virus-Checked: Checked by ClamAV on apache.org Sébastien Launay a écrit : > Hi JB, > > None of the functions you describre are currently supported by > Jackrabbit. > A date property is stored in the lucene index using ISO8601 format for > using < and > operator efficiency. My mistake, in the fact that the date property is stored in ISO8601. Indeed these properties are stored in a fixed length string suitable for indexing and sorting which makes more sense :) : http://fisheye6.atlassian.com/browse/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DateField.java?r=532464 > > The most efficient way IMHO is to have another date property which will > contain the same the value but with a same fixed year. > The drawback is that you must maintain the integrity of the two fields at > each update. > > But i think the duplicity is worth the effort hence it will consume > more disk. > > Note that you will need to use > xs:datetime('XXXX-06-30T00:00:00.000+00:00') > with operator >= and <. > > You can also use a string property with month and day concatenated > ("06/30") > but the query will not be so fine grained (users born on the same hour > :)). > > Best regards, > > Sébastien. > > Jean-Baptiste Bellet a écrit : >> Hi, >> >> I'm using jackrabbit and I'm trying to execute a query in order to >> retrieve 'users', registered in JCR, who have a birthdate >> corresponding to the current date. >> For example if a user was born on june the 30th, 1992 I want to >> compare the user's birthdate with june the 30th (and without the year >> wich is not important in this case). I have tried a lot of queries, >> but without success. >> Any idea on how to perform such a query? >> Thanks a lot, >> jb >> >> This one works: >> //user[@birthDate = '1992-06-30T14:36:24.292+01:00'] >> These do not work: >> //user[substring(@birthDate, 1, 1) = '1'] >> //user[substring(fn:string(@birthDate), 1, 1) = '1'] >> //user[concat(substring(@birthDate, 6, 2), substring(@birthDate, >> 9, 2)) = '0630'] >> //user[fn:month-from-dateTime(@birthDate) = 6] >> //user[fn:month-from-dateTime(./@birthDate/value()) = 6] From users-returndavisamy@example.org Tue Jul 01 07:50:53 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 28624 invoked from network); 1 Jul 2008 07:50:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 07:50:53 -0000 Received: (qmail 31857 invoked by uid 500); 1 Jul 2008 07:50:53 -0000 Delivered-To: davisamy@example.org Received: (qmail 31838 invoked by uid 500); 1 Jul 2008 07:50:53 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 31827 invoked by uid 99); 1 Jul 2008 07:50:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 00:50:53 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG,WHOIS_NETSOLPR X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 07:49:59 +0000 Received: (qmail invoked by alias); 01 Jul 2008 07:50:18 -0000 Received: from adsl-62-167-56-113.adslplus.ch (EHLO [83.161.120.155]) [83.161.120.155] by mail.gmx.net (mp026) with SMTP; 01 Jul 2008 09:50:18 +0200 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX193H3N7YVh306xFccUqRrhzqtLdPZLP7zMzcZK4NI cuBg0N3gubFhHj Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 09:50:12 +0200 From: Marcel Reutegger <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: Similarity search question References: <davisamy@example.org> <davisamy@example.org> <davisamy@example.org> <davisamy@example.org> <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 X-Virus-Checked: Checked by ClamAV on apache.org Hi, please double check that you are in fact using jackrabbit 1.4.4. it looks like your class path still contains an older jackrabbit version. regards marcel jascpaint wrote: > Hi Alex, > That is exactly what I have. I could do search based on keywords or phrases > and display excerpts using rep:excerpt function, with the keyword or phrase > being highlighted on return. I attached the workspace.xml here. > > http://www.nabble.com/file/p18124304/workspace.xml workspace.xml > > > Alexander Klimetschek wrote: >> Hi! >> >>> Does it look right to you? >> No. The mentioned query handler = search index. See >> http://wiki.apache.org/jackrabbit/Search for a complete overview of >> parameters. The SearchIndex element of your workspace.xml should look >> like this: >> >> <SearchIndex >> class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> >> >> </SearchIndex> >> >> Regards, >> Alex >> >> -- >> Alexander Klimetschek >> davisamy@example.org >> >>>> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ << >> ----------------------------< davisamy@example.org >---------- >> Alexander Klimetschek, Day Management AG, Barfuesserplatz 6, >> CH - 4001 Basel, T 949-687-9231, M 949-687-9231 >> ---------------------------------------< http://www.day.com >>> ----------------- >> Xing: http://www.xing.com/go/invite/3268380.32d2d4 >> LinkedIn: http://www.linkedin.com/in/klimetschek >> Blog: http://weblogs.goshaky.com/weblogs/alexkli/ >> >> > From users-returndavisamy@example.org Tue Jul 01 07:57:28 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 30362 invoked from network); 1 Jul 2008 07:57:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 07:57:28 -0000 Received: (qmail 40413 invoked by uid 500); 1 Jul 2008 07:57:28 -0000 Delivered-To: davisamy@example.org Received: (qmail 40310 invoked by uid 500); 1 Jul 2008 07:57:28 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 40299 invoked by uid 99); 1 Jul 2008 07:57:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 00:57:28 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 07:56:36 +0000 Received: (qmail invoked by alias); 01 Jul 2008 07:56:54 -0000 Received: from adsl-62-167-56-113.adslplus.ch (EHLO [83.161.120.155]) [83.161.120.155] by mail.gmx.net (mp023) with SMTP; 01 Jul 2008 09:56:54 +0200 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX1/3OZFnXUD3lSCXaq6GYzJEB/6LQSPp+CcxUhN5cr JNChsVxQ3scXHN Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 09:56:47 +0200 From: Marcel Reutegger <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: XPath expression leeds to NPE in QueryParser References: <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6899999999999999 X-Virus-Checked: Checked by ClamAV on apache.org ThorstenL wrote: > I'm currently trying with to write my first non trivial queries with XPath. > So I'm not too sure, if I misunderstand something completely wrong, or > if there is something broken. > > This is my current candidates: > > //*[@jcr:primaryType='nt:file'][*//text()[jcr:like(.,'%Dokument%')]] would the following work for you? //element(*, nt:file)[jcr:contains(jcr:content, 'Dokument')] it assumes that your files have an nt:resource child node named jcr:content. remarks: - element(*, nt:file) also returns node with a subtype of nt:file - jcr:contains() is more efficient than jcr:like for longer strings and you actually want to do a fulltext search regards marcel From users-returndavisamy@example.org Tue Jul 01 08:02:12 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 32100 invoked from network); 1 Jul 2008 08:02:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 08:02:12 -0000 Received: (qmail 45847 invoked by uid 500); 1 Jul 2008 08:02:12 -0000 Delivered-To: davisamy@example.org Received: (qmail 45829 invoked by uid 500); 1 Jul 2008 08:02:12 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 45818 invoked by uid 99); 1 Jul 2008 08:02:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 01:02:12 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 08:01:21 +0000 Received: (qmail invoked by alias); 01 Jul 2008 08:01:40 -0000 Received: from adsl-62-167-56-113.adslplus.ch (EHLO [83.161.120.155]) [83.161.120.155] by mail.gmx.net (mp028) with SMTP; 01 Jul 2008 10:01:40 +0200 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX19w2kcgkxJwIj52OADP/7ZPlfgHKDEL5PKVDQ7TLi gcA/PslLu1W3j4 Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 10:01:33 +0200 From: Marcel Reutegger <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: Xpath - Multiple paths selection References: <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Vincent Giguère wrote: > I am trying to query Jackrabbit through an Xpath query. My query involves > the selection of multiple paths. > > Example: > The first path is : //AAA/BBB/* > The second path is : /AAA/CCC/* > > Each of these queries return nodes when they are issued individually, but > when they are combined using the ' | ' operator : //AAA/BBB/* | /AAA/CCC/* , > jackrabbit returns 0 results. > > Does jackrabbit support multiple path Xpath queries? no, jackrabbit does not support the union ('|') operator. > If no, is there a workaround? there is, but only for simple cases: /jcr:root/AAA/*[fn:name() = 'BBB' or fn:name() = 'CCC']/* regards marcel From users-returndavisamy@example.org Tue Jul 01 08:16:02 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 36552 invoked from network); 1 Jul 2008 08:16:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 08:16:01 -0000 Received: (qmail 63171 invoked by uid 500); 1 Jul 2008 08:16:01 -0000 Delivered-To: davisamy@example.org Received: (qmail 63147 invoked by uid 500); 1 Jul 2008 08:16:01 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 63136 invoked by uid 99); 1 Jul 2008 08:16:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 01:16:01 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 08:15:10 +0000 Received: (qmail invoked by alias); 01 Jul 2008 08:15:29 -0000 Received: from adsl-62-167-56-113.adslplus.ch (EHLO [83.161.120.155]) [83.161.120.155] by mail.gmx.net (mp059) with SMTP; 01 Jul 2008 10:15:29 +0200 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX1+cEQoTtCicOZx3gBI2st44MT1oX09DuNWp40F6At szhH1oJ929bhGI Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 10:15:24 +0200 From: Marcel Reutegger <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: Query column specifier References: <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 X-Virus-Checked: Checked by ClamAV on apache.org Roman Puchkovskiy wrote: > JCR spec says there's a way to specify what columns user wants to see in the > result of the search using query. But it says that "In XPath the mechanism > of the column specifier is not specified, though one possible approach is to > interpret as the column specifier the last location step when it uses the > attribute axis". So the first question is: if I use the following query: > "/some/absolute/path/to/node/@jcr:uuid", will this select node's UUID? correct. but you will only get the uuid of a node when it is referenceable. > And another question: spec also says that "The column specifier has no > effect on the content or form of the NodeIterator view of the query result." > Does this mean that using selects to narrow search results to a small set a > properties will not save CPU cycles? (I'm thinking about a case where a node > is complex and I don't need to load it all, just its UUID). only to a certain extent. the difference is probably insignificant. regards marcel From users-returndavisamy@example.org Tue Jul 01 08:19:39 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 37418 invoked from network); 1 Jul 2008 08:19:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 08:19:39 -0000 Received: (qmail 69948 invoked by uid 500); 1 Jul 2008 08:19:39 -0000 Delivered-To: davisamy@example.org Received: (qmail 69937 invoked by uid 500); 1 Jul 2008 08:19:39 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 69926 invoked by uid 99); 1 Jul 2008 08:19:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 01:19:39 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 08:18:48 +0000 Received: (qmail invoked by alias); 01 Jul 2008 08:19:07 -0000 Received: from adsl-62-167-56-113.adslplus.ch (EHLO [83.161.120.155]) [83.161.120.155] by mail.gmx.net (mp030) with SMTP; 01 Jul 2008 10:19:07 +0200 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX1+u8PNA1tqupFIG1NUt5AfApbF/N8yt1d2zW2IMTD F8SsGZKFOawGDt Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 10:19:04 +0200 From: Marcel Reutegger <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: anyone using spi over rmi in 1.5? References: <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.74 X-Virus-Checked: Checked by ClamAV on apache.org scytacki wrote: > I got things setup to use the following remote stack: > jcr2spi - rmi - spi2jcr > > But I found a bug and created a hacky patch: > https://issues.apache.org/jira/browse/JCR-1653 > > I'm curious is anyone using that method of remote access in 1.5? looks like so far nobody did... I used the above mentioned stack for testing, but IIRC in the same JVM, which is probably the reason why the bug did not show up. I'll have a look at the issue. regards marcel From users-returndavisamy@example.org Tue Jul 01 08:29:07 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 39533 invoked from network); 1 Jul 2008 08:29:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 08:29:07 -0000 Received: (qmail 83553 invoked by uid 500); 1 Jul 2008 08:29:07 -0000 Delivered-To: davisamy@example.org Received: (qmail 83364 invoked by uid 500); 1 Jul 2008 08:29:07 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 83353 invoked by uid 99); 1 Jul 2008 08:29:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 01:29:06 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 08:28:15 +0000 Received: (qmail invoked by alias); 01 Jul 2008 08:28:25 -0000 Received: from adsl-62-167-56-113.adslplus.ch (EHLO [83.161.120.155]) [83.161.120.155] by mail.gmx.net (mp013) with SMTP; 01 Jul 2008 10:28:25 +0200 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX1/Aou0kXC3AtojZn2aIa6rSebDjEjopwXEKlGHyFR 3xxJJ6B+YL6bjm Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 10:28:22 +0200 From: Marcel Reutegger <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: Concurrent Bottleneck within JackRabbit due to Lock Contention References: <davisamy@example.org> <davisamy@example.org> <davisamy@example.org> <davisamy@example.org> <davisamy@example.org> <davisamy@example.org> <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.44 X-Virus-Checked: Checked by ClamAV on apache.org Hi Shaun, so far we did not receive reports about this kind of contention. might be specific to JRockit. what version of JRockit is this? Are you able to test your application with a JVM from a different vendor? e.g. Sun. this is really just contention, right? or does jackrabbit lock up completely, which would indicate a dead lock. regards marcel sbarriba wrote: > Hi all, > With an application which makes 'heavy' usage of JackRabbit we see its > throughput throttled by JackRabbits usage of > > org/apache/jackrabbit/core/state/DefaultISMLocking.acquireReadLock > > Under load we can easily see 400+ threads (in Weblogic 9.2) all fighting to > acquire a read lock. Even under very light load a thread dump will show > multiple threads in the acquireReadLock method. > > We've tried all possible configurations to attempt to alleviate this > bottleneck but I'm wondering if this is: > > a) a fundamental bottleneck with JackRabbit, or > a) an expected bottleneck in JackRabbit (required to proect cache usage), > which implies we're trying to drive JackRabbit too hard? > > There are NO write operations happening, just reads hence my slight surprise > we're seeing such contention. > > I'm sending this post after multiple days of trying the things outlined > below. > > Regards, > Shaun > > > Background to Post > ------------------- > > This post follows my previous posts trying to understand the locking > strategy. We've tried the following, without success, to improve throughput: > > - Modified DefaultISMLocking strategy using the patch included with > https://issues.apache.org/jira/browse/JCR-1334 > - Modified DefaultISMLocking strategy using the "noLockHack" option > - The latest JackRabbit 1.4.4 library > - FineGrainedISMLocking > > We've even tried the following JRockit specifics: > > - JVM –XnoOpt option > - JVM -XXdisableFatSpin option > > In all cases the contention exists. > > > -----Original Message----- > From: sbarriba [mailto:davisamy@example.org] > Sent: 27 June 2008 17:30 > To: davisamy@example.org > Subject: RE: Locking issues with XAItemStateManager - help appreciated > > Hi all, > Can anyone help me understand why a JackRabbit based web-app that only reads > the repository would end up with a large number of threads locked when there > are no writer threads under load? > > We're struggling a little to get to the bottom of this. > All help appreciated. > Regards, > Shaun > > "[STUCK] ExecuteThread: '0' for queue: 'weblogic.kernel.Default > (self-tuning)'" id=17 idx=0x4c tid=26655 prio=1 alive, in native, blocked, > daemon > -- Blocked trying to get lock: > EDU/oswego/cs/dl/util/concurrent/WriterPreferenceReadWriteLock$ReaderLock@0x > 36cd5700[unlocked] > at pthread_cond_wait@@GLIBC_2.3.2+170(:0)@0x376f708a7a > at tsiWaitForSignalForever+58(:0)@0x2a95712169 > at tsiWaitForSignal+39(:0)@0x2a957121c4 > at tsiWaitForLockSignal+39(:0)@0x2a9571229e > at tsWaitForJavaLockSignal+31(:0)@0x2a9571234d > at RJNI_jrockit_vm_Threads_waitForUnblockSignal+14(:0)@0x2a95708e6c > at jrockit/vm/Threads.waitForUnblockSignal()V(Native Method) > at jrockit/vm/Locks.fatLockBlockOrSpin(Locks.java:1630)[optimized] > at jrockit/vm/Locks.lockFat(Locks.java:1731)[optimized] > at jrockit/vm/Locks.monitorEnterSecondStage(Locks.java:1277)[optimized] > at jrockit/vm/Locks.monitorEnter(Locks.java:2389)[inlined] > at jrockit/vm/Locks.monitorEnterForced(Locks.java:872)[optimized] > at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method) > at jrockit/vm/Locks.monitorEnterUnmatched(Ljava/lang/Object;)V(Native > Method) > at > EDU/oswego/cs/dl/util/concurrent/WriterPreferenceReadWriteLock$ReaderLock...a > c > quire()V(Unknown Source)[optimized] > at > org/apache/jackrabbit/core/state/DefaultISMLocking$ReadLockImpl.<init>(Defau > ltISMLocking.java:103)[inlined] > at > org/apache/jackrabbit/core/state/DefaultISMLocking$ReadLockImpl.<init>(Defau > ltISMLocking.java:97)[inlined] > at > org/apache/jackrabbit/core/state/DefaultISMLocking.acquireReadLock(DefaultIS > MLocking.java:65)[optimized] > at > org/apache/jackrabbit/core/state/SharedItemStateManager.acquireReadLock(Shar > edItemStateManager.java:1438)[inlined] > at > org/apache/jackrabbit/core/state/SharedItemStateManager.hasItemState(SharedI > temStateManager.java:269)[optimized] > at > org/apache/jackrabbit/core/state/LocalItemStateManager.hasItemState(LocalIte > mStateManager.java:178)[inlined] > at > org/apache/jackrabbit/core/state/XAItemStateManager.hasItemState(XAItemState > Manager.java:252)[optimized] > at > org/apache/jackrabbit/core/state/SessionItemStateManager.getItemState(Sessio > nItemStateManager.java:174)[optimized] > at > org/apache/jackrabbit/core/ItemManager.createItemInstance(ItemManager.java:5 > 64)[inlined] > at > org/apache/jackrabbit/core/ItemManager.getItem(ItemManager.java:395)[inlined > ] > at > org/apache/jackrabbit/core/LazyItemIterator.prefetchNext(LazyItemIterator...j > a > va:90)[inlined] > at > org/apache/jackrabbit/core/LazyItemIterator.next(LazyItemIterator.java:203)[ > optimized] > ^-- Holding lock: org/apache/jackrabbit/core/ItemManager@0x8e7b568[thin > lock] > -----Original Message----- > From: KÖLL Claus [mailto:davisamy@example.org] > Sent: 25 June 2008 16:18 > To: davisamy@example.org > Subject: AW: Locking issues with XAItemStateManager - help appreciated > > Hi Shaun, > > In my case the problem was that the applicationserver (websphere) > has changed the thread between acquiring writelock and the downgrade to a > readlock > so we are running into deadlock. > > Have you tested the patched DefaultISMLocking Class ? > > -----Ursprüngliche Nachricht----- > Von: sbarriba [mailto:davisamy@example.org] > Gesendet: Mittwoch, 25. Juni 2008 12:52 > An: davisamy@example.org > Betreff: RE: Locking issues with XAItemStateManager - help appreciated > > > Apologies for the multitude of emails. > > .......would switching from DefaultISMLocking to the FineGrainedISMLocking > implementation help the situation? > > I believe this can be done with the following config within the workspace > config. > > <ISMLocking class="[ClassName]"/> > > Regards, > Shaun > > -----Original Message----- > From: sbarriba [mailto:davisamy@example.org] > Sent: 25 June 2008 11:35 > To: davisamy@example.org > Subject: RE: Locking issues with XAItemStateManager - help appreciated > > Hi Claus, > Thanks for the quick response. > > We're not intentionally using an XA transaction. We're using Spring + > Transaction Manager + Hibernate elsewhere to satisfy the request. > > .......so a few quick questions: > > * Is there a way to force JackRabbit not to use XA? What are the alternative > ItemStateManager(s)? > * Does using XA cause more locking? > > Thanks in advance, > Regards, > Shaun > > -----Original Message----- > From: KÖLL Claus [mailto:davisamy@example.org] > Sent: 25 June 2008 11:24 > To: davisamy@example.org > Subject: AW: Locking issues with XAItemStateManager - help appreciated > > hi, > > do you use a xa transaction ? > take a look @ https://issues.apache.org/jira/browse/JCR-1334 > i see in your stack that the lock comes from acquireReadLock() > this was also in my issue > feel free do test the PatchedDefaultISMLocking.java by Marcel > > BR, > claus > > -----Ursprüngliche Nachricht----- > Von: sbarriba [mailto:davisamy@example.org] > Gesendet: Mittwoch, 25. Juni 2008 12:16 > An: davisamy@example.org > Betreff: Locking issues with XAItemStateManager - help appreciated > > Hi all, > > As follow up to a previous thread we're seeing lots and lots of contention > around the following lock. We're using Weblogic 9.1 / JRocket 27.4.0 (1.5). > > > > Even with very little load on the app a thread dump shows active threads at > exactly this point. As the concurrent load increases the contention > increases until the app is continually thrashing on these locks and stops > responding. > > > > Is there a way to configure JackRabbit to reduce the amount of locking? > > For example, I note the use of XAItemStateManager in the stack - is there an > alternative ItemStateManager implementation which requires less locking? > > > > All help appreciated. > > > > Regards, > > Shaun > > > > > > "[ACTIVE] ExecuteThread: '36' for queue: 'weblogic.kernel.Default > (self-tuning)'" id=133 idx=0x20c tid=6426 prio=5 alive, in native, daemon > > at jrockit/vm/Locks.monitorEnterUnmatched(Ljava/lang/Object;)V(Native > Method) > > at > EDU/oswego/cs/dl/util/concurrent/WriterPreferenceReadWriteLock$ReaderLock.... > .. > a > c > quire()V(Unknown Source) > > at > org/apache/jackrabbit/core/state/DefaultISMLocking$ReadLockImpl.<init>(Defau > ltISMLocking.java:103) > > at > org/apache/jackrabbit/core/state/DefaultISMLocking$ReadLockImpl.<init>(Defau > ltISMLocking.java:97) > > at > org/apache/jackrabbit/core/state/DefaultISMLocking.acquireReadLock(DefaultIS > MLocking.java:65) > > at > org/apache/jackrabbit/core/state/SharedItemStateManager.acquireReadLock(Shar > edItemStateManager.java:1438)[inlined] > > at > org/apache/jackrabbit/core/state/SharedItemStateManager.getItemState(SharedI > temStateManager.java:237)[optimized] > > at > org/apache/jackrabbit/core/state/LocalItemStateManager.getPropertyState(Loca > lItemStateManager.java:118)[inlined] > > at > org/apache/jackrabbit/core/state/LocalItemStateManager.getItemState(LocalIte > mStateManager.java:150)[inlined] > > at > org/apache/jackrabbit/core/state/XAItemStateManager.getItemState(XAItemState > Manager.java:226)[optimized] > > ^-- Holding lock: > org/apache/jackrabbit/core/state/XAItemStateManager@0x3ea1ae88[thin lock] > > at > org/apache/jackrabbit/core/state/SessionItemStateManager.getItemState(Sessio > nItemStateManager.java:175)[optimized] > > at > org/apache/jackrabbit/core/ItemManager.createItemInstance(ItemManager.java:5 > 64)[inlined] > > at > org/apache/jackrabbit/core/ItemManager.getItem(ItemManager.java:395)[inlined > ] > > at > org/apache/jackrabbit/core/LazyItemIterator.prefetchNext(LazyItemIterator.... > .. > j > a > va:90)[inlined] > > at > org/apache/jackrabbit/core/LazyItemIterator.next(LazyItemIterator.java:203)[ > optimized] > > ^-- Holding lock: org/apache/jackrabbit/core/ItemManager@0x3ea1a4c0[thin > lock] > > > > > > > > From users-returndavisamy@example.org Tue Jul 01 08:48:29 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 46881 invoked from network); 1 Jul 2008 08:48:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 08:48:29 -0000 Received: (qmail 5386 invoked by uid 500); 1 Jul 2008 08:48:28 -0000 Delivered-To: davisamy@example.org Received: (qmail 5367 invoked by uid 500); 1 Jul 2008 08:48:28 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 5356 invoked by uid 99); 1 Jul 2008 08:48:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 01:48:28 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 08:47:37 +0000 Received: (qmail invoked by alias); 01 Jul 2008 08:46:55 -0000 Received: from adsl-62-167-56-113.adslplus.ch (EHLO [83.161.120.155]) [83.161.120.155] by mail.gmx.net (mp021) with SMTP; 01 Jul 2008 10:46:55 +0200 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX1/wy2FCKmbw19rWsBpBcb3suDHl6/U/teq5NJM+Bb FDuRKVl62/aoC5 Message-ID: <davisamy@example.org> Date: Tue, 01 Jul 2008 10:46:52 +0200 From: Marcel Reutegger <davisamy@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: davisamy@example.org Subject: Re: JackRabbit Caching: BundleCache vs ItemManager vs CacheManager References: <davisamy@example.org> In-Reply-To: <davisamy@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5600000000000001 X-Virus-Checked: Checked by ClamAV on apache.org Hi, sbarriba wrote: > .. PersistenceManager Cache: > > o The "bundleCacheSize" determines how many nodes the PersistenceManager > will cache. As this determines the lifetime of the references to the > temporary BLOB cache if its not large enough BLOBs will be continually read > from the database (if using externalBlobs=false). > > o Configurable in <PersistenceManager> XML block > > o Default size 8MB > > o This cache is shared by all sessions. > > o Synchronised access using the ISMLocking stategy e.g. Default or > FineGrained correct, but there's additional synchronization in the persistence manager using conventional synchronized methods. e.g. see AbstractBundlePersistenceManager.load(NodeId) > .. Session ItemManager Cache: > > o Items are cached from the underlying persistence manager on a per > session basis. > > o Limit cannot be set. not sure, but I think this cache is also managed (at least partially) by the CacheManager. > o Uses a ReferenceMap which can be emptied by the JVM GC as required that's the 'other part' that manages the cache ;) items that are still referenced in the application will force the reference map to keep the respective ItemState instances (using weak references). > o Synchronised access using the itemCache object > > .. CacheManager Cache: > > o Limit can only be set programmatically via the Workspace cacheManager > > o http://wiki.apache.org/jackrabbit/CacheManager > > o Defaults to 16MB > > o Its not clear as yet how the CacheManager relates, if at all, to the > ItemManager cache this only happens indirectly. see above. > 2 questions: > > .. What is the purpose of the CacheManager and which caches does it > actually control? It controls *all* the caches that contain ItemState instances. > .. For example, for a workspace with 100,000 nodes what is an > appropriate setting for the Cache Manager? I guess that depends on your JVM heap settings and the usage pattern. if you have a lot of random reads over nearly all 100k nodes and performance is critical you may consider caching all of them. have a look a ItemState.calculateMemoryFootprint() for a formula on how the memory consumption is calculated. regards marcel From users-returndavisamy@example.org Tue Jul 01 10:04:45 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 73364 invoked from network); 1 Jul 2008 10:04:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 10:04:45 -0000 Received: (qmail 6436 invoked by uid 500); 1 Jul 2008 10:04:45 -0000 Delivered-To: davisamy@example.org Received: (qmail 6408 invoked by uid 500); 1 Jul 2008 10:04:45 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 6370 invoked by uid 99); 1 Jul 2008 10:04:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 03:04:45 -0700 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 [83.161.120.155] (HELO web50510.mail.re2.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 10:03:53 +0000 Received: (qmail 93341 invoked by uid 60001); 1 Jul 2008 10:04:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=JN+kDvMaYLG14b1hmWCcI9ZwG+G+HN+k9iFqeTQOElS4OuaUvjDz7m6n+lqgwiPA515HNWadUHNs/d7bIDoRCeAWswPlN1o2JsqvXa4E+W5WNDSA6a46bWP5GPgaoIwZJTrfzcL7aJshf7Fzk7bR8di6xvB1ewSW29zRaoxld8E=; Received: from [83.161.120.155] by web50510.mail.re2.yahoo.com via HTTP; Tue, 01 Jul 2008 03:04:12 PDT X-Mailer: YahooMailRC/1042.24 YahooMailWebService/0.7.199 Date: Tue, 1 Jul 2008 03:04:12 -0700 (PDT) From: jakobitsch juergen <davisamy@example.org> Subject: XPath - Emergency To: davisamy@example.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <davisamy@example.org> X-Virus-Checked: Checked by ClamAV on apache.org aloha, what am i doing wrong , none of the following xpath queries gives any result using the following structure Node root = session.getRootNode(); Node BookmarkSpace = root.getNode("turnguard:BookmarkSpace"); Node NewBookmark = BookmarkSpace.addNode("turnguard:Bookmark"); NewBookmark.addMixin("mix:referenceable"); NewBookmark.addMixin("mix:versionable"); NewBookmark.setProperty("turnguard:BookmarkTitle", RequestContainer.getValueFor("BookmarkTitle")); NewBookmark.setProperty("turnguard:BookmarkUrl", RequestContainer.getValueFor("BookmarkUrl")); NewBookmark.setProperty("turnguard:BookmarkDescription", RequestContainer.getValueFor("BookmarkDescription")); NewBookmark.setProperty("turnguard:In", session.getNodeByUUID(RequestContainer.getValueFor("ParentFolderUUID"))); session.save(); 1. i cant query for jcr:uuid //turnguard:BookmarkSpace/turnguard:Bookmark[@jcr:uuid='cf6b0cac-97f9-4a98-b479-b31e717d2236'] (i tried every combination with double-slashes, jcr:root in front, with @ and without,...) 2. i cant query for element //element(*,nt:unstructured) //element(*,nt:base) nothing... 3. i'm far from getting rep:similar to work used the query from the wiki.. :( 4. i'm far from getting turnguard:Bookmarks that have a certain folder-uuid in turnguard:In =============== //element(*,jackrabbit:help) ?? wkr turnguard From users-returndavisamy@example.org Tue Jul 01 14:49:08 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 81441 invoked from network); 1 Jul 2008 14:49:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 14:49:08 -0000 Received: (qmail 14256 invoked by uid 500); 1 Jul 2008 14:49:07 -0000 Delivered-To: davisamy@example.org Received: (qmail 14235 invoked by uid 500); 1 Jul 2008 14:49:07 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 14169 invoked by uid 99); 1 Jul 2008 14:49:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 07:49:07 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO goobak01.day.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 14:48:15 +0000 Received: by goobak01.day.com (Postfix, from userid 1212) id 519B55084A; Tue, 1 Jul 2008 16:47:17 +0200 (CEST) Received: from wf-out-1314.google.com (wf-out-1314.google.com [83.161.120.155]) by goobak01.day.com (Postfix) with ESMTP id 98A0050831 for <davisamy@example.org>; Tue, 1 Jul 2008 16:44:04 +0200 (CEST) Received: by wf-out-1314.google.com with SMTP id 25so2199983wfc.28 for <davisamy@example.org>; Tue, 01 Jul 2008 07:43:37 -0700 (PDT) Received: by 83.161.120.155 with SMTP id v10mr2484744wfd.318.1214923417213; Tue, 01 Jul 2008 07:43:37 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Tue, 1 Jul 2008 07:43:37 -0700 (PDT) Message-ID: <davisamy@example.org> Date: Tue, 1 Jul 2008 16:43:37 +0200 From: "Alexander Klimetschek" <davisamy@example.org> To: davisamy@example.org Subject: Re: XPath - Emergency In-Reply-To: <davisamy@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <davisamy@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi! The code looks ok to me. Only the repository.xml (posted on the dev list mail) contains a superfluous <SearchIndex> element at the end (it can only be used inside a <Workspace> - and hence in the workspace.xml), but that shouldn't be a problem, since it is simply ignored by the config parser IIRC. Are there any exceptions, maybe in the logs? Can you read the nodes and properties with a direct access (session.getItem("/path/to/node/or/property"))? What version of Jackrabbit do you use? Regards, Alex On Tue, Jul 1, 2008 at 12:04 PM, jakobitsch juergen <davisamy@example.org> wrote: > aloha, > > what am i doing wrong , none of the following xpath queries gives any result > using the following structure > > Node root = session.getRootNode(); > Node BookmarkSpace = root.getNode("turnguard:BookmarkSpace"); > Node NewBookmark = BookmarkSpace.addNode("turnguard:Bookmark"); > NewBookmark.addMixin("mix:referenceable"); > NewBookmark.addMixin("mix:versionable"); > NewBookmark.setProperty("turnguard:BookmarkTitle", RequestContainer.getValueFor("BookmarkTitle")); > NewBookmark.setProperty("turnguard:BookmarkUrl", RequestContainer.getValueFor("BookmarkUrl")); > > > NewBookmark.setProperty("turnguard:BookmarkDescription", > RequestContainer.getValueFor("BookmarkDescription")); > > NewBookmark.setProperty("turnguard:In", > session.getNodeByUUID(RequestContainer.getValueFor("ParentFolderUUID"))); > session.save(); > > 1. i cant query for jcr:uuid > > //turnguard:BookmarkSpace/turnguard:Bookmark[@jcr:uuid='cf6b0cac-97f9-4a98-b479-b31e717d2236'] > > (i tried every combination with double-slashes, jcr:root in front, with @ and without,...) > > 2. i cant query for element > > //element(*,nt:unstructured) > //element(*,nt:base) > > nothing... > > 3. i'm far from getting rep:similar to work > > used the query from the wiki.. :( > > 4. i'm far from getting turnguard:Bookmarks that have a certain folder-uuid in turnguard:In > > > =============== > //element(*,jackrabbit:help) ?? > > wkr turnguard > > > > > -- Alexander Klimetschek davisamy@example.org From users-returndavisamy@example.org Tue Jul 01 15:24:51 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 9229 invoked from network); 1 Jul 2008 15:24:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 15:24:51 -0000 Received: (qmail 59722 invoked by uid 500); 1 Jul 2008 15:24:51 -0000 Delivered-To: davisamy@example.org Received: (qmail 59707 invoked by uid 500); 1 Jul 2008 15:24:51 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 59696 invoked by uid 99); 1 Jul 2008 15:24:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 08:24:51 -0700 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 [83.161.120.155] (HELO SMTP.butterworths.co.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 15:24:00 +0000 Received: from SMTP.butterworths.co.uk (localhost.localdomain [83.161.120.155]) by localhost (Email Security Appliance) with SMTP id 7D1804A6B0F for <davisamy@example.org>; Tue, 1 Jul 2008 15:21:12 +0000 (GMT) Received: from lngwokexcp002.legal.regn.net (unknown [83.161.120.155]) by SMTP.butterworths.co.uk (Email Security Appliance) with ESMTP id 742AE4A6B0C for <davisamy@example.org>; Tue, 1 Jul 2008 15:21:12 +0000 (GMT) Received: from LNGWOKEXCP01VA.legal.regn.net ([83.161.120.155]) by lngwokexcp002.legal.regn.net with Microsoft SMTPSVC949-687-9231); Tue, 1 Jul 2008 16:21:28 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: NPE in VersionIteratorImpl.addVersion in cluster Date: Tue, 1 Jul 2008 16:21:27 +0100 Message-ID: <davisamy@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: NPE in VersionIteratorImpl.addVersion in cluster thread-index: AcjbjiHMvKz/XExPQGGW3EBfFGL8og== From: "Connor, Brett (LNG-TWY)" <davisamy@example.org> To: <davisamy@example.org> X-OriginalArrivalTime: 01 Jul 2008 15:21:28.0267 (UTC) FILETIME=[220549B0:01C8DB8E] X-Virus-Checked: Checked by ClamAV on apache.org I have a simple cluster with two nodes, bsc_1 and bsc_2, configured with bundle.MSSqlPersistenceManager and datastore (on a shared filesystem). This is using Jackrabbit 1.4.3. In my test one node created a document, the other fairly eagerly spotted the new document (another communication channel) and tried to find some information about it. I had several callstacks as below for a few seconds before it settled down and returned the informaion correctly: at org.apache.jackrabbit.core.version.VersionIteratorImpl.addVersion(Versio nIteratorImpl.java:147) at org.apache.jackrabbit.core.version.VersionIteratorImpl. (VersionIteratorImpl.java:68) at org.apache.jackrabbit.core.version.VersionHistoryImpl.getAllVersions(Ver sionHistoryImpl.java:95) Several other properties were read ok, it's not until it gets to the versionhistory that it goes pear shaped. The method in question traverses the version graph, internally adding version node successors to a working queue to build the iteration order. Somewhere a null item is being added to the work queue. I don't know which because putting the debugger on it obviously changes the timing. The method itself is synchronized, but my guess is that something (in the journalling code?) that updates this isn't. Looks like it's pulling null out of one of the node successors array most likely but I haven't yet verified this. Has anyone else seen this? I can't see a jira bug matching this. Brett REED ELSEVIER (UK) LIMITED - Registered office - 1-3 STRAND, LONDON WC2N 5JR Registered in England - Company No. 02746621 From users-returndavisamy@example.org Tue Jul 01 15:25:44 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 9348 invoked from network); 1 Jul 2008 15:25:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 15:25:44 -0000 Received: (qmail 60274 invoked by uid 500); 1 Jul 2008 15:25:44 -0000 Delivered-To: davisamy@example.org Received: (qmail 60254 invoked by uid 500); 1 Jul 2008 15:25:44 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 60243 invoked by uid 99); 1 Jul 2008 15:25:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 08:25:44 -0700 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 [83.161.120.155] (HELO web50507.mail.re2.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 15:24:52 +0000 Received: (qmail 26462 invoked by uid 60001); 1 Jul 2008 15:22:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=MqvTPlaQX5Kw4/8T5B0QtBWxbZzWGJZly31mS9m7E8nQnvZUB7fkkhtLGjJdM341V2iQE6dioI3XelaPqKnHLx3A5OpDD/5ZoDmqKIp+FAxHqCr0ShR7Ga9wa14vqSZivqoo1V6kXTdAMBsCQFkD2sZ6jjSUJwVVfGpl6OUbfBY=; Received: from [83.161.120.155] by web50507.mail.re2.yahoo.com via HTTP; Tue, 01 Jul 2008 08:22:28 PDT X-Mailer: YahooMailRC/1042.24 YahooMailWebService/0.7.199 Date: Tue, 1 Jul 2008 08:22:28 -0700 (PDT) From: jakobitsch juergen <davisamy@example.org> Subject: Re: XPath - Emergency To: davisamy@example.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <davisamy@example.org> X-Virus-Checked: Checked by ClamAV on apache.org hi there, System.out.println("1"+session.getItem("/jcr:root/turnguard:BookmarkSpace").getPath()); ==> javax.jcr.PathNotFoundException XPathQuery : /jcr:root/turnguard:BookmarkSpace works System.out.println("2"+session.getItem("/jcr:root/turnguard:BookmarkSpace/turnguard:Bookmark[1]").getPath()); ==> javax.jcr.PathNotFoundException XPathQuery : /jcr:root/turnguard:BookmarkSpace/turnguard:Bookmark[1] works version -> 1.4 thanks j ----- Original Message ---- From: Alexander Klimetschek <davisamy@example.org> To: davisamy@example.org Sent: Tuesday, July 1, 2008 4:43:37 PM Subject: Re: XPath - Emergency Hi! The code looks ok to me. Only the repository.xml (posted on the dev list mail) contains a superfluous <SearchIndex> element at the end (it can only be used inside a <Workspace> - and hence in the workspace.xml), but that shouldn't be a problem, since it is simply ignored by the config parser IIRC. Are there any exceptions, maybe in the logs? Can you read the nodes and properties with a direct access (session.getItem("/path/to/node/or/property"))? What version of Jackrabbit do you use? Regards, Alex On Tue, Jul 1, 2008 at 12:04 PM, jakobitsch juergen <davisamy@example.org> wrote: > aloha, > > what am i doing wrong , none of the following xpath queries gives any result > using the following structure > > Node root = session.getRootNode(); > Node BookmarkSpace = root.getNode("turnguard:BookmarkSpace"); > Node NewBookmark = BookmarkSpace.addNode("turnguard:Bookmark"); > NewBookmark.addMixin("mix:referenceable"); > NewBookmark.addMixin("mix:versionable"); > NewBookmark.setProperty("turnguard:BookmarkTitle", RequestContainer.getValueFor("BookmarkTitle")); > NewBookmark.setProperty("turnguard:BookmarkUrl", RequestContainer.getValueFor("BookmarkUrl")); > > > NewBookmark.setProperty("turnguard:BookmarkDescription", > RequestContainer.getValueFor("BookmarkDescription")); > > NewBookmark.setProperty("turnguard:In", > session.getNodeByUUID(RequestContainer.getValueFor("ParentFolderUUID"))); > session.save(); > > 1. i cant query for jcr:uuid > > //turnguard:BookmarkSpace/turnguard:Bookmark[@jcr:uuid='cf6b0cac-97f9-4a98-b479-b31e717d2236'] > > (i tried every combination with double-slashes, jcr:root in front, with @ and without,...) > > 2. i cant query for element > > //element(*,nt:unstructured) > //element(*,nt:base) > > nothing... > > 3. i'm far from getting rep:similar to work > > used the query from the wiki.. :( > > 4. i'm far from getting turnguard:Bookmarks that have a certain folder-uuid in turnguard:In > > > =============== > //element(*,jackrabbit:help) ?? > > wkr turnguard > > > > > -- Alexander Klimetschek davisamy@example.org From users-returndavisamy@example.org Tue Jul 01 15:34:11 2008 Return-Path: <users-returndavisamy@example.org> Delivered-To: davisamy@example.org Received: (qmail 13607 invoked from network); 1 Jul 2008 15:34:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 15:34:11 -0000 Received: (qmail 80091 invoked by uid 500); 1 Jul 2008 15:34:11 -0000 Delivered-To: davisamy@example.org Received: (qmail 80070 invoked by uid 500); 1 Jul 2008 15:34:11 -0000 Mailing-List: contact davisamy@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:davisamy@example.org> List-Unsubscribe: <mailto:davisamy@example.org> List-Post: <mailto:davisamy@example.org> List-Id: <users.jackrabbit.apache.org> Reply-To: davisamy@example.org Delivered-To: mailing list davisamy@example.org Received: (qmail 80059 invoked by uid 99); 1 Jul 2008 15:34:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 08:34:11 -0700 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: domain of davisamy@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO goobak01.day.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 15:33:19 +0000 Received: by goobak01.day.com (Postfix, from userid 1212) id CFA3C50838; Tue, 1 Jul 2008 17:33:22 +0200 (CEST) Received: from yx-out-2324.google.com (yx-out-2324.google.com [83.161.120.155]) by goobak01.day.com (Postfix) with ESMTP id E7E365082E for <davisamy@example.org>; Tue, 1 Jul 2008 17:33:20 +0200 (CEST) Received: by yx-out-2324.google.com with SMTP id 8so418173yxg.31 for <davisamy@example.org>; Tue, 01 Jul 2008 08:33:36 -0700 (PDT) Received: by 83.161.120.155 with SMTP id w4mr2521060wfw.194.1214926415738; Tue, 01 Jul 2008 08:33:35 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Tue, 1 Jul 2008 08:33:35 -0700 (PDT) Message-ID: <davisamy@example.org> Date: Tue, 1 Jul 2008 17:33:35 +0200 From: "Alexander Klimetschek" <davisamy@example.org> To: davisamy@example.org Subject: Re: XPath - Emergency In-Reply-To: <davisamy@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <davisamy@example.org> X-Virus-Checked: Checked by ClamAV on apache.org It should be session.getItem("/turnguard:BookmarkSpace"). The jcr:root is only for the specific Xpath <-> JCR mapping. Regards, Alex On Tue, Jul 1, 2008 at 5:22 PM, jakobitsch juergen <davisamy@example.org> wrote: > hi there, > > System.out.println("1"+session.getItem("/jcr:root/turnguard:BookmarkSpace").getPath()); > > ==> javax.jcr.PathNotFoundException > > XPathQuery : /jcr:root/turnguard:BookmarkSpace works > > System.out.println("2"+session.getItem("/jcr:root/turnguard:BookmarkSpace/turnguard:Bookmark[1]").getPath()); > > ==> javax.jcr.PathNotFoundException > > XPathQuery : /jcr:root/turnguard:BookmarkSpace/turnguard:Bookmark[1] works > > version -> 1.4 > > thanks j > > > > ----- Original Message ---- > From: Alexander Klimetschek <davisamy@example.org> > To: davisamy@example.org > Sent: Tuesday, July 1, 2008 4:43:37 PM > Subject: Re: XPath - Emergency > > Hi! > > The code looks ok to me. Only the repository.xml (posted on the dev > list mail) contains a superfluous <SearchIndex> element at the end (it > can only be used inside a <Workspace> - and hence in the > workspace.xml), but that shouldn't be a problem, since it is simply > ignored by the config parser IIRC. > > Are there
{'source': 'Apache Software Foundation Public Mail Archives'}