<?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 Re: Property is read-only! in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231599#M184729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to checkout the document and then to do checkin:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Document checkout = (Document)session.getObject(document.checkOut());&lt;BR /&gt;checkout.checkIn(true, parameter, contentStream, comment, null, null, null);&lt;SPAN class="line-numbers-rows"&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;SPAN&gt;I get this exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Error Interno del Servidor&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:411)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:515)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.bindings.spi.atompub.VersioningServiceImpl.checkIn(VersioningServiceImpl.java:164)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.runtime.PersistentDocumentImpl.checkIn(PersistentDocumentImpl.java:188)&lt;BR /&gt;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried by using the VersioningService but I get the same error. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 May 2010 07:24:18 GMT</pubDate>
    <dc:creator>newhere</dc:creator>
    <dc:date>2010-05-25T07:24:18Z</dc:date>
    <item>
      <title>Property is read-only!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231597#M184727</link>
      <description>I'm using OpenCmis to create folders and documents. I create a document and versions of this document but I can't update any properties like 'description', 'title' or 'comment'. When I update commentary: session.getObject(docId).setProperty(PropertyIds.CHECKIN_COMMENT, "my commentary");‍I get this e</description>
      <pubDate>Mon, 24 May 2010 07:53:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231597#M184727</guid>
      <dc:creator>newhere</dc:creator>
      <dc:date>2010-05-24T07:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Property is read-only!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231598#M184728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The CMIS specification defines that the property cmis:checkinComment is read-only. It can only be set during a check-in. (There is a parameter in Document.checkIn().)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the enum Updatability in the property definition to find out if a property can be updated or not.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 16:27:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231598#M184728</guid>
      <dc:creator>fmui</dc:creator>
      <dc:date>2010-05-24T16:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Property is read-only!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231599#M184729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to checkout the document and then to do checkin:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Document checkout = (Document)session.getObject(document.checkOut());&lt;BR /&gt;checkout.checkIn(true, parameter, contentStream, comment, null, null, null);&lt;SPAN class="line-numbers-rows"&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;SPAN&gt;I get this exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Error Interno del Servidor&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:411)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:515)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.bindings.spi.atompub.VersioningServiceImpl.checkIn(VersioningServiceImpl.java:164)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.runtime.PersistentDocumentImpl.checkIn(PersistentDocumentImpl.java:188)&lt;BR /&gt;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried by using the VersioningService but I get the same error. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 07:24:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231599#M184729</guid>
      <dc:creator>newhere</dc:creator>
      <dc:date>2010-05-25T07:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Property is read-only!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231600#M184730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use tcpmon to get the detailed exception. (&lt;/SPAN&gt;&lt;A href="https://tcpmon.dev.java.net/" rel="nofollow noopener noreferrer"&gt;https://tcpmon.dev.java.net/&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use port 8080, change the port of the service url in java for example to 8888 and add a listener in tcpmon, which listens on 8888 and has an out going to port 8080.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will get a detailed message not only RuntimeException and the http error code..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards, gclaussn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 07:35:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231600#M184730</guid>
      <dc:creator>gclaussn</dc:creator>
      <dc:date>2010-05-25T07:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Property is read-only!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231601#M184731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks gclaussn, I've tried and I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Web Script Status 500 - Internal Error&lt;BR /&gt;The Web Script &amp;lt;a href="%2Falfresco%2Fservice%2Fcmis%2Fpwc%2Fs%2Fworkspace%3ASpacesStore%2Fi%2Fe6fc6d97-337f-4082-9699-693df24310f9%3FcheckinComment%3Dprimera%2Bversion!%26major%3Dtrue%26checkin%3Dtrue"&amp;gt;/alfresco/service/cmis/pwc/s/workspace:SpacesStore/i/e6fc6d97-337f-4082-9699-693df24310f9&amp;lt;/a&amp;gt; has responded with a status of 500 - Internal Error&lt;BR /&gt;An error inside the HTTP server which prevented it from fulfilling the request.&lt;BR /&gt;04250018 Wrapped Exception (with status template): 04250021 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/cmis/pwc.put.atom.js': Duplicate child name not allowed: nuevoDocumento&lt;BR /&gt;org.alfresco.service.cmr.repository.DuplicateChildNodeNameException - Duplicate child name not allowed: nuevoDocumento&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I see my problem is that the document is duplicated, it's not updating the pwc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I supposed that the process to upload a document was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1º checkout the document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2º get the objectId of the pwc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3º checkin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 08:24:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231601#M184731</guid>
      <dc:creator>newhere</dc:creator>
      <dc:date>2010-05-25T08:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Property is read-only!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231602#M184732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I get the error. I was putting in the properties the same name of document. Now it works ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But, I have another doubt: it's not possible to make an upload to the document and to have the same name? I mean, I upload just a version, I don't want to modify "general" properties of the document such as name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 08:31:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231602#M184732</guid>
      <dc:creator>newhere</dc:creator>
      <dc:date>2010-05-25T08:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Property is read-only!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231603#M184733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I suppose they've to have different names because they're different nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gclaussn, tcpmon was really useful to me, thanks a lot!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 08:44:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231603#M184733</guid>
      <dc:creator>newhere</dc:creator>
      <dc:date>2010-05-25T08:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Property is read-only!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231604#M184734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I managed versioning so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i used the checkin method of the versioning service with the id of the old document (which shall get a new version)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Holder&amp;lt;String&amp;gt; idHolder = new Holder&amp;lt;String&amp;gt;("documentId");&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;Also i create a new PropertyData object, containing my new properties (for example new document name) and a new ContentStreamData object, or a use the old one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then i invoke the method with all parameters, and get the new version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Got the problem that the checkin comment is not set, but i can life with that.&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think there are other solutions, maybe better ones. So its just a suggestion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 09:03:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-is-read-only/m-p/231604#M184734</guid>
      <dc:creator>gclaussn</dc:creator>
      <dc:date>2010-05-25T09:03:54Z</dc:date>
    </item>
  </channel>
</rss>

