Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-717

Alfresco Connector needs a new parameter for the Socket Timeout

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ManifoldCF 1.2
    • Fix Version/s: ManifoldCF 1.3
    • Component/s: Alfresco connector
    • Labels:
      None

      Description

      During the crawling process against an Alfresco repository could be useful in some cases to make some tuning of the Alfresco Web Services Client.

      The typical exception returned from the client is the following:

       WARN 2013-06-14 15:25:29,836 (Worker thread '34') - Alfresco: IOException closing file input stream: ; nested exception is: 
      	java.net.SocketTimeoutException: Read timed out
      AxisFault
       faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
       faultSubcode: 
       faultString: java.net.SocketTimeoutException: Read timed out
       faultActor: 
       faultNode: 
       faultDetail: 
      	{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException: Read timed out
      	at java.net.SocketInputStream.socketRead0(Native Method)
      	at java.net.SocketInputStream.read(SocketInputStream.java:150)
      	at java.net.SocketInputStream.read(SocketInputStream.java:121)
      	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
      	at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
      	at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
      	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
      	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
      	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
      	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
      	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
      	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
      	at org.apache.axis.client.Call.invoke(Call.java:2767)
      	at org.apache.axis.client.Call.invoke(Call.java:2443)
      	at org.apache.axis.client.Call.invoke(Call.java:2366)
      	at org.apache.axis.client.Call.invoke(Call.java:1812)
      	at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.queryChildren(RepositoryServiceSoapBindingStub.java:800)
      	at org.apache.manifoldcf.crawler.connectors.alfresco.ContentModelUtils.isFolder(ContentModelUtils.java:65)
      	at org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector.processDocuments(AlfrescoRepositoryConnector.java:839)
      	at org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.processDocuments(BaseRepositoryConnector.java:423)
      	at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:559)
      
      	{http://xml.apache.org/axis/}hostname:iPjNew.local
      
      java.net.SocketTimeoutException: Read timed out
      	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
      	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
      	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
      	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
      	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
      	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
      	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
      	at org.apache.axis.client.Call.invoke(Call.java:2767)
      	at org.apache.axis.client.Call.invoke(Call.java:2443)
      	at org.apache.axis.client.Call.invoke(Call.java:2366)
      	at org.apache.axis.client.Call.invoke(Call.java:1812)
      	at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.queryChildren(RepositoryServiceSoapBindingStub.java:800)
      	at org.apache.manifoldcf.crawler.connectors.alfresco.ContentModelUtils.isFolder(ContentModelUtils.java:65)
      	at org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector.processDocuments(AlfrescoRepositoryConnector.java:839)
      	at org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.processDocuments(BaseRepositoryConnector.java:423)
      	at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:559)
      Caused by: java.net.SocketTimeoutException: Read timed out
      	at java.net.SocketInputStream.socketRead0(Native Method)
      	at java.net.SocketInputStream.read(SocketInputStream.java:150)
      	at java.net.SocketInputStream.read(SocketInputStream.java:121)
      	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
      	at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
      	at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
      	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
      	... 14 more
      

        Attachments

          Activity

            People

            • Assignee:
              piergiorgiolucidi@gmail.com Piergiorgio Lucidi
              Reporter:
              piergiorgiolucidi@gmail.com Piergiorgio Lucidi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: