You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Bryan Brouckaert (JIRA)" <ji...@apache.org> on 2011/07/15 11:20:59 UTC
[jira] [Created] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
----------------------------------------------------------------------------------
Key: CAMEL-4234
URL: https://issues.apache.org/jira/browse/CAMEL-4234
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.8.0
Environment: JUnit4 Spring tests, Spring DSL
Reporter: Bryan Brouckaert
Hello,
I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one those.
I'll try to reproduce it in a small test case.
Kind regards,
Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067007#comment-13067007 ]
Claus Ibsen commented on CAMEL-4234:
------------------------------------
Can you make sure you use the latest source code. There has been a fix to ensure <onException>s is being enlisted with the correct context/route scope.
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0, 2.7.1, 2.7.2, 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Assignee: Claus Ibsen
> Attachments: CAMEL-4234.zip, routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-4234:
----------------------------------
Assignee: Claus Ibsen
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0, 2.7.1, 2.7.2, 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Assignee: Claus Ibsen
> Attachments: CAMEL-4234.zip, routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Brouckaert updated CAMEL-4234:
------------------------------------
Attachment: routes.xml
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Attachments: routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066810#comment-13066810 ]
Bryan Brouckaert commented on CAMEL-4234:
-----------------------------------------
The 2.8-SNAPSHOT of https://repository.apache.org/content/repositories/snapshots/
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Attachments: routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Brouckaert updated CAMEL-4234:
------------------------------------
Attachment: CAMEL-4234.zip
Added a simple example that causes the error.
There are 2 routes, both with there own input but both use the same output. In my test cases I mock the output. The test case fails because the exception isn't caught.
Do you have an idea about the issue? Is there a workaround?
Kind regards.
Bryan.
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Attachments: CAMEL-4234.zip, routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Brouckaert updated CAMEL-4234:
------------------------------------
Affects Version/s: 2.7.0
2.7.1
2.7.2
The same error exists from version 2.7.0, it worked until 2.6.0.
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0, 2.7.1, 2.7.2, 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Attachments: CAMEL-4234.zip, routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-4234.
--------------------------------
Resolution: Fixed
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0, 2.7.1, 2.7.2
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: CAMEL-4234.zip, routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Brouckaert updated CAMEL-4234:
------------------------------------
Description:
Hello,
I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
I'll try to reproduce it in a small test case.
Kind regards,
Bryan.
was:
Hello,
I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one those.
I'll try to reproduce it in a small test case.
Kind regards,
Bryan.
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Brouckaert updated CAMEL-4234:
------------------------------------
Fix Version/s: 2.9.0
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0, 2.7.1, 2.7.2, 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Assignee: Claus Ibsen
> Fix For: 2.9.0
>
> Attachments: CAMEL-4234.zip, routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067023#comment-13067023 ]
Bryan Brouckaert commented on CAMEL-4234:
-----------------------------------------
I tested with 2.9-SNAPSHOT and it does work. Any idea when the final version will be released?
Kind regards,
Bryan.
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0, 2.7.1, 2.7.2, 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Assignee: Claus Ibsen
> Fix For: 2.9.0
>
> Attachments: CAMEL-4234.zip, routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066807#comment-13066807 ]
Claus Ibsen commented on CAMEL-4234:
------------------------------------
What version of Camel do you exactly use?
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Attachments: routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-4234:
-------------------------------
Affects Version/s: (was: 2.8.0)
Fix Version/s: (was: 2.9.0)
2.8.0
Camel 2.8 is being cut later today/tomorrow. So this ticket is included.
I added an unit test based to verify it works in both java and xml dsl.
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.0, 2.7.1, 2.7.2
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
> Attachments: CAMEL-4234.zip, routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4234) ProducerTemplate/MockEndpoint does
not seem to trigger context exception handling.
Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066802#comment-13066802 ]
Bryan Brouckaert commented on CAMEL-4234:
-----------------------------------------
Hello,
It doesn't seem to be easy to replicate the issue, but I did get some extra information.
I do get the following log entry:
TRACE [org.apache.camel.processor.exceptionpolicy.DefaultExceptionPolicyStrategy] - The type is scoped for route: userWs.getUser however Exchange is at route: userWs.listUsers
Which explains why the onException isn't triggerd. But what is strange, is that the onException is defined on context level and the route thas is executed is userWS.getUsers.
I'll include my routing config, and keep working on a simple example.
> ProducerTemplate/MockEndpoint does not seem to trigger context exception handling.
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-4234
> URL: https://issues.apache.org/jira/browse/CAMEL-4234
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.0
> Environment: JUnit4 Spring tests, Spring DSL
> Reporter: Bryan Brouckaert
> Attachments: routes.xml
>
>
> Hello,
> I have a camel route that has "onException" clause. When I run it on Tomcat it works pefectly, but in my integration test (JUnit4 + Spring Tests) the exception handling isn't triggered. The unit tests uses a producer template and mock endpoint, so it seems that it is in one of those.
> I'll try to reproduce it in a small test case.
> Kind regards,
> Bryan.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira