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 AC6E811D8E for ; Wed, 2 Jul 2014 12:33:24 +0000 (UTC) Received: (qmail 85524 invoked by uid 500); 2 Jul 2014 12:33:24 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 85453 invoked by uid 500); 2 Jul 2014 12:33:24 -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 85440 invoked by uid 99); 2 Jul 2014 12:33:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 12:33:24 +0000 Date: Wed, 2 Jul 2014 12:33:24 +0000 (UTC) From: "Guyenot Jeremy (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CMIS-819) getObjectByPath: Base type ID property not set! MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-819?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D140498= 70#comment-14049870 ]=20 Guyenot Jeremy commented on CMIS-819: ------------------------------------- I do not understand your answer. On the official website CMIS it is mention= ed PropertyId, propertyString ... On site, examples illustrate these tags http://tools.oasis-open.org/version-control/browse/wsvn/cmis/trunk/cmis-v1.= 1/examples/webservices/getObject-response.log > getObjectByPath: Base type ID property not set! > ----------------------------------------------- > > Key: CMIS-819 > URL: https://issues.apache.org/jira/browse/CMIS-819 > Project: Chemistry > Issue Type: Bug > Components: opencmis-client > Reporter: Guyenot Jeremy > Attachments: JavaCMIS.java, getObjectByPath_request.xml, getObjec= tByPath_response.xml > > > Hello, > i have a problem with the getObjectByPath method. I have a NullPointerExc= eption error: > Exception in thread "main" java.lang.NullPointerException > =09at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFacto= ryImpl.convertObject(ObjectFactoryImpl.java:570) > =09at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectB= yPath(SessionImpl.java:558) > =09at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectB= yPath(SessionImpl.java:532) > =09at javacmis.JavaCMIS.main(JavaCMIS.java:85) > Java Result: 1 > I got the source code from the Apache chemistry website to understand the= problem and I put a trace to see the contents of the ObjectData. Propertie= s do not seem to be retrieved correctly. They are visible in extension and = not in properties. > Object Data [properties=3DProperties Data [properties=3D[]][extensions=3D= [propertyId {localName=3Dcmis:allowedChildObjectTypeIds, queryName=3Dcmis:a= llowedChildObjectTypeIds, propertyDefinitionId=3Dcmis:allowedChildObjectTyp= eIds, displayName=3DAllowed Child Object Type Ids}: , propertyId {localName= =3Dcmis:objectTypeId, queryName=3Dcmis:objectTypeId, propertyDefinitionId= =3Dcmis:objectTypeId, displayName=3DObject Type Id}: [value {}: cmis:folder= ], propertyString {localName=3Dcmis:path, queryName=3Dcmis:path, propertyDe= finitionId=3Dcmis:path, displayName=3DPath}: [value {}: /], propertyString = {localName=3Dcmis:name, queryName=3Dcmis:name, propertyDefinitionId=3Dcmis:= name, displayName=3DName}: , propertyDateTime {localName=3Dcmis:creationDat= e, queryName=3Dcmis:creationDate, propertyDefinitionId=3Dcmis:creationDate,= displayName=3DCreation Date}: [value {}: 2012-10-30T11:35:38.000+01:00], p= ropertyString {localName=3Dcmis:changeToken, queryName=3Dcmis:changeToken, = propertyDefinitionId=3Dcmis:changeToken, displayName=3DChange Token}: , pro= pertyString {localName=3Dcmis:lastModifiedBy, queryName=3Dcmis:lastModified= By, propertyDefinitionId=3Dcmis:lastModifiedBy, displayName=3DLast Modified= By}: , propertyString {localName=3Dcmis:createdBy, queryName=3Dcmis:create= dBy, propertyDefinitionId=3Dcmis:createdBy, displayName=3DCreated By}: , pr= opertyId {localName=3Dcmis:objectId, queryName=3Dcmis:objectId, propertyDef= initionId=3Dcmis:objectId, displayName=3DObject Id}: [value {}: 2f], proper= tyId {localName=3Dcmis:baseTypeId, queryName=3Dcmis:baseTypeId, propertyDef= initionId=3Dcmis:baseTypeId, displayName=3DBase Type Id}: [value {}: cmis:f= older], propertyId {localName=3Dcmis:parentId, queryName=3Dcmis:parentId, p= ropertyDefinitionId=3Dcmis:parentId, displayName=3DParent Id}: , propertyDa= teTime {localName=3Dcmis:lastModificationDate, queryName=3Dcmis:lastModific= ationDate, propertyDefinitionId=3Dcmis:lastModificationDate, displayName=3D= Last Modification Date}: [value {}: 2014-07-02T10:27:30.000+02:00]]], allow= able actions=3DAllowable Actions [allowable actions=3D[]][extensions=3D[can= DeleteObject {}: true, canUpdateProperties {}: true, canGetFolderTree {}: t= rue, canGetProperties {}: true, canGetObjectRelationships {}: true, canGetO= bjectParents {}: true, canGetFolderParent {}: true, canGetDescendants {}: t= rue, canMoveObject {}: true, canDeleteContentStream {}: true, canCheckOut {= }: true, canCancelCheckOut {}: true, canCheckIn {}: true, canSetContentStre= am {}: true, canGetAllVersions {}: true, canAddObjectToFolder {}: true, can= RemoveObjectFromFolder {}: true, canGetContentStream {}: true, canApplyPoli= cy {}: true, canGetAppliedPolicies {}: true, canRemovePolicy {}: true, canG= etChildren {}: true, canCreateDocument {}: true, canCreateFolder {}: true, = canCreateRelationship {}: true, canDeleteTree {}: true, canGetRenditions {}= : true, canGetACL {}: true, canApplyACL {}: true]], change event info=3Dnul= l, ACL=3Dnull, is exact ACL=3Dnull, policy ids=3Dnull, relationships=3D[], = renditions=3D[]][extensions=3Dnull] -- This message was sent by Atlassian JIRA (v6.2#6252)