Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 94985 invoked from network); 1 Feb 2011 12:40:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 12:40:34 -0000 Received: (qmail 49197 invoked by uid 500); 1 Feb 2011 12:40:34 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 49061 invoked by uid 500); 1 Feb 2011 12:40:31 -0000 Mailing-List: contact chemistry-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-dev@incubator.apache.org Received: (qmail 49024 invoked by uid 99); 1 Feb 2011 12:40:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 12:40:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.58.252.169] (HELO smtpserver.aca-it.be) (62.58.252.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 12:40:24 +0000 Received: from localhost (localhost [127.0.0.1]) by smtpserver.aca-it.be (Postfix) with ESMTP id 2925B15C0A8; Tue, 1 Feb 2011 13:40:04 +0100 (CET) Received: from smtpserver.aca-it.be ([127.0.0.1]) by localhost (smtpserver.aca-it.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XSdcPPtRLcCi; Tue, 1 Feb 2011 13:39:59 +0100 (CET) Received: from itshas-sv06.aca-it.be (itshas-sv06.aca-it.be [10.32.1.37]) by smtpserver.aca-it.be (Postfix) with ESMTP id D4DFEE3C4; Tue, 1 Feb 2011 13:39:59 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by itshas-sv06.aca-it.be (Postfix) with ESMTP id CCA173D8401; Tue, 1 Feb 2011 13:39:59 +0100 (CET) X-Virus-Scanned: amavisd-new at itshas-sv06.aca-it.be Received: from itshas-sv06.aca-it.be ([127.0.0.1]) by localhost (itshas-sv06.aca-it.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4rWnXD8QqYT7; Tue, 1 Feb 2011 13:39:58 +0100 (CET) Received: by itshas-sv06.aca-it.be (Postfix, from userid 100) id B77F83D8402; Tue, 1 Feb 2011 13:39:58 +0100 (CET) Received: from itshas-sv06.aca-it.be (itshas-sv06.aca-it.be [10.32.1.37]) by itshas-sv06.aca-it.be (Postfix) with ESMTP id 9F6CF3D8401; Tue, 1 Feb 2011 13:39:58 +0100 (CET) Date: Tue, 1 Feb 2011 13:39:58 +0100 (CET) From: Geert Vanheusden To: =?utf-8?Q?Florian_M=C3=BCller?= Cc: chemistry-dev@incubator.apache.org Message-ID: <1788900691.22632.1296563998365.JavaMail.root@itshas-sv06> In-Reply-To: <4D47F324.6040206@alfresco.com> Subject: Re: Problem executing JOIN query in combination with IN_TREE or IN_FOLDER MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 6.0.7_GA_2473.RHEL5_64 (ZimbraWebClient - SAF3 (Mac)/6.0.7_GA_2473.RHEL5_64) X-Virus-Checked: Checked by ClamAV on apache.org Hi Florian, Sorry for the misplaced question, but thanks for the reference to the secti= on in the CMIS specifications! It solved our problem. Kind regards, Geert & Mano ----- Original Message ----- From: "Florian M=C3=BCller" To: "g vanheusden" Cc: chemistry-dev@incubator.apache.org Sent: Tuesday, February 1, 2011 12:48:52 PM Subject: Re: Problem executing JOIN query in combination with IN_TREE or IN= _FOLDER Hi Geert, First of all, this an Alfresco question and not an OpenCMIS question. The A= lfresco CMIS forum would be a better place for those kind of issues. Your query is missing a qualifier parameter in the IN_TREE function. This p= arameter is mandatory for queries that do JOINs. (See CMIS specification section "2.1.10.2.4.6 IN_TREE() predicate function"= .) Regards, Florian On 01/02/2011 11:30, Geert Vanheusden wrote: > Hi all, >=20 > We get the following error when executing a query: >=20 > org.alfresco.scripts.ScriptException: 01010002 Failed to execute script '= classpath*:alfresco/templates/webscripts/org/alfresco/cmis/queries.post.cmi= squery.js': 01010001 Selector must be specified for child constraint (IN_TR= EE) and join > =09at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptP= rocessor.java:194) > =09at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptS= erviceImpl.java:282) > =09at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScri= pt(RepositoryScriptProcessor.java:102) > =09at org.springframework.extensions.webscripts.AbstractWebScript.execute= Script(AbstractWebScript.java:981) > =09at org.springframework.extensions.webscripts.DeclarativeWebScript.exec= ute(DeclarativeWebScript.java:86) >=20 >=20 > This is caused by the following query: >=20 > SELECT DOCUMENT.*, EMPLOYEEDOCUMENT.* FROM park:document AS DOCUMENT JOIN= park:employeeDocument AS EMPLOYEEDOCUMENT ON DOCUMENT.cmis:objectId =3D EM= PLOYEEDOCUMENT.cmis:objectId WHERE (IN_TREE('workspace://SpacesStore/89fbb2= b2-2992-4104-9cec-cd2c15fb95e7') AND DOCUMENT.cmis:objectId IN ('workspace:= //SpacesStore/f0e7d3e7-cb74-4993-ad61-87042ca6de72')) >=20 > This query contains JOIN predicates because we are using aspects, support= ed by the alfresco CMIS implementation. We use the "Alfresco OpenCMIS Exten= sion" library (found here: http://cmis.alfresco.com:8080/alfresco-opencmis-= extension.html) to easily add and remove aspects in our code. >=20 > We were wondering if this is a problem with our query or if this is a bug= in Alfresco. >=20 > Thanks in advance. >=20 > -- Geert& Mano >=20 >=20 > _________________________________________________ >=20 > We published a new company movie featuring YOU! > See http://www.aca-it.be/movie > _________________________________________________