com.atlassian.bamboo.task.TaskException: Failed to execute task

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • h3. Problem When a build fails, an error is thrown: {noformat} 2014-10-09 15:04:59,329 INFO [11-BAM::Camel Integration Agent::Agent:pool-26-thread-1] [DefaultErrorHandler] Recording an error: Error occurred while running Task 'Maven 3 test(3)' of type com.atlassian.bamboo.plugins.maven:task.builder.mvn3. : INT-9999-JOB1 com.atlassian.bamboo.task.TaskException: Failed to execute task at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:112) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:662) Caused by: java.util.UnknownFormatConversionException: Conversion = '\' at java.util.Formatter.checkText(Formatter.java:2503) at java.util.Formatter.parse(Formatter.java:2467) at java.util.Formatter.format(Formatter.java:2414) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:155) at com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:137) at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:86) ... 11 more {noformat} The character reported in {{java.util.UnknownFormatConversionException: Conversion = '\'}} can be different. In this example it's a backslash, but it can be another character. h3. Cause {{components/bamboo-api/src/main/java/com/atlassian/bamboo/task/TaskResultBuilder.java}} {code:java}String logString = String.format("Failing task since return code of [" + externalProcess.getCommandLine() + "] was %d while expected %d", exitCode, expectedReturnCode);{code} If the commandline contains a {{%}} (percentage sign), it is interpreted as the start of a format specifier by {{String.format()}}. E.g. commandline = {{"dir %downloaddir%\foo"}} The first {{%}} is erroneously interpreted as a {{%d}}, but harmless. The second {{%}} is interpreted as {{%\ }}, which is not a valid format specifier. h3. Workaround Avoid {{%}} (percentage sign) in your commandline and parameters.
    via by Rene Verschoor [Atlassian],
  • h3. Problem When a build fails, an error is thrown: {noformat} 2014-10-09 15:04:59,329 INFO [11-BAM::Camel Integration Agent::Agent:pool-26-thread-1] [DefaultErrorHandler] Recording an error: Error occurred while running Task 'Maven 3 test(3)' of type com.atlassian.bamboo.plugins.maven:task.builder.mvn3. : INT-9999-JOB1 com.atlassian.bamboo.task.TaskException: Failed to execute task at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:112) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:662) Caused by: java.util.UnknownFormatConversionException: Conversion = '\' at java.util.Formatter.checkText(Formatter.java:2503) at java.util.Formatter.parse(Formatter.java:2467) at java.util.Formatter.format(Formatter.java:2414) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:155) at com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:137) at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:86) ... 11 more {noformat} The character reported in {{java.util.UnknownFormatConversionException: Conversion = '\'}} can be different. In this example it's a backslash, but it can be another character. h3. Cause {{components/bamboo-api/src/main/java/com/atlassian/bamboo/task/TaskResultBuilder.java}} {code:java}String logString = String.format("Failing task since return code of [" + externalProcess.getCommandLine() + "] was %d while expected %d", exitCode, expectedReturnCode);{code} If the commandline contains a {{%}} (percentage sign), it is interpreted as the start of a format specifier by {{String.format()}}. E.g. commandline = {{"dir %downloaddir%\foo"}} The first {{%}} is erroneously interpreted as a {{%d}}, but harmless. The second {{%}} is interpreted as {{%\ }}, which is not a valid format specifier. h3. Workaround Avoid {{%}} (percentage sign) in your commandline and parameters.
    via by Rene Verschoor [Atlassian],
  • HBase won't run on OSX 10.8
    via by Ryan Rawson,
  • Crash when long pressing row
    via GitHub by alexs77
    ,
    • com.atlassian.bamboo.task.TaskException: Failed to execute task at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:112) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:662) Caused by: java.util.UnknownFormatConversionException: Conversion = '\' at java.util.Formatter.checkText(Formatter.java:2503) at java.util.Formatter.parse(Formatter.java:2467) at java.util.Formatter.format(Formatter.java:2414) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:155) at com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:137) at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:86) ... 11 more

    Users with the same issue

    jf-ast
    jf-ast2 times, last one,
    kimihanif
    kimihanif3 times, last one,
    Unknown visitor1 times, last one,
    osvzs
    osvzs2 times, last one,
    Dunmer
    Dunmer4 times, last one,
    21 more bugmates