You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Dragisa Krsmanovic (JIRA)" <ji...@apache.org> on 2009/09/15 20:30:12 UTC
[jira] Created: (CAMEL-2017) Connection reset in http component
Connection reset in http component
----------------------------------
Key: CAMEL-2017
URL: https://issues.apache.org/activemq/browse/CAMEL-2017
Project: Apache Camel
Issue Type: Bug
Components: camel-http
Affects Versions: 2.0.0
Environment: Camel 2.0.0, Ubuntu Linux, Sun JDK 1.6.0_16 (32bit)
Reporter: Dragisa Krsmanovic
This simple example will fail in http component with I/O Exception.
Worked in 2.0-M3 but fails in 2.0.0
{code:java}
Namespaces ns = new Namespaces("atom", "http://www.w3.org/2005/Atom");
from("rss:http://www.plosone.org/article/feed")
.marshal().rss()
.setHeader(Exchange.HTTP_URI).xpath("//atom:entry/atom:link[@type=\"application/pdf\"]/@href", ns)
.to("http://foo")
.to("mock:end");
{code}
Here is debug output:
{noformat}
Camel thread 0: RssComponent] HttpProducer DEBUG No
Content-Type provided for URI:
http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF with exchange: Exchange[Message: [B@150ecc7]
[ Camel thread 0: RssComponent] HttpProducer
DEBUG Executing http POST method:
http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF
[ Camel thread 0: RssComponent] HttpMethodDirector
INFO I/O exception (java.net.SocketException) caught when processing
request: Connection reset
[ Camel thread 0: RssComponent] HttpMethodDirector
INFO Retrying request
[ Camel thread 0: RssComponent] HttpMethodDirector
INFO I/O exception (java.net.SocketException) caught when processing
request: Connection reset
[ Camel thread 0: RssComponent] HttpMethodDirector
INFO Retrying request
[ Camel thread 0: RssComponent] HttpMethodDirector
INFO I/O exception (java.net.SocketException) caught when processing
request: Connection reset
[ Camel thread 0: RssComponent] HttpMethodDirector
INFO Retrying request
[ Camel thread 0: RssComponent] DefaultErrorHandler
DEBUG Failed delivery for exchangeId:
ID-dkrsmanovic-usws-55084-1252968147202-0-1. On delivery attempt: 0
caught: java.net.SocketException: Connection reset
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2017) Connection reset in http component
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54364#action_54364 ]
Claus Ibsen commented on CAMEL-2017:
------------------------------------
Can you try with Camel trunk?
And the error you see with 2.0 could be some remote server issue at plosone. Can you try again.
> Connection reset in http component
> ----------------------------------
>
> Key: CAMEL-2017
> URL: https://issues.apache.org/activemq/browse/CAMEL-2017
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http
> Affects Versions: 2.0.0
> Environment: Camel 2.0.0, Ubuntu Linux, Sun JDK 1.6.0_16 (32bit)
> Reporter: Dragisa Krsmanovic
>
> This simple example will fail in http component with I/O Exception.
> Worked in 2.0-M3 but fails in 2.0.0
> {code:java}
> Namespaces ns = new Namespaces("atom", "http://www.w3.org/2005/Atom");
> from("rss:http://www.plosone.org/article/feed")
> .marshal().rss()
> .setHeader(Exchange.HTTP_URI).xpath("//atom:entry/atom:link[@type=\"application/pdf\"]/@href", ns)
> .to("http://foo")
> .to("mock:end");
> {code}
> Here is debug output:
> {noformat}
> Camel thread 0: RssComponent] HttpProducer DEBUG No
> Content-Type provided for URI:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF with exchange: Exchange[Message: [B@150ecc7]
> [ Camel thread 0: RssComponent] HttpProducer
> DEBUG Executing http POST method:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] DefaultErrorHandler
> DEBUG Failed delivery for exchangeId:
> ID-dkrsmanovic-usws-55084-1252968147202-0-1. On delivery attempt: 0
> caught: java.net.SocketException: Connection reset
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-2017) Connection reset in http component
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-2017.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
Assignee: Claus Ibsen
Thanks for testing on trunk
> Connection reset in http component
> ----------------------------------
>
> Key: CAMEL-2017
> URL: https://issues.apache.org/activemq/browse/CAMEL-2017
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http
> Affects Versions: 2.0.0
> Environment: Camel 2.0.0, Ubuntu Linux, Sun JDK 1.6.0_16 (32bit)
> Reporter: Dragisa Krsmanovic
> Assignee: Claus Ibsen
> Fix For: 2.1.0
>
>
> This simple example will fail in http component with I/O Exception.
> Worked in 2.0-M3 but fails in 2.0.0
> {code:java}
> Namespaces ns = new Namespaces("atom", "http://www.w3.org/2005/Atom");
> from("rss:http://www.plosone.org/article/feed")
> .marshal().rss()
> .setHeader(Exchange.HTTP_URI).xpath("//atom:entry/atom:link[@type=\"application/pdf\"]/@href", ns)
> .to("http://foo")
> .to("mock:end");
> {code}
> Here is debug output:
> {noformat}
> Camel thread 0: RssComponent] HttpProducer DEBUG No
> Content-Type provided for URI:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF with exchange: Exchange[Message: [B@150ecc7]
> [ Camel thread 0: RssComponent] HttpProducer
> DEBUG Executing http POST method:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] DefaultErrorHandler
> DEBUG Failed delivery for exchangeId:
> ID-dkrsmanovic-usws-55084-1252968147202-0-1. On delivery attempt: 0
> caught: java.net.SocketException: Connection reset
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2017) Connection reset in http component
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54365#action_54365 ]
Claus Ibsen commented on CAMEL-2017:
------------------------------------
Added unit test, trunk: 817002.
> Connection reset in http component
> ----------------------------------
>
> Key: CAMEL-2017
> URL: https://issues.apache.org/activemq/browse/CAMEL-2017
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http
> Affects Versions: 2.0.0
> Environment: Camel 2.0.0, Ubuntu Linux, Sun JDK 1.6.0_16 (32bit)
> Reporter: Dragisa Krsmanovic
>
> This simple example will fail in http component with I/O Exception.
> Worked in 2.0-M3 but fails in 2.0.0
> {code:java}
> Namespaces ns = new Namespaces("atom", "http://www.w3.org/2005/Atom");
> from("rss:http://www.plosone.org/article/feed")
> .marshal().rss()
> .setHeader(Exchange.HTTP_URI).xpath("//atom:entry/atom:link[@type=\"application/pdf\"]/@href", ns)
> .to("http://foo")
> .to("mock:end");
> {code}
> Here is debug output:
> {noformat}
> Camel thread 0: RssComponent] HttpProducer DEBUG No
> Content-Type provided for URI:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF with exchange: Exchange[Message: [B@150ecc7]
> [ Camel thread 0: RssComponent] HttpProducer
> DEBUG Executing http POST method:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] DefaultErrorHandler
> DEBUG Failed delivery for exchangeId:
> ID-dkrsmanovic-usws-55084-1252968147202-0-1. On delivery attempt: 0
> caught: java.net.SocketException: Connection reset
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2017) Connection reset in http component
Posted by "Dragisa Krsmanovic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54407#action_54407 ]
Dragisa Krsmanovic commented on CAMEL-2017:
-------------------------------------------
Test is working in latest 2.1-SNAPSHOT (Rev 817336)
> Connection reset in http component
> ----------------------------------
>
> Key: CAMEL-2017
> URL: https://issues.apache.org/activemq/browse/CAMEL-2017
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http
> Affects Versions: 2.0.0
> Environment: Camel 2.0.0, Ubuntu Linux, Sun JDK 1.6.0_16 (32bit)
> Reporter: Dragisa Krsmanovic
>
> This simple example will fail in http component with I/O Exception.
> Worked in 2.0-M3 but fails in 2.0.0
> {code:java}
> Namespaces ns = new Namespaces("atom", "http://www.w3.org/2005/Atom");
> from("rss:http://www.plosone.org/article/feed")
> .marshal().rss()
> .setHeader(Exchange.HTTP_URI).xpath("//atom:entry/atom:link[@type=\"application/pdf\"]/@href", ns)
> .to("http://foo")
> .to("mock:end");
> {code}
> Here is debug output:
> {noformat}
> Camel thread 0: RssComponent] HttpProducer DEBUG No
> Content-Type provided for URI:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF with exchange: Exchange[Message: [B@150ecc7]
> [ Camel thread 0: RssComponent] HttpProducer
> DEBUG Executing http POST method:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] DefaultErrorHandler
> DEBUG Failed delivery for exchangeId:
> ID-dkrsmanovic-usws-55084-1252968147202-0-1. On delivery attempt: 0
> caught: java.net.SocketException: Connection reset
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2017) Connection reset in http component
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54363#action_54363 ]
Claus Ibsen commented on CAMEL-2017:
------------------------------------
Works fine on trunk
{code}
public class RssToHttpIssueTest extends CamelTestSupport {
@Test
public void testRssToHttpIssueTest() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:end");
mock.expectedMinimumMessageCount(1);
assertMockEndpointsSatisfied();
}
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
Namespaces ns = new Namespaces("atom", "http://www.w3.org/2005/Atom");
from("rss:http://www.plosone.org/article/feed")
.marshal().rss()
.setHeader(Exchange.HTTP_URI).xpath("//atom:entry/atom:link[@type=\"application/pdf\"]/@href", ns)
.to("http://dummy")
.to("mock:end");
}
};
}
}
{code}
> Connection reset in http component
> ----------------------------------
>
> Key: CAMEL-2017
> URL: https://issues.apache.org/activemq/browse/CAMEL-2017
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http
> Affects Versions: 2.0.0
> Environment: Camel 2.0.0, Ubuntu Linux, Sun JDK 1.6.0_16 (32bit)
> Reporter: Dragisa Krsmanovic
>
> This simple example will fail in http component with I/O Exception.
> Worked in 2.0-M3 but fails in 2.0.0
> {code:java}
> Namespaces ns = new Namespaces("atom", "http://www.w3.org/2005/Atom");
> from("rss:http://www.plosone.org/article/feed")
> .marshal().rss()
> .setHeader(Exchange.HTTP_URI).xpath("//atom:entry/atom:link[@type=\"application/pdf\"]/@href", ns)
> .to("http://foo")
> .to("mock:end");
> {code}
> Here is debug output:
> {noformat}
> Camel thread 0: RssComponent] HttpProducer DEBUG No
> Content-Type provided for URI:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF with exchange: Exchange[Message: [B@150ecc7]
> [ Camel thread 0: RssComponent] HttpProducer
> DEBUG Executing http POST method:
> http://www.plosone.org/article/fetchObjectAttachment.action?uri=info:doi/10.1371/journal.pone.0006932&representation=PDF
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO I/O exception (java.net.SocketException) caught when processing
> request: Connection reset
> [ Camel thread 0: RssComponent] HttpMethodDirector
> INFO Retrying request
> [ Camel thread 0: RssComponent] DefaultErrorHandler
> DEBUG Failed delivery for exchangeId:
> ID-dkrsmanovic-usws-55084-1252968147202-0-1. On delivery attempt: 0
> caught: java.net.SocketException: Connection reset
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.