<?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 Not able to add aspect in CMIS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/not-able-to-add-aspect-in-cmis/m-p/48105#M18812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;I am going to update aspect but it is giving internal server error for this?&lt;/P&gt;&lt;P&gt;here is code that is going to update the aspect&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private static void customAspectAdd(AlfrescoDocument alfDocFromDocumentByPath, String aspect) {&lt;BR /&gt;if (!alfDocFromDocumentByPath.hasAspect(aspect)) {&lt;/P&gt;&lt;P&gt;Map&amp;lt;String, GregorianCalendar&amp;gt; mapOfAspect = new HashMap&amp;lt;String, GregorianCalendar&amp;gt;();&lt;BR /&gt;mapOfAspect.put(aspect, null);&lt;BR /&gt;&lt;STRONG&gt;alfDocFromDocumentByPath.addAspect(aspect);&lt;/STRONG&gt;&lt;BR /&gt;System.out.println(" ##############----Alfresco document Updated for aspect -----------########### : "&lt;BR /&gt;+ aspect + " : Document Name : " + alfDocFromDocumentByPath.getName() + "Document Path :"&lt;BR /&gt;+ alfDocFromDocumentByPath.getPaths().get(0));&lt;BR /&gt;numOfDocUpdatedForAspect++;&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;System.out.println(" Aspect is already present: " + aspect + " : Document Path :"&lt;BR /&gt;+ alfDocFromDocumentByPath.getPaths().get(0));&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the exception I am getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception in file :to_collectkeys_apinputgen_adela.bpmn :Not able to update aspect at path : /Sites/vikas/vikasdocument/Itineraries/to_collectkeys_apinputgen_adela.bpmn :: Internal Server Error&lt;BR /&gt;org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Internal Server Error&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:452)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:595)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:581)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.updateProperties(ObjectServiceImpl.java:307)&lt;BR /&gt;at org.alfresco.cmis.client.impl.AlfrescoUtils.updateAspects(AlfrescoUtils.java:432)&lt;BR /&gt;at org.alfresco.cmis.client.impl.AlfrescoAspectsImpl.addAspect(AlfrescoAspectsImpl.java:104)&lt;BR /&gt;at org.alfresco.cmis.client.impl.AlfrescoAspectsImpl.addAspect(AlfrescoAspectsImpl.java:96)&lt;BR /&gt;at org.alfresco.cmis.client.impl.AlfrescoDocumentImpl.addAspect(AlfrescoDocumentImpl.java:126)&lt;BR /&gt;at com.gl.main.CorrectAspectLessFileNewComputeZone.customAspectAdd(CorrectAspectLessFileNewComputeZone.java:94)&lt;BR /&gt;at com.gl.main.CorrectAspectLessFileNewComputeZone.main(CorrectAspectLessFileNewComputeZone.java:74)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;JeffEarley _&lt;/B&gt;‌&lt;B&gt;Angel Borroy&lt;/B&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2018 07:56:00 GMT</pubDate>
    <dc:creator>vikasbhardwaj</dc:creator>
    <dc:date>2018-10-08T07:56:00Z</dc:date>
    <item>
      <title>Not able to add aspect in CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/not-able-to-add-aspect-in-cmis/m-p/48105#M18812</link>
      <description>HI all,I am going to update aspect but it is giving internal server error for this?here is code that is going to update the aspect&amp;nbsp;private static void customAspectAdd(AlfrescoDocument alfDocFromDocumentByPath, String aspect) {if (!alfDocFromDocumentByPath.hasAspect(aspect)) {Map&amp;lt;String, Gregorian</description>
      <pubDate>Mon, 08 Oct 2018 07:56:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/not-able-to-add-aspect-in-cmis/m-p/48105#M18812</guid>
      <dc:creator>vikasbhardwaj</dc:creator>
      <dc:date>2018-10-08T07:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to add aspect in CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/not-able-to-add-aspect-in-cmis/m-p/48106#M18813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of Alfresco are you using? Newer versions of Alfresco do not use the OpenCMIS Extension, which is where I think you found the org.alfresco.cmis.client.impl.AlfrescoDocumentImpl class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct way to add aspects via CMIS is to add the aspect ID to the cmis:secondaryObjectTypeIds property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 20:04:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/not-able-to-add-aspect-in-cmis/m-p/48106#M18813</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-10-10T20:04:51Z</dc:date>
    </item>
  </channel>
</rss>

