You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Marco Crivellaro (JIRA)" <ji...@apache.org> on 2011/03/21 19:49:06 UTC
[jira] [Created] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
-----------------------------------------------------------------------------
Key: CAMEL-3795
URL: https://issues.apache.org/jira/browse/CAMEL-3795
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.7.0
Reporter: Marco Crivellaro
Priority: Critical
in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated CAMEL-3795:
-------------------------------
Fix Version/s: 2.7.3
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.7.3, 2.8.0
>
> Attachments: InterceptSendToEndpointException.java, InterceptSendToEndpointExecutionException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012568#comment-13012568 ]
Claus Ibsen commented on CAMEL-3795:
------------------------------------
Can you attach the unit test which fails for you.
The attached test case works just fine! In fact it doesn't use any thread pool at all.
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-3795.
--------------------------------
Resolution: Fixed
It should be fixed now
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java, InterceptSendToEndpointExecutionException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reopened CAMEL-3795:
--------------------------------
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java, InterceptSendToEndpointExecutionException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-3795.
--------------------------------
Resolution: Not A Problem
The problem is that the end user is using a custom thread pool where the default strategy is to reject executing tasks, when the thread pool do not have any free threads. And thus you get the rejected exception.
Not a problem in Camel.
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Marco Crivellaro (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marco Crivellaro updated CAMEL-3795:
------------------------------------
Attachment: InterceptSendToEndpointException.java
JUnit test showing the exception
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Priority: Critical
> Attachments: InterceptSendToEndpointException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Marco Crivellaro (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012388#comment-13012388 ]
Marco Crivellaro commented on CAMEL-3795:
-----------------------------------------
The unit test uses mock up endpoint which does not show the wrong behaviour.
The test attached to the ticket does not make use of custom thread pool:
from("direct:start").recipientList(header(InterceptSendToEndpointException.recipientListHeaderName).tokenize(",")).to("mock:end");
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Marco Crivellaro (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015458#comment-13015458 ]
Marco Crivellaro commented on CAMEL-3795:
-----------------------------------------
I am still experiencing the same issue with the latest test attached. I am using camel 2.8-snapshot
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java, InterceptSendToEndpointExecutionException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-3795:
-------------------------------
Priority: Major (was: Critical)
Fix Version/s: 2.8.0
Assignee: Claus Ibsen
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011774#comment-13011774 ]
Claus Ibsen commented on CAMEL-3795:
------------------------------------
Please remember to add link to discussion using nabble
http://camel.465427.n5.nabble.com/java-util-concurrent-RejectedExecutionException-using-interceptSendToEndpoint-td3425179.html
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012974#comment-13012974 ]
Claus Ibsen commented on CAMEL-3795:
------------------------------------
Okay I found the culprint. The lifecycle of the interceptor was affected by ftp producer as it was a pooled resource and thus its lifecycle is unusual.
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java, InterceptSendToEndpointExecutionException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3795)
java.util.concurrent.RejectedExecutionException using
interceptSendToEndpoint
Posted by "Marco Crivellaro (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marco Crivellaro updated CAMEL-3795:
------------------------------------
Attachment: InterceptSendToEndpointExecutionException.java
Attaching another unit test showing the exception, the difference with previous one is that it is using real endpoints.
> java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
> -----------------------------------------------------------------------------
>
> Key: CAMEL-3795
> URL: https://issues.apache.org/jira/browse/CAMEL-3795
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0
> Reporter: Marco Crivellaro
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: InterceptSendToEndpointException.java, InterceptSendToEndpointExecutionException.java
>
>
> in some circumstances interceptSendToEndpoint in conjunction with recipientList is running in exception. this seems to be the case when an http endpoint is sent in the recipient list after having processed and ftp in the previous exchange.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira