manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONNECTORS-1060) Write IT test for Alfresco webscript connector
Date Fri, 24 Oct 2014 15:27:34 GMT

    [ https://issues.apache.org/jira/browse/CONNECTORS-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14182933#comment-14182933
] 

Karl Wright commented on CONNECTORS-1060:
-----------------------------------------

Increasing the timeout yields the following:

{code}
    [junit] [Worker thread '5'] WARN org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClient
- The key last_txn_id is missing from document: {"docs":[{"
name":"folder.get.desc.xml","propertiesUrl":"http://localhost:8080/alfresco/service/node/details/workspace/SpacesStore/5eeae7b8-5481-4436-88d5-0e2beb6b4300","uuid":"5eeae7b8-5481-4436-88d5-0e2beb6b4300","nodeRef":"workspace://SpacesStore/5eeae7b8-5481-4436-88d5-0e2beb6b4300","type":"cm:content","deleted":false}],"store_id":"SpacesStore","store_protocol":"workspace"}
    [junit] [Worker thread '5'] WARN org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClient
- The key last_acl_changeset_id is missing from document: {
"docs":[{"name":"folder.get.desc.xml","propertiesUrl":"http://localhost:8080/alfresco/service/node/details/workspace/SpacesStore/5eeae7b8-5481-4436-88d5-0e2beb6
b4300","uuid":"5eeae7b8-5481-4436-88d5-0e2beb6b4300","nodeRef":"workspace://Spac
esStore/5eeae7b8-5481-4436-88d5-0e2beb6b4300","type":"cm:content","deleted":false}],"store_id":"SpacesStore","store_protocol":"workspace"}
{code}

... and then it spins until the timeout expires.

The log has the following:

{code}
 WARN 2014-10-24 11:23:18,416 (Worker thread '5') - Server appears down during processing:
Alfresco appears to be down
org.alfresco.consulting.indexer.client.AlfrescoDownException: Alfresco appears to be down
	at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClient.fetchContent(WebScriptsAlfrescoClient.java:423)
	at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.AlfrescoConnector.processDocuments(AlfrescoConnector.java:339)
	at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:376)
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1,
localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
	at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
	at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClient.fetchContent(WebScriptsAlfrescoClient.java:419)
	... 2 more
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.DualStackPlainSocketImpl.connect0(Native Method)
	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
	at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)
	... 12 more
{code}

... so clearly either it's still not reliably connecting, or the Alfresco server isn't entirely
up yet when the test starts.



> Write IT test for Alfresco webscript connector
> ----------------------------------------------
>
>                 Key: CONNECTORS-1060
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1060
>             Project: ManifoldCF
>          Issue Type: Task
>          Components: Alfresco webscript connector
>    Affects Versions: ManifoldCF 2.0
>            Reporter: Karl Wright
>            Assignee: Maurizio Pillitu
>             Fix For: ManifoldCF 2.0
>
>
> The only thing really needed for this work to begin is to include the indexer 0.6.2 plugin
in the Alfresco war that is built under test-materials.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message