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

FileNet 5.2.1 with IBM CMIS 2.0.3 - CollectionIterator.hasNext throws: method that was specified requires the getAllowableActions capability

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • OpenCMIS 0.13.0
    • None
    • opencmis-client
    • None
    • Client - Windows 7, 64bit, java 1.7, eclipse
      Server - FileNet 5.2.1 with IBM CMIS 2.0.3 on AIX7.1

    Description

      The code is working on FileNet 5.1 with IBM CMIS 1.0

      Logger log = LoggerFactory.getLogger("doCmisSearchJoin");
      Session sess = createOpenCMISSession(USER_NAME, PASSWORD, REPOSITORY_VUB);
      String queryDoc = "select ld.id , f.AccountNr,  ld.documentType, ld.applicationId, ld.DateCreated    from (ContractDocument ld left outer join ReferentialContainmentRelationship rcr on rcr.head = ld.this )  left outer  join ProductFolder f on rcr.tail = f.this    where ld.ClientID = '990061780'";
      ItemIterable<QueryResult> aDoc = sess.query(queryDoc, true);	
      Iterator<QueryResult> i1Doc = aDoc.iterator();
      while (i1Doc.hasNext()) {
      	QueryResult fold = (QueryResult) i1Doc.next();
      	// ...
      }
      

      When running on newer filenet, This exceprion is thrown:

      Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException: CIL2420: Your request cannot be completed. 
      Explanation: The service method that was specified requires the getAllowableActions capability, which is an optional capability that is not supported by the repository. 
      Action: Review the repository information that is returned by the getRepositoryInfo service to determine which services are supported by the repository.
      	at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractWebServicesService.convertException(AbstractWebServicesService.java:113)
      	at org.apache.chemistry.opencmis.client.bindings.spi.webservices.DiscoveryServiceImpl.query(DiscoveryServiceImpl.java:88)
      	at org.apache.chemistry.opencmis.client.runtime.SessionImpl$6.fetchPage(SessionImpl.java:935)
      	at org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.getCurrentPage(AbstractIterator.java:132)
      	at org.apache.chemistry.opencmis.client.runtime.util.CollectionIterator.hasNext(CollectionIterator.java:48)
      	at Main.doCmisSearchJoin(Main.java:993)
      	at Main.main(Main.java:107)
      

      The Line 993 is while (i1Doc.hasNext())

      Attachments

        Activity

          People

            Unassigned Unassigned
            RobertV Robert ValĂ­k
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: