camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-5854) adviceWith() just needs to start the route when the camel context is started
Date Thu, 13 Dec 2012 15:06:13 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Willem Jiang resolved CAMEL-5854.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.11.0
                   2.10.4
                   2.9.6

Applied the patch into trunk, camel-2.10.x and camel-2.9.x.
                
> adviceWith() just needs to start the route when the camel context is started
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-5854
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5854
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.5, 2.10.3
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.9.6, 2.10.4, 2.11.0
>
>
> An user complains the adviceWith doesn't work well with the camel-http4 component[1].
> After digging the code a while, I found the NPE is thrown because the camel-http4 endpoint
is created before camel-http4 component is started. It is caused by the adviceWith() try to
start the route after it finished the work. 
> We need to make sure the adviceWith doesn't start the route when the camel context is
not started yet to avoid the NPE.
> [1]http://camel.465427.n5.nabble.com/Test-Intercept-with-adviceWith-and-http-td5723473.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message