Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-10183

Updating an app from CLI throws a NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.2
    • Component/s: Pipelines
    • Labels:
      None
    • Release Notes:
      Fixed a bug with the update app CLI command that would parse the application config incorrectly.
    • Rank:
      1|hzz7kn:

      Description

      To reproduce this.
      1. Create an ETL pipeline
      2. Publish
      3. Export the pipeline
      4. Update description in the config
      5. Update the app using CLI

      You will see an NPE. Attached below

      update app StreamToHBase cdap-etl-batch 3.3.1 SYSTEM /Users/sree/Downloads/StreamToHBase-cdap-etl-batch.json
      Error: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      co.cask.cdap.common.BadRequestException: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      	at co.cask.cdap.client.ApplicationClient.update(ApplicationClient.java:353)
      	at co.cask.cdap.cli.command.app.UpdateAppCommand.perform(UpdateAppCommand.java:75)
      	at co.cask.cdap.cli.util.AbstractAuthCommand.execute(AbstractAuthCommand.java:40)
      	at co.cask.common.cli.CLI.execute(CLI.java:136)
      	at co.cask.common.cli.CLI.startInteractiveMode(CLI.java:173)
      	at co.cask.cdap.cli.CLIMain.main(CLIMain.java:298)
      

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              sree Sreevatsan Raman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: