Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-819

getObjectByPath: Base type ID property not set!

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • opencmis-client
    • None

    Description

      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]

      Attachments

        1. JavaCMIS.java
          2 kB
          Guyenot Jeremy
        2. getObjectByPath_response.xml
          4 kB
          Guyenot Jeremy
        3. getObjectByPath_request.xml
          1 kB
          Guyenot Jeremy
        4. getObjectByPath_request.xml
          1 kB
          Nikki Marie

        Activity

          People

            Unassigned Unassigned
            jguyenot Guyenot Jeremy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: