我正在尝试路由到Intranet网站来抓取内容。这是我的代码
from(DIRECT_INITIAL_CRAWL).setHeader(HTTP_METHOD, constant(GET))
.to(http4://test.com:443/?
authMethod=BASIC&authUsername=name&authPassword=pwd&authHost=test.com)
但我是,得到
org.apache.http.NoHttpResponseException: test.com:443没有回复。在 org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141) 在 org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) 在 org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) 在 org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) 在 org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165) 在 org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) 在 org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) 在 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) 在 org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) 在 org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) 在 org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) 在 org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) 在 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) 在 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) 在 org.apache.camel.component.http4.HttpProducer.executeMethod(HttpProducer.java:334) 在 org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:193) 在 org.apache.camel.util.AsyncProcessorConverterHelper $ ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) 在 org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) 在 org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) 在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) 在org.apache.camel.processor.Pipeline.process(Pipeline.java:138)at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) 在 org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) 在 org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) 在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) 在 org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:117) 在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) 在 org.apache.camel.processor.TryProcessor.process(TryProcessor.java:113) 在 org.apache.camel.processor.TryProcessor.process(TryProcessor.java:84) 在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) 在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) 在 org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) 在 org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) 在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) 在org.apache.camel.processor.Pipeline.process(Pipeline.java:138)at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:113) 在 org.apache.camel.processor.TryProcessor.process(TryProcessor.java:84) 在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) 在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) 在 org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) 在 org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:186) 在 org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:86) 在 org.apache.camel.impl.ProducerCache $ 1.doInProducer(ProducerCache.java:541) 在 org.apache.camel.impl.ProducerCache $ 1.doInProducer(ProducerCache.java:506) 在 org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:369) 在 org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:506) 在org.apache.camel.impl.ProducerCache.send(ProducerCache.java:229) 在 org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:144) 在 org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:161) 在 org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:168) 在 com.abnamro.ees.connections.crawler.main.ApplicationMain.main(ApplicationMain.java:82)
任何帮助将不胜感激