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

Atlassian JIRA | Rene Verschoor [Atlassian] | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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.

    Atlassian JIRA | 2 years ago | Rene Verschoor [Atlassian]
    com.atlassian.bamboo.task.TaskException: Failed to execute task
  2. 0

    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.

    Atlassian JIRA | 2 years ago | Rene Verschoor [Atlassian]
    com.atlassian.bamboo.task.TaskException: Failed to execute task
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    HBase won't run on OSX 10.8

    Google Groups | 5 years ago | Ryan Rawson
    java.util.UnknownFormatConversionException: Conversion = '0'
  5. 0

    GO enrichment widget -- background change error

    GitHub | 1 year ago | kkarra
    java.util.UnknownFormatConversionException: Conversion = '$'

  1. serious2monkeys 1 times, last 3 months ago
  2. Ajeet 1 times, last 6 months ago
  3. dmitry 2 times, last 10 months ago
  4. mrPet 1 times, last 11 months ago
15 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.UnknownFormatConversionException

    Conversion = '\'

    at java.util.Formatter.checkText()
  2. Java RT
    String.format
    1. java.util.Formatter.checkText(Formatter.java:2503)
    2. java.util.Formatter.parse(Formatter.java:2467)
    3. java.util.Formatter.format(Formatter.java:2414)
    4. java.util.Formatter.format(Formatter.java:2367)
    5. java.lang.String.format(String.java:2769)
    5 frames
  3. com.atlassian.bamboo
    ImpersonationHelper$1.run
    1. com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:155)
    2. com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:137)
    3. com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:86)
    4. com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220)
    5. com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)
    6. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
    7. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)
    8. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112)
    9. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110)
    10. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
    11. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
    12. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
    13. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
    13 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame