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 Mon, 20 Oct 2014 22:48:34 GMT

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

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

Indeed it was; I fixed this, along with an expected 200 return that should have been a 201.
 But now I get this:

{code}

    [junit] [Startup thread] WARN org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClient
- Failed to fetch nodes.
    [junit] 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
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)
    [junit]     at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
    [junit]     at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
    [junit]     at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
    [junit]     at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
    [junit]     at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClient.getDocumentsActions(WebScriptsAlfrescoClient.java:118)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClient.fetchNodes(WebScriptsAlfrescoClient.java:103)
    [junit]     at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.AlfrescoConnector.addSeedDocuments(AlfrescoConnector.java:159)
    [junit]     at org.apache.manifoldcf.crawler.system.StartupThread.run(Startu
pThread.java:153)
    [junit] Caused by: java.net.ConnectException: Connection refused: connect
    [junit]     at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    [junit]     at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlai
nSocketImpl.java:79)
    [junit]     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocke
tImpl.java:339)
    [junit]     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPla
inSocketImpl.java:200)
    [junit]     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketI
mpl.java:182)
    [junit]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    [junit]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    [junit]     at java.net.Socket.connect(Socket.java:579)
    [junit]     at org.apache.http.conn.socket.PlainConnectionSocketFactory.conn
ectSocket(PlainConnectionSocketFactory.java:72)
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:123)
    [junit]     ... 13 more
    [junit] [Startup thread] WARN org.alfresco.consulting.indexer.client.WebScri
ptsAlfrescoClient - Failed to fetch nodes.
    [junit] 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
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:140)
    [junit]     at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.
connect(PoolingHttpClientConnectionManager.java:318)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.establishRoute(
MainClientExec.java:363)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.execute(MainCli
entExec.java:219)
    [junit]     at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolE
xec.java:195)
    [junit]     at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.ja
va:86)
    [junit]     at org.apache.http.impl.execchain.RedirectExec.execute(RedirectE
xec.java:108)
    [junit]     at org.apache.http.impl.client.InternalHttpClient.doExecute(Inte
rnalHttpClient.java:184)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:82)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:106)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClie
nt.getDocumentsActions(WebScriptsAlfrescoClient.java:118)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClie
nt.fetchNodes(WebScriptsAlfrescoClient.java:103)
    [junit]     at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Al
frescoConnector.addSeedDocuments(AlfrescoConnector.java:159)
    [junit]     at org.apache.manifoldcf.crawler.system.StartupThread.run(Startu
pThread.java:153)
    [junit] Caused by: java.net.ConnectException: Connection refused: connect
    [junit]     at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    [junit]     at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlai
nSocketImpl.java:79)
    [junit]     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocke
tImpl.java:339)
    [junit]     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPla
inSocketImpl.java:200)
    [junit]     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketI
mpl.java:182)
    [junit]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    [junit]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    [junit]     at java.net.Socket.connect(Socket.java:579)
    [junit]     at org.apache.http.conn.socket.PlainConnectionSocketFactory.conn
ectSocket(PlainConnectionSocketFactory.java:72)
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:123)
    [junit]     ... 13 more
    [junit] [Startup thread] WARN org.alfresco.consulting.indexer.client.WebScri
ptsAlfrescoClient - Failed to fetch nodes.
    [junit] 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
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:140)
    [junit]     at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.
connect(PoolingHttpClientConnectionManager.java:318)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.establishRoute(
MainClientExec.java:363)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.execute(MainCli
entExec.java:219)
    [junit]     at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolE
xec.java:195)
    [junit]     at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.ja
va:86)
    [junit]     at org.apache.http.impl.execchain.RedirectExec.execute(RedirectE
xec.java:108)
    [junit]     at org.apache.http.impl.client.InternalHttpClient.doExecute(Inte
rnalHttpClient.java:184)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:82)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:106)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClie
nt.getDocumentsActions(WebScriptsAlfrescoClient.java:118)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClie
nt.fetchNodes(WebScriptsAlfrescoClient.java:103)
    [junit]     at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Al
frescoConnector.addSeedDocuments(AlfrescoConnector.java:159)
    [junit]     at org.apache.manifoldcf.crawler.system.StartupThread.run(Startu
pThread.java:153)
    [junit] Caused by: java.net.ConnectException: Connection refused: connect
    [junit]     at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    [junit]     at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlai
nSocketImpl.java:79)
    [junit]     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocke
tImpl.java:339)
    [junit]     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPla
inSocketImpl.java:200)
    [junit]     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketI
mpl.java:182)
    [junit]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    [junit]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    [junit]     at java.net.Socket.connect(Socket.java:579)
    [junit]     at org.apache.http.conn.socket.PlainConnectionSocketFactory.conn
ectSocket(PlainConnectionSocketFactory.java:72)
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:123)
    [junit]     ... 13 more
    [junit] [Startup thread] WARN org.alfresco.consulting.indexer.client.WebScri
ptsAlfrescoClient - Failed to fetch nodes.
    [junit] 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
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:140)
    [junit]     at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.
connect(PoolingHttpClientConnectionManager.java:318)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.establishRoute(
MainClientExec.java:363)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.execute(MainCli
entExec.java:219)
    [junit]     at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolE
xec.java:195)
    [junit]     at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.ja
va:86)
    [junit]     at org.apache.http.impl.execchain.RedirectExec.execute(RedirectE
xec.java:108)
    [junit]     at org.apache.http.impl.client.InternalHttpClient.doExecute(Inte
rnalHttpClient.java:184)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:82)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:106)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClie
nt.getDocumentsActions(WebScriptsAlfrescoClient.java:118)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClie
nt.fetchNodes(WebScriptsAlfrescoClient.java:103)
    [junit]     at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Al
frescoConnector.addSeedDocuments(AlfrescoConnector.java:159)
    [junit]     at org.apache.manifoldcf.crawler.system.StartupThread.run(Startu
pThread.java:153)
    [junit] Caused by: java.net.ConnectException: Connection refused: connect
    [junit]     at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    [junit]     at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlai
nSocketImpl.java:79)
    [junit]     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocke
tImpl.java:339)
    [junit]     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPla
inSocketImpl.java:200)
    [junit]     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketI
mpl.java:182)
    [junit]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    [junit]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    [junit]     at java.net.Socket.connect(Socket.java:579)
    [junit]     at org.apache.http.conn.socket.PlainConnectionSocketFactory.conn
ectSocket(PlainConnectionSocketFactory.java:72)
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:123)
    [junit]     ... 13 more
    [junit] [Startup thread] WARN org.alfresco.consulting.indexer.client.WebScri
ptsAlfrescoClient - Failed to fetch nodes.
    [junit] 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
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:140)
    [junit]     at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.
connect(PoolingHttpClientConnectionManager.java:318)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.establishRoute(
MainClientExec.java:363)
    [junit]     at org.apache.http.impl.execchain.MainClientExec.execute(MainCli
entExec.java:219)
    [junit]     at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolE
xec.java:195)
    [junit]     at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.ja
va:86)
    [junit]     at org.apache.http.impl.execchain.RedirectExec.execute(RedirectE
xec.java:108)
    [junit]     at org.apache.http.impl.client.InternalHttpClient.doExecute(Inte
rnalHttpClient.java:184)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:82)
    [junit]     at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:106)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClie
nt.getDocumentsActions(WebScriptsAlfrescoClient.java:118)
    [junit]     at org.alfresco.consulting.indexer.client.WebScriptsAlfrescoClie
nt.fetchNodes(WebScriptsAlfrescoClient.java:103)
    [junit]     at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Al
frescoConnector.addSeedDocuments(AlfrescoConnector.java:159)
    [junit]     at org.apache.manifoldcf.crawler.system.StartupThread.run(Startu
pThread.java:153)
    [junit] Caused by: java.net.ConnectException: Connection refused: connect
    [junit]     at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    [junit]     at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlai
nSocketImpl.java:79)
    [junit]     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocke
tImpl.java:339)
    [junit]     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPla
inSocketImpl.java:200)
    [junit]     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketI
mpl.java:182)
    [junit]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    [junit]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    [junit]     at java.net.Socket.connect(Socket.java:579)
    [junit]     at org.apache.http.conn.socket.PlainConnectionSocketFactory.conn
ectSocket(PlainConnectionSocketFactory.java:72)
    [junit]     at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:123)
    [junit]     ... 13 more
{code}

Looks like the port isn't getting set right in the connection; either that, or the connector
itself is not using the port correctly.  Looking into it now.

> 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