Apache Chemistry Nuxeo连接已重置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Apache Chemistry Nuxeo连接已重置相关的知识,希望对你有一定的参考价值。
我正在使用Apache Chemistry将某些资产发布到我的Nuxeo平台上,但观察到偶发性故障,但以下情况除外
org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot access "ELB_URI/nuxeo/json/cmis/default/root?objectId=9623887c-071c-4991-9033-d7a5ad6d71c1": Connection reset
at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invoke(DefaultHttpInvoker.java:232)
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.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:89)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:1158)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:88)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:471)
at com.capitalone.chariot.cmis.process.processFolder.copyDocument(processFolder.java:178)
at com.capitalone.chariot.cmis.process.processFolder.addFolderToQueue(processFolder.java:255)
at com.capitalone.chariot.cmis.process.processFolder.run(processFolder.java:69)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at sun.net.www.MeteredStream.read(MeteredStream.java:134)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.apache.chemistry.opencmis.commons.impl.IOUtils.copy(IOUtils.java:309)
at org.apache.chemistry.opencmis.client.bindings.spi.browser.FormDataWriter.write(FormDataWriter.java:285)
at org.apache.chemistry.opencmis.client.bindings.spi.browser.ObjectServiceImpl$1.write(ObjectServiceImpl.java:92)
at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invoke(DefaultHttpInvoker.java:203)
... 10 more
由于某种原因,与我的nuxeo平台的连接被重置。我已经配置了化学会议,如下所示:
cmisParams.put(SessionParameter.USER, getUser()); cmisParams.put(SessionParameter.PASSWORD, getPwd()); cmisParams.put(SessionParameter.BROWSER_URL, getHostURL()); cmisParams.put(SessionParameter.REPOSITORY_ID, getRepo()); cmisParams.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value()); cmisParams.put(SessionParameter.COMPRESSION, "true"); cmisParams.put(SessionParameter.CONNECT_TIMEOUT,"1200000"); cmisParams.put(SessionParameter.READ_TIMEOUT,"1200000"); List<Repository> repositories = sessionFactory.getRepositories(cmisParams); for (Repository repository : repositories) { if(repository.getId().equals(repo)){ log.info("Connecting to Repo::" + repository.getId()); session = repository.createSession(); isValidRepo = true; } }
注意超时值。
在Nuxeo平台上,我已配置为具有
nuxeo.server.http.connectionUploadTimeout = 1200000
有人可以告诉我如何在不进行任何零星重置的情况下保持与平台的持久连接吗?
提前感谢!
<< [您的组织已向Nuxeo支付了支持。您应该请求技术联系才能与Nuxeo一起获得支持票。
以上是关于Apache Chemistry Nuxeo连接已重置的主要内容,如果未能解决你的问题,请参考以下文章
Windows7环境下Apache连接MySQL提示“连接已重置”的解决办法
org.apache.catalina.connector.ClientAbortException: java.io.IOException: 你的主机中的软件中止了一个已建立的连接。
TelnetClient (Apache Commons Net 3.7.2 API) 已连接 solaris10 但无法加载 ~/.bash_profile