<?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 Connection issue with Cmis Client in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110504#M30896</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am receiving a strange issue related to accessing document versions using OpenCmis client.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the browser/atom pub BINDING type. Document upload works fine using either binding type.&lt;/P&gt;&lt;P&gt;But, when I am trying to upload new version thread stuck. Same behaviour also persists while reverting a version to the previous version.&lt;/P&gt;&lt;PRE&gt;Thread t@128
   java.lang.Thread.State: RUNNABLE
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:171)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
        - locked &amp;lt;1761a4b0&amp;gt; (a java.io.BufferedInputStream)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1593)
        - locked &amp;lt;dce3ba1&amp;gt; (a sun.net.www.protocol.http.HttpURLConnection)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
        - locked &amp;lt;dce3ba1&amp;gt; (a sun.net.www.protocol.http.HttpURLConnection)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invoke(DefaultHttpInvoker.java:211)
        at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invokePOST(DefaultHttpInvoker.java:68)
        at org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.post(AbstractBrowserBindingService.java:422)
        at org.apache.chemistry.opencmis.client.bindings.spi.browser.VersioningServiceImpl.checkIn(VersioningServiceImpl.java:128)
        at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.checkIn(DocumentImpl.java:347)
        at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.checkIn(DocumentImpl.java:650)&lt;/PRE&gt;</description>
    <pubDate>Thu, 27 Aug 2020 00:14:37 GMT</pubDate>
    <dc:creator>rohitbatta</dc:creator>
    <dc:date>2020-08-27T00:14:37Z</dc:date>
    <item>
      <title>Connection issue with Cmis Client</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110504#M30896</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am receiving a strange issue related to accessing document versions using OpenCmis client.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the browser/atom pub BINDING type. Document upload works fine using either binding type.&lt;/P&gt;&lt;P&gt;But, when I am trying to upload new version thread stuck. Same behaviour also persists while reverting a version to the previous version.&lt;/P&gt;&lt;PRE&gt;Thread t@128
   java.lang.Thread.State: RUNNABLE
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:171)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
        - locked &amp;lt;1761a4b0&amp;gt; (a java.io.BufferedInputStream)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1593)
        - locked &amp;lt;dce3ba1&amp;gt; (a sun.net.www.protocol.http.HttpURLConnection)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
        - locked &amp;lt;dce3ba1&amp;gt; (a sun.net.www.protocol.http.HttpURLConnection)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invoke(DefaultHttpInvoker.java:211)
        at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invokePOST(DefaultHttpInvoker.java:68)
        at org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.post(AbstractBrowserBindingService.java:422)
        at org.apache.chemistry.opencmis.client.bindings.spi.browser.VersioningServiceImpl.checkIn(VersioningServiceImpl.java:128)
        at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.checkIn(DocumentImpl.java:347)
        at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.checkIn(DocumentImpl.java:650)&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2020 00:14:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110504#M30896</guid>
      <dc:creator>rohitbatta</dc:creator>
      <dc:date>2020-08-27T00:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connection issue with Cmis Client</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110505#M30897</link>
      <description>&lt;P&gt;Without further information II 'm not sure what cause this erro ,about how to work with version using cmis api. You can&amp;nbsp;&lt;/P&gt;&lt;P&gt;refer to&amp;nbsp;&lt;A href="https://chemistry.apache.org/docs/cmis-samples/samples/versions/index.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://chemistry.apache.org/docs/cmis-samples/samples/versions/index.html&lt;/A&gt;\&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;A href="https://docs.alfresco.com/6.2/concepts/opencmis-ext-intro.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/opencmis-ext-intro.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Following is my test code ,it works fine&lt;/P&gt;&lt;PRE&gt;		Document document=(Document)session.getObject(objectId);
		
		ObjectId pwcId = document.checkOut();
		Document pwc = (Document)session.getObject(pwcId);
		
		String fileName = "ttt.pdf";
		File file = new File("d:\\" + fileName);
		InputStream fis = new FileInputStream(file);
		DataInputStream dis = new DataInputStream(fis);
		byte[] bytes = new byte[(int) file.length()];
		dis.readFully(bytes);
		String mimetype = detectMimetype(fileName, fis);
		ContentStream contentStream = new ContentStreamImpl(file.getAbsolutePath(),
				BigInteger.valueOf(bytes.length), mimetype, new ByteArrayInputStream(bytes));
		Map&amp;lt;String, Object&amp;gt; properties = new HashMap&amp;lt;String, Object&amp;gt;();
		pwc.checkIn(true, properties, contentStream, "test");&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2020 03:54:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110505#M30897</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-08-27T03:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connection issue with Cmis Client</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110506#M30898</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I am also doing same and it was working earlier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changes which I have done are in alfresco-global.properties file for thumbnail generation&lt;/P&gt;&lt;PRE&gt;system.thumbnail.generate=true

#Thumbnail generation for images
img.root=/usr/lib64/ImageMagick-7.0.7
img.coders=/usr/lib64/ImageMagick-7.0.7/modules-Q16HDRI/coders
img.config=/usr/lib64/ImageMagick-7.0.7/config-Q16HDRI
img.exe=/usr/bin/convert

#Thumbnail generation for pdf documents
alfresco-pdf-renderer.enabled=true
alfresco-pdf-renderer.root=/usr/bin/
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer

#Thumbnail generation for office documents (word, excel and etc.)
ooo.enabled=true
ooo.root=/opt/libreoffice5.4/program
ooo.exe=${ooo.root}/soffice
ooo.port=8100&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Does adding transform service to create thumbnails could impact response and impact time out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found following two configurations in CMIS session creation.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;org.apache.chemistry.opencmis.binding.connecttimeout	CONNECT_TIMEOUT	HTTP connect timeout	time in milliseconds	no	JVM default
org.apache.chemistry.opencmis.binding.readtimeout	READ_TIMEOUT	HTTP read timeout	time in milliseconds	no	JVM default&lt;/PRE&gt;&lt;P&gt;Do, I need to set timeout explicitly?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 09:45:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110506#M30898</guid>
      <dc:creator>rohitbatta</dc:creator>
      <dc:date>2020-08-27T09:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Connection issue with Cmis Client</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110507#M30899</link>
      <description>&lt;P&gt;I don't think it has any thing to do with these properties ,Which alfresco version are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 13:06:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110507#M30899</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-08-27T13:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Connection issue with Cmis Client</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110508#M30900</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using this version.&lt;/P&gt;&lt;PRE&gt;Edition: Community
Version Number: 6.1.1 (r9d03d2fd-b168)&lt;/PRE&gt;&lt;P&gt;Problem partially disappeared when I have disabled thumbnail and document renderer services mentioned above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is the threadDump stack.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#113 daemon prio=5 os_prio=0 tid=0x000000005b208800 nid=0x3ffc runnable [0x0000000102a4b000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
	at java.net.SocketInputStream.read(SocketInputStream.java:171)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
	- locked &amp;lt;0x0000000096bdd940&amp;gt; (a java.io.BufferedInputStream)
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1593)
	- locked &amp;lt;0x0000000096bdd9f0&amp;gt; (a sun.net.www.protocol.http.HttpURLConnection)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
	- locked &amp;lt;0x0000000096bdd9f0&amp;gt; (a sun.net.www.protocol.http.HttpURLConnection)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
	at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invoke(DefaultHttpInvoker.java:211)
	at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invokePOST(DefaultHttpInvoker.java:68)
	at org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.post(AbstractBrowserBindingService.java:422)
	at org.apache.chemistry.opencmis.client.bindings.spi.browser.VersioningServiceImpl.checkIn(VersioningServiceImpl.java:128)
..............
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:479)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
- locked &amp;lt;0x00000000969678b0&amp;gt; (a org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

Locked ownable synchronizers:
- &amp;lt;0x0000000095583f78&amp;gt; (a java.util.concurrent.ThreadPoolExecutor$Worker)&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2020 14:45:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110508#M30900</guid>
      <dc:creator>rohitbatta</dc:creator>
      <dc:date>2020-08-27T14:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connection issue with Cmis Client</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110509#M30901</link>
      <description>&lt;P&gt;After uploading a file alfresco will try to create a thumbnail for this document. From the thread dump it seems two threads try to get reentrant locks and gets stuck during creating thumbnail.&lt;BR /&gt;We don't have this problem in our version(Community - 6.2.0) ,it seems it is a bug of your version.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 02:21:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connection-issue-with-cmis-client/m-p/110509#M30901</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-08-28T02:21:09Z</dc:date>
    </item>
  </channel>
</rss>

