You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "liugang (JIRA)" <ji...@apache.org> on 2012/09/29 06:41:08 UTC

[jira] [Created] (CAMEL-5666) The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1

liugang created CAMEL-5666:
------------------------------

             Summary: The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1
                 Key: CAMEL-5666
                 URL: https://issues.apache.org/jira/browse/CAMEL-5666
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.10.1
         Environment: Camel-2.10.1
            Reporter: liugang


the signature of "errorHandler()" seems changed from "*public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*" to "*public void errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*"
So if I have a route compiled on and old version camel (for example, 2.9.3) which includes an ErrorHandler component, then it doesn't work again on 2.10.1

--
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

[jira] [Commented] (CAMEL-5666) The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466377#comment-13466377 ] 

Willem Jiang commented on CAMEL-5666:
-------------------------------------

Please using the mailing list first before you fill a JIRA.
It could be more effective for us to track the issue if we start a discuss in the mailing list first.
                
> The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-5666
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5666
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.1
>         Environment: Camel-2.10.1
>            Reporter: liugang
>            Assignee: Willem Jiang
>             Fix For: 2.11.0
>
>
> the signature of "errorHandler()" seems changed from "*public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*" to "*public void errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*"
> So if I have a route compiled on and old version camel (for example, 2.9.3) which includes an ErrorHandler component, then it doesn't work again on 2.10.1

--
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

[jira] [Resolved] (CAMEL-5666) The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5666.
--------------------------------

       Resolution: Not A Problem
    Fix Version/s: 2.11.0
         Assignee: Willem Jiang
    
> The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-5666
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5666
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.1
>         Environment: Camel-2.10.1
>            Reporter: liugang
>            Assignee: Willem Jiang
>             Fix For: 2.11.0
>
>
> the signature of "errorHandler()" seems changed from "*public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*" to "*public void errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*"
> So if I have a route compiled on and old version camel (for example, 2.9.3) which includes an ErrorHandler component, then it doesn't work again on 2.10.1

--
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

[jira] [Commented] (CAMEL-5666) The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1

Posted by "liugang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466353#comment-13466353 ] 

liugang commented on CAMEL-5666:
--------------------------------

Sorry, I will take care the language in future.
and I will create an issue about jmx problem. but it's better if we can have a full check for all components from camel side, seems there are many components have this problem, and we fired an issue before [onException|https://issues.apache.org/jira/browse/CAMEL-5191]
                
> The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-5666
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5666
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.1
>         Environment: Camel-2.10.1
>            Reporter: liugang
>            Assignee: Willem Jiang
>             Fix For: 2.11.0
>
>
> the signature of "errorHandler()" seems changed from "*public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*" to "*public void errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*"
> So if I have a route compiled on and old version camel (for example, 2.9.3) which includes an ErrorHandler component, then it doesn't work again on 2.10.1

--
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

[jira] [Commented] (CAMEL-5666) The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1

Posted by "liugang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466147#comment-13466147 ] 

liugang commented on CAMEL-5666:
--------------------------------

嗯。了解。(测试一下你应该能看懂中文,呵呵)
OK. understand, but in this case, we may lost the compatibility. I have no chioce but re-compile, right?

However it also resolve me another problem: *Since the return type is a "RouteBuilder" at previous version, then user can write some code like "errorHandler().from(...)..." which looks like the bug [CAMEL-5032|https://issues.apache.org/jira/browse/CAMEL-5032]*

BTW, The JMX statistics for some component, for example "setBody", "setHeader" , doesn't exist. could you have a check? or I have to create an issue for that? 谢谢!

                
> The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-5666
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5666
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.1
>         Environment: Camel-2.10.1
>            Reporter: liugang
>
> the signature of "errorHandler()" seems changed from "*public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*" to "*public void errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*"
> So if I have a route compiled on and old version camel (for example, 2.9.3) which includes an ErrorHandler component, then it doesn't work again on 2.10.1

--
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

[jira] [Commented] (CAMEL-5666) The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466220#comment-13466220 ] 

Claus Ibsen commented on CAMEL-5666:
------------------------------------

Please use english language so everybody can understand.

Yes you would need to recompile, that can be expected/needed to do when upgrading minor releases (eg 2.9 to 2.10). However we strive to keep patch releases (eg 2.9.2 -> 2.9.3) as binary compatible and as a drop in replacement.

And yes for other matters create a new JIRA. 
                
> The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-5666
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5666
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.1
>         Environment: Camel-2.10.1
>            Reporter: liugang
>
> the signature of "errorHandler()" seems changed from "*public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*" to "*public void errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*"
> So if I have a route compiled on and old version camel (for example, 2.9.3) which includes an ErrorHandler component, then it doesn't work again on 2.10.1

--
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

[jira] [Commented] (CAMEL-5666) The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466221#comment-13466221 ] 

Claus Ibsen commented on CAMEL-5666:
------------------------------------

And btw dont stack code like errorHandler(xxx).from(xx).

That should be in separate code statements. As shown on all the Camel examples and docs as you can see on the Camel site.
{code}
errorHandler(xxx);

from(yyy)
  .to(zzz);
{code}


                
> The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-5666
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5666
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.1
>         Environment: Camel-2.10.1
>            Reporter: liugang
>
> the signature of "errorHandler()" seems changed from "*public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*" to "*public void errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*"
> So if I have a route compiled on and old version camel (for example, 2.9.3) which includes an ErrorHandler component, then it doesn't work again on 2.10.1

--
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

[jira] [Commented] (CAMEL-5666) The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466118#comment-13466118 ] 

Willem Jiang commented on CAMEL-5666:
-------------------------------------

The change is to fix the issue of CAMEL-5032. 
I'm afraid you need to compile your route builder with Camel 2.10.x this time.
                
> The ErrorHandler compiled by old Version Camel is unavailable on 2.10.1
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-5666
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5666
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.1
>         Environment: Camel-2.10.1
>            Reporter: liugang
>
> the signature of "errorHandler()" seems changed from "*public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*" to "*public void errorHandler(ErrorHandlerBuilder errorHandlerBuilder)*"
> So if I have a route compiled on and old version camel (for example, 2.9.3) which includes an ErrorHandler component, then it doesn't work again on 2.10.1

--
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