[ https://issues.apache.org/jira/browse/CMIS-819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guyenot Jeremy resolved CMIS-819. --------------------------------- Resolution: Fixed Thanks, i added ns1: into my code generation and it works <ns1:properties> <ns1:propertyId queryName="cmis:allowedChildObjectTypeIds" displayName="Allowed Child Object Type Ids" localName="cmis:allowedChildObjectTypeIds" propertyDefinitionId="cmis:allowedChildObjectTypeIds"/> ... </ns1:properties> > 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, > getObjectByPath_response.xml > > > Hello, > i have a problem with the getObjectByPath method. I have a > NullPointerException error: > Exception in thread "main" java.lang.NullPointerException > at > org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertObject(ObjectFactoryImpl.java:570) > at > org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:558) > at > org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:532) > at 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. Properties > do not seem to be retrieved correctly. They are visible in extension and not > in properties. > Object Data [properties=Properties Data > [properties=[]][extensions=[propertyId > {localName=cmis:allowedChildObjectTypeIds, > queryName=cmis:allowedChildObjectTypeIds, > propertyDefinitionId=cmis:allowedChildObjectTypeIds, displayName=Allowed > Child Object Type Ids}: , propertyId {localName=cmis:objectTypeId, > queryName=cmis:objectTypeId, propertyDefinitionId=cmis:objectTypeId, > displayName=Object Type Id}: [value {}: cmis:folder], propertyString > {localName=cmis:path, queryName=cmis:path, propertyDefinitionId=cmis:path, > displayName=Path}: [value {}: /], propertyString {localName=cmis:name, > queryName=cmis:name, propertyDefinitionId=cmis:name, displayName=Name}: , > propertyDateTime {localName=cmis:creationDate, queryName=cmis:creationDate, > propertyDefinitionId=cmis:creationDate, displayName=Creation Date}: [value > {}: 2012-10-30T11:35:38.000+01:00], propertyString > {localName=cmis:changeToken, queryName=cmis:changeToken, > propertyDefinitionId=cmis:changeToken, displayName=Change Token}: , > propertyString {localName=cmis:lastModifiedBy, queryName=cmis:lastModifiedBy, > propertyDefinitionId=cmis:lastModifiedBy, displayName=Last Modified By}: , > propertyString {localName=cmis:createdBy, queryName=cmis:createdBy, > propertyDefinitionId=cmis:createdBy, displayName=Created By}: , propertyId > {localName=cmis:objectId, queryName=cmis:objectId, > propertyDefinitionId=cmis:objectId, displayName=Object Id}: [value {}: 2f], > propertyId {localName=cmis:baseTypeId, queryName=cmis:baseTypeId, > propertyDefinitionId=cmis:baseTypeId, displayName=Base Type Id}: [value {}: > cmis:folder], propertyId {localName=cmis:parentId, queryName=cmis:parentId, > propertyDefinitionId=cmis:parentId, displayName=Parent Id}: , > propertyDateTime {localName=cmis:lastModificationDate, > queryName=cmis:lastModificationDate, > propertyDefinitionId=cmis:lastModificationDate, displayName=Last Modification > Date}: [value {}: 2014-07-02T10:27:30.000+02:00]]], allowable > actions=Allowable Actions [allowable actions=[]][extensions=[canDeleteObject > {}: true, canUpdateProperties {}: true, canGetFolderTree {}: true, > canGetProperties {}: true, canGetObjectRelationships {}: true, > canGetObjectParents {}: true, canGetFolderParent {}: true, canGetDescendants > {}: true, canMoveObject {}: true, canDeleteContentStream {}: true, > canCheckOut {}: true, canCancelCheckOut {}: true, canCheckIn {}: true, > canSetContentStream {}: true, canGetAllVersions {}: true, > canAddObjectToFolder {}: true, canRemoveObjectFromFolder {}: true, > canGetContentStream {}: true, canApplyPolicy {}: true, canGetAppliedPolicies > {}: true, canRemovePolicy {}: true, canGetChildren {}: true, > canCreateDocument {}: true, canCreateFolder {}: true, canCreateRelationship > {}: true, canDeleteTree {}: true, canGetRenditions {}: true, canGetACL {}: > true, canApplyACL {}: true]], change event info=null, ACL=null, is exact > ACL=null, policy ids=null, relationships=[], renditions=[]][extensions=null] -- This message was sent by Atlassian JIRA (v6.2#6252)