chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <>
Subject [jira] [Commented] (CMIS-819) getObjectByPath: Base type ID property not set!
Date Wed, 02 Jul 2014 10:25:24 GMT


Florian Müller commented on CMIS-819:

The server response is incorrect. The <propertyId>, <propertyString>, etc. tags
are not in the CMIS namespace. Therefore, OpenCMIS treats them as extensions and not as properties.
When it then tries to access the property "cmis:baseTypeId", it fails.
This is not an OpenCMIS client issue. It has to be fixed on the server side.

> getObjectByPath: Base type ID property not set!
> -----------------------------------------------
>                 Key: CMIS-819
>                 URL:
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client
>            Reporter: Guyenot Jeremy
>         Attachments:, 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(
> 	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(
> 	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(
> 	at javacmis.JavaCMIS.main(
> 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

View raw message