You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2013/07/03 04:23:21 UTC
[jira] [Resolved] (CAMEL-6504) org.apache.camel.main.Main#doStop()
throws java.lang.IndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/CAMEL-6504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-6504.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.12.0
2.11.2
2.10.7
Applied the patch into master, camel-2.11.x and camel-2.10.x.
> org.apache.camel.main.Main#doStop() throws java.lang.IndexOutOfBoundsException
> ------------------------------------------------------------------------------
>
> Key: CAMEL-6504
> URL: https://issues.apache.org/jira/browse/CAMEL-6504
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.10.4
> Reporter: Sven Bauhan
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.10.7, 2.11.2, 2.12.0
>
>
> When calling a Camel application with parameter -h all parameters are printed an the program exits.
> But it is no clean exit; it throws an java.lang.IndexOutOfBoundsException.
> The reason for this is the expression in doStop():
> +
> ----
> getCamelContexts().get(0).stop();
> ----
> get(0) returns null, if no context is initialized yet.
> See camel-users mailinglist, thread "Bug in org.apache.camel.main.Main#doStop() ?"
--
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