Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14028100B7 for ; Wed, 9 Oct 2013 09:31:24 +0000 (UTC) Received: (qmail 47511 invoked by uid 500); 9 Oct 2013 09:31:21 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 47310 invoked by uid 500); 9 Oct 2013 09:31:20 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 47302 invoked by uid 99); 9 Oct 2013 09:31:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Oct 2013 09:31:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [77.238.189.201] (HELO nm4-vm1.bullet.mail.ird.yahoo.com) (77.238.189.201) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 09 Oct 2013 09:31:11 +0000 Received: from [77.238.189.239] by nm4.bullet.mail.ird.yahoo.com with NNFMP; 09 Oct 2013 09:30:50 -0000 Received: from [212.82.98.76] by tm20.bullet.mail.ird.yahoo.com with NNFMP; 09 Oct 2013 09:30:49 -0000 Received: from [127.0.0.1] by omp1013.mail.ir2.yahoo.com with NNFMP; 09 Oct 2013 09:30:49 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 962870.44663.bm@omp1013.mail.ir2.yahoo.com Received: (qmail 50439 invoked by uid 60001); 9 Oct 2013 09:30:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1381311049; bh=2jR7Po/nfxFIF6HiRD0R1HfD3VF03GqyS9zpTyDLnWk=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Z/pBe8AcFURRzBL2QOsAY0wk47MEnMIkNa3SsPdSYRVf1jXaTaMKUd4gvoM7pYbXdo6u3Q+cK3gj+reYikUOO7xqesPqyOK6i/RHdP1lDysIx+ImUYkQeCvgulQQQWvZNnb2126NB9FHmuwZHn0/gOhlnjtz4z6pXDJl9bgnxmA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=PmqRkOylxtXU+PizNmIwnw5JCdyTMtd13axiFcEWhlAwhkFkSh9/PpUtKC5nimeJwygWw5y55EntV6k2sGG1f1Opep47nnsr3Vwieoqfc6uXXHt8Nc40DxE1kLC99q3deNPqliBtkVfZ8ANRtbmVZGIBJhT3blfzWCh3oX111Ac=; X-YMail-OSG: LQpdD9sVM1kIxmU5O..44wT9duvPIyqp1LISscFl_l5OY2E YF7kqdMRYomwiUfGFNqFfMVn880h20CwVoByQQ2TQkn0xpYcA_r8dlJi3rpE JmSTedtgzqTnwPurP2YwrtLgTwrB0z2TvUVUzJIl2Bo4BKnrfPANFTp3Z6MM AitTDV7RWxwxX6EeTybNOVZOVjBgs2_JskhZJhOSZFaHuvKfGZHaWV0GSnbW orlhsKS7aVnZiQFZOSfvDg.1NzEdp6RpBims2VqFvfouHLvpRI7scxCLUDgj VWJBecadcLszk65ximuk1bHeRr.uroB8lCiwt_ly1nsAaBuOmprX350YK_q2 jLMa35X5gm60pUaicRoAaATnlFt7TfEmgYUiO.Mw6roDLq7MUgnP4aJEQWqE y4wPDtRpyqdi4eKijiaxxGzHCHtmZOX3Lh9.Vvoqj7TQ7C1OFAcicmcLF3mK tfhah9T2GSuT6uHLFCbT_P3ggZKse275KX90DmdxKhyMuzBw4xyQytP63Iz7 MoKd3cPADcB_EE8VrcYY5DGwglz0VbMHoYs.JNdypboa7fZm5l62iyNBTLM0 GFxslWfEYUA-- Received: from [82.243.119.191] by web171802.mail.ir2.yahoo.com via HTTP; Wed, 09 Oct 2013 10:30:49 BST X-Rocket-MIMEInfo: 002.001,RVJSQVRVTSAtwqB3aXRob3V0IG1pc3NwZWxsaW5ncwoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCiBEZcKgOiBQYXNjYWwgR2lsbGV0IDxwYXNjYWxnaWxsZXRAeW1haWwuY29tPgrDgMKgOiAiZGV2QGNoZW1pc3RyeS5hcGFjaGUub3JnIiA8ZGV2QGNoZW1pc3RyeS5hcGFjaGUub3JnPiAKRW52b3nDqSBsZSA6IE1lcmNyZWRpIDkgb2N0b2JyZSAyMDEzIDExaDI0Ck9iamV0wqA6IEZpbGVzaGFyZSByZXBvc2l0b3J5CiAKCkhpIGV2ZXJ5b25lLAoKSSBzdHJ1Z2dsZSB0byBjcmVhdGUgQ01JUyABMAEBAQE- X-Mailer: YahooMailWebService/0.8.160.587 References: <1381310641.52032.YahooMailNeo@web171803.mail.ir2.yahoo.com> Message-ID: <1381311049.38317.YahooMailNeo@web171802.mail.ir2.yahoo.com> Date: Wed, 9 Oct 2013 10:30:49 +0100 (BST) From: Pascal Gillet Reply-To: Pascal Gillet Subject: [ERRATUM] Fileshare repository To: "dev@chemistry.apache.org" In-Reply-To: <1381310641.52032.YahooMailNeo@web171803.mail.ir2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1821453988-826821261-1381311049=:38317" X-Virus-Checked: Checked by ClamAV on apache.org ---1821453988-826821261-1381311049=:38317 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ERRATUM -=C2=A0without misspellings=0A=0A=0A_______________________________= _=0A De=C2=A0: Pascal Gillet =0A=C3=80=C2=A0: "dev@= chemistry.apache.org" =0AEnvoy=C3=A9 le : Mercre= di 9 octobre 2013 11h24=0AObjet=C2=A0: Fileshare repository=0A =0A=0AHi eve= ryone,=0A=0AI struggle to create CMIS objects using the client API (not the= bindings API) with the FileShare server.=0AI thought CMIS FileShare should= have worked out of the box without any complex configuration, but it does = not seem to be the case.=0A=0AI managed to deploy the FileShare server into= Tomcat:=0A=0A1 =C2=A0 =C2=A0[localhost-startStop-1] INFO =C2=A0org.apache.= chemistry.opencmis.fileshare.FileShareServiceFactory =C2=A0=E2=80=93 Added = login 'test'.=0A3 =C2=A0 =C2=A0[localhost-startStop-1] INFO =C2=A0org.apach= e.chemistry.opencmis.fileshare.FileShareServiceFactory =C2=A0=E2=80=93 Adde= d login 'cmisuser'.=0A4 =C2=A0 =C2=A0[localhost-startStop-1] INFO =C2=A0org= .apache.chemistry.opencmis.fileshare.FileShareServiceFactory =C2=A0=E2=80= =93 Added login 'reader'.=0A69 =C2=A0 [localhost-startStop-1] INFO =C2=A0or= g.apache.chemistry.opencmis.fileshare.FileShareServiceFactory =C2=A0=E2=80= =93 Added repository 'test': /home/pgillet/test=0A1002 [localhost-startStop= -1] INFO =C2=A0org.apache.chemistry.opencmis.fileshare.TypeManager =C2=A0= =E2=80=93 Added type 'myTestDocumentType'.=0A1003 [localhost-startStop-1] I= NFO =C2=A0org.apache.chemistry.opencmis.server.impl.CmisRepositoryContextLi= stener =C2=A0=E2=80=93 Initialized Services Factory: org.apache.chemistry.o= pencmis.fileshare.FileShareServiceFactory=0A=0AI configured my repository.p= roperties file to use the type definitions in the example-type.xml file (th= is file is originally embedded in the WAR archive). I do not even know if i= t is useful or not.=0A=0AThen, I try to run the following test:=0A=0Apublic= static void main(String[] args) {=0A// default factory implementation=0ASe= ssionFactory factory =3D SessionFactoryImpl.newInstance();=0AMap params =3D new HashMap();=0A=0A// user credentials=0A= params.put(SessionParameter.USER, "test");=0Aparams.put(SessionParameter.PA= SSWORD, "test");=0A=0A// connection settings=0Aparams.put(SessionParameter.= ATOMPUB_URL,=0A"http://localhost:8080/glue-content/atom");=0Aparams.put(Ses= sionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());=0A// params.put(S= essionParameter.REPOSITORY_ID, "test");=0A=0A// create session=0AList repositories =3D factory.getRepositories(params);=0Afor (Repository = r : repositories) {=0A=C2=A0 =C2=A0System.out.println("Found repository: " = + r.getName());=0A}=0ARepository repository =3D repositories.get(0);=0ASess= ion session =3D repository.createSession();=0ASystem.out.println("Got a con= nection to repository: "=C2=A0=0A=C2=A0 =C2=A0+ repository.getName() + ", w= ith id: "=0A=C2=A0 =C2=A0+ repository.getId());=0A=0A// Access to root fold= er=0AFolder root =3D session.getRootFolder(); // line 65: Here is the probl= em !=0A=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ...=0A=0A=0A= =0AEverything works fine until the last instruction. I have the following o= utput:=0A=0A11:17:02.583 [main] DEBUG o.a.c.o.c.b.s.atompub.CmisAtomPubSpi = - Initializing AtomPub SPI...=0A11:17:05.474 [main] DEBUG o.a.c.o.c.b.s.h.D= efaultHttpInvoker - GET http://localhost:8080/glue-content/atom=0AFound rep= ository: test=0A11:17:08.153 [main] DEBUG o.a.c.o.c.b.s.atompub.CmisAtomPub= Spi - Initializing AtomPub SPI...=0A11:17:08.154 [main] DEBUG o.a.c.o.c.b.s= .h.DefaultHttpInvoker - GET http://localhost:8080/glue-content/atom?reposit= oryId=3Dtest=0AGot a connection to repository: test, with id: test=0A11:17:= 08.419 [main] DEBUG o.a.c.o.c.b.s.h.DefaultHttpInvoker - GET http://localho= st:8080/glue-content/atom/test/id?id=3D%40root%40&filter=3D&includeAllowabl= eActions=3Dtrue&includeACL=3Dfalse&includePolicyIds=3Dfalse&includeRelation= ships=3Dnone&renditionFilter=3Dcmis%3Anone=0A11:17:08.637 [main] DEBUG o.a.= c.o.c.b.s.h.DefaultHttpInvoker - GET http://localhost:8080/glue-content/ato= m/test/type?id=3Dcmis%3Afolder=0AException in thread "main" java.lang.Illeg= alArgumentException: Object type must have property definitions!=0Aat org.a= pache.chemistry.opencmis.client.runtime.AbstractCmisObject.initialize(Abstr= actCmisObject.java:95)=0Aat org.apache.chemistry.opencmis.client.runtime.Fo= lderImpl.(FolderImpl.java:68)=0Aat org.apache.chemistry.opencmis.clie= nt.runtime.repository.ObjectFactoryImpl.convertObject(ObjectFactoryImpl.jav= a:572)=0Aat org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObj= ect(SessionImpl.java:414)=0Aat org.apache.chemistry.opencmis.client.runtime= .SessionImpl.getRootFolder(SessionImpl.java:489)=0Aat org.apache.chemistry.= opencmis.client.runtime.SessionImpl.getRootFolder(SessionImpl.java:483)=0Aa= t com.glue.feed.ContentTest.main(ContentTest.java:65)=0A=0A=0AI guess that = I am missing some configuration step somewhere! I tried to google the error= message, but it seems that no one is experiencing the problem.=0AThank you= very much for you help,=0APascal GILLET ---1821453988-826821261-1381311049=:38317--