<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cant Excute Queries Open Cmis WS in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cant-excute-queries-open-cmis-ws/m-p/281305#M234435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, i`ve tried ti execute some queries with some example codes i´ve founded. And always get an exception: "Repository ID must Be set!".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code I use, its very simple, taked from apache web:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ItemIterable&amp;lt;QueryResult&amp;gt; results = session.query("SELECT * FROM cmis:document", false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for(QueryResult hit: results) {&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(PropertyData&amp;lt;?&amp;gt; property: hit.getProperties()) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String queryName = property.getQueryName();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Object value = property.getFirstValue();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(queryName + ": " + value);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("————————————–");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The session is correctly obtained, with the correct repository ID setted. In fact, i have methods for uploading files, create folders etc. that are working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m using chemistry-opencmis-client-impl v0.13.0 with an Alfresco Enterprise 4.2.3.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bebugging a litle, i found that the exception appears to be related with the compatibility of versions of the Alfresco server and the open cmis libs that implement the WS methods, because looks like the number of parameters for a method of one of the services does not match with the sended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its something like a compatibility table between open cmis libs and Alfresco server versions? Because i`ve benn looking for them without any success…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2015 15:48:34 GMT</pubDate>
    <dc:creator>andreshades</dc:creator>
    <dc:date>2015-05-28T15:48:34Z</dc:date>
    <item>
      <title>Cant Excute Queries Open Cmis WS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cant-excute-queries-open-cmis-ws/m-p/281305#M234435</link>
      <description>Hi, i`ve tried ti execute some queries with some example codes i´ve founded. And always get an exception: "Repository ID must Be set!".This is the code I use, its very simple, taked from apache web:ItemIterable&amp;lt;QueryResult&amp;gt; results = session.query("SELECT * FROM cmis:document", false);for(Quer</description>
      <pubDate>Thu, 28 May 2015 15:48:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cant-excute-queries-open-cmis-ws/m-p/281305#M234435</guid>
      <dc:creator>andreshades</dc:creator>
      <dc:date>2015-05-28T15:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cant Excute Queries Open Cmis WS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cant-excute-queries-open-cmis-ws/m-p/281306#M234436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;11:17:25,581 [ReflectionServiceFactoryBean] Could not unwrap Operation {&lt;/SPAN&gt;&lt;A href="http://docs.oasis-open.org/ns/cmis/ws/200908/}query" rel="nofollow noopener noreferrer"&gt;http://docs.oasis-open.org/ns/cmis/ws/200908/}query&lt;/A&gt;&lt;SPAN&gt; to match method "public abstract org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectListType org.apache.chemistry.opencmis.commons.impl.jaxb.DiscoveryServicePort.query(java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,org.apache.chemistry.opencmis.commons.impl.jaxb.EnumIncludeRelationships,java.lang.String,java.math.BigInteger,java.math.BigInteger,org.apache.chemistry.opencmis.commons.impl.jaxb.CmisExtensionType) throws org.apache.chemistry.opencmis.commons.impl.jaxb.CmisException"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It´s something related with the WRAPPED / BARE property. Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 09:34:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cant-excute-queries-open-cmis-ws/m-p/281306#M234436</guid>
      <dc:creator>andreshades</dc:creator>
      <dc:date>2015-06-01T09:34:06Z</dc:date>
    </item>
  </channel>
</rss>

