<?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 trouble with multiple-properties in OpenCMIS in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/trouble-with-multiple-properties-in-opencmis/m-p/299552#M252682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to set the Adressees for an email I'm importing to Alfresco 4.0.e using OpenCMIS (java).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm accumulating the multiple email addresses in an ArrayList&amp;lt;String&amp;gt;.&amp;nbsp; The only example I could find was by way of an old issue logged where the developer wasn't using the properties Map correctly in the first place (so the response was a little incomplete to solve my issue).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The recommendation in that case was to use Arrays.asList( ).&amp;nbsp; So that's what I used to set my ArrayList in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;emailProps.put("cm:addressees", Arrays.asList(addressees));&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This, unfortunately results in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;java.lang.IllegalArgumentException: Invalid aspect value!&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.cmis.client.impl.AlfrescoUtils.convertAspectPropertyValue(AlfrescoUtils.java:238)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.cmis.client.impl.AlfrescoUtils.createAspectPropertyExtension(AlfrescoUtils.java:205)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl.convertProperties(AlfrescoObjectFactoryImpl.java:212)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It occurs to me that maybe I'm "trying too hard".&amp;nbsp; Can I/Should I just pass the java ArrayList (which implements List interface)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;strong&amp;gt;BTW:&amp;lt;/strong&amp;gt; It would be really nice if Alfresco could point out the "offending" property and/or value.&amp;nbsp; Took me a while just to figure out where it was complaining! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for some tips.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-AJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 19:39:47 GMT</pubDate>
    <dc:creator>aweber1nj</dc:creator>
    <dc:date>2013-04-12T19:39:47Z</dc:date>
    <item>
      <title>trouble with multiple-properties in OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trouble-with-multiple-properties-in-opencmis/m-p/299552#M252682</link>
      <description>I'm trying to set the Adressees for an email I'm importing to Alfresco 4.0.e using OpenCMIS (java).I'm accumulating the multiple email addresses in an ArrayList&amp;lt;String&amp;gt;.&amp;nbsp; The only example I could find was by way of an old issue logged where the developer wasn't using the properties Map correct</description>
      <pubDate>Fri, 12 Apr 2013 19:39:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trouble-with-multiple-properties-in-opencmis/m-p/299552#M252682</guid>
      <dc:creator>aweber1nj</dc:creator>
      <dc:date>2013-04-12T19:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: trouble with multiple-properties in OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trouble-with-multiple-properties-in-opencmis/m-p/299553#M252683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I answered my own question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;YES: You can just pass the ArrayList&amp;lt;String&amp;gt; directly as the value for the property in the Map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this will help someone else down-the-road.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-AJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 19:58:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trouble-with-multiple-properties-in-opencmis/m-p/299553#M252683</guid>
      <dc:creator>aweber1nj</dc:creator>
      <dc:date>2013-04-12T19:58:38Z</dc:date>
    </item>
  </channel>
</rss>

