You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Nikolay Martynov (JIRA)" <ji...@apache.org> on 2014/02/05 08:06:08 UTC
[jira] [Commented] (SM-2228) Incorrect message in thrown Exception
due to copy-past
[ https://issues.apache.org/jira/browse/SM-2228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13891870#comment-13891870 ]
Nikolay Martynov commented on SM-2228:
--------------------------------------
Exception handler was copy/pasted from around code but exception reason is different. As a result, there is misleading error message. Just use operation description from surrounding debug log statement to provide accurate error message.
> Incorrect message in thrown Exception due to copy-past
> ------------------------------------------------------
>
> Key: SM-2228
> URL: https://issues.apache.org/jira/browse/SM-2228
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core
> Affects Versions: 3.4.1
> Environment: Any
> Reporter: Arseniy Tashoyan
> Priority: Trivial
> Labels: easyfix
> Attachments: JbiTask.java.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Class org.apache.servicemix.jbi.management.task.JbiTask, method execute(), line 348:
> {color:green}
> throw new BuildException("Error accessing ServiceMix administration", e);
> {color}
> This message is incorrect as it doesn't reflect the nature of error. It seems to be copy-pasted from the code above. I believe should be:
> {color:green}
> throw new BuildException("Error executing command", e);
> {color}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)