AnsweredAssumed Answered

Problem Loading files via Capture Bites Alfresco Connector

Question asked by cduncan on May 28, 2013
Hi,
     I am guru of nothing but I have a problem. I am using an Alfresco Community 4.2c system on a Ubuntu 12.04 LTS server. It all works pretty well. I am also using Kofax Express 3.1 to scan documents and export them to Alfresco using the Capture Bites connector - latest version.

My problem is this. On relatively small files the transfer to Alfresco goes just fine however on files of a little over 1 MB, the system fails to complete the batch import. I can move files by drag & drop or upload to Alfresco but I would like to get them all across using the Capture Bites connector.

Below is an extract from the log file and to me it looks as though the java calls doing the import are filling the buffers and tripping out.

I have tried making sure the JVM has enough memory - it has about 1 GB

I have tried making sure that there are enough file handles available - I think we have 4096 available to the Alfresco system

I have tried a few other things but so far no progress.

Any guidance would be appreciated.


2013-05-27 11:20:40,323  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-14] Exception from executeScript - redirecting to status template error: java.net.SocketTimeoutException
java.lang.RuntimeException: java.net.SocketTimeoutException
   at org.alfresco.repo.web.scripts.RepositoryContainer$BufferedRequest$1.getInputStream(RepositoryContainer.java:1075)
   at org.alfresco.repo.web.scripts.content.ContentSet.execute(ContentSet.java:175)
   at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:433)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Caused by: java.net.SocketTimeoutException
   at org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:607)
   at org.apache.coyote.http11.InternalAprInputBuffer$SocketInputBuffer.doRead(InternalAprInputBuffer.java:642)
   at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:124)
   at org.apache.coyote.http11.InternalAprInputBuffer.doRead(InternalAprInputBuffer.java:534)
   at org.apache.coyote.Request.doRead(Request.java:422)
   at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:290)
   at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:431)
   at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:315)
   at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:167)
   at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:112)
   at org.alfresco.repo.web.scripts.RepositoryContainer$BufferedRequest.getRequestBodyAsFile(RepositoryContainer.java:954)
   at org.alfresco.repo.web.scripts.RepositoryContainer$BufferedRequest.access$700(RepositoryContainer.java:934)
   at org.alfresco.repo.web.scripts.RepositoryContainer$BufferedRequest$1.getInputStream(RepositoryContainer.java:1071)
   … 29 more

Outcomes