Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Marathon 1.6.392
    • Component/s: CLI
    • Labels:

      Description

      When enable_features flag contains unsupported value (e.g., typo) Marathon fails without information what was wrong (only NullPointer is displayed):

       

      marathon(master)> run --master localhost:5050 --zk zk://localhost:2181/marathon130 --enable_features xcsd
      [info] Packaging github.com/mesosphere/marathon/plugin-interface/target/scala-2.12/plugin-interface_2.12-1.6.0-pre-229-ga19302e.jar ...
      [info] Done packaging.
      [info] Packaging github.com/mesosphere/marathon/target/scala-2.12/marathon_2.12-1.6.0-pre-229-ga19302e.jar ...
      [info] Done packaging.
      [info] Running (fork) mesosphere.marathon.Main --master localhost:5050 --zk zk://localhost:2181/marathon130 --enable_features xcsd
      [error] Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "main"
      [error] java.lang.RuntimeException: Nonzero exit code returned from runner: 1
      [error] at sbt.ForkRun.processExitCode$1(Run.scala:29)
      [error] at sbt.ForkRun.run(Run.scala:38)
      [error] at sbt.Defaults$.$anonfun$bgRunTask$5(Defaults.scala:1155)
      [error] at sbt.Defaults$.$anonfun$bgRunTask$5$adapted(Defaults.scala:1150)
      [error] at sbt.internal.BackgroundThreadPool.$anonfun$run$1(DefaultBackgroundJobService.scala:359)
      [error] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
      [error] at scala.util.Try$.apply(Try.scala:209)
      [error] at sbt.internal.BackgroundThreadPool$BackgroundRunnable.run(DefaultBackgroundJobService.scala:282)
      [error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      [error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      [error] at java.lang.Thread.run(Thread.java:748)
      [error] (marathon/compile:run) Nonzero exit code returned from runner: 1
      [error] Total time: 5 s, completed Jan 3, 2018 4:45:52 PM

        Attachments

          Activity

            People

            • Assignee:
              janisz janisz
              Reporter:
              janisz janisz
              Team:
              Orchestration Team
              Watchers:
              Ivan Chernetsky, janisz
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: