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

CLI fails to start

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: CLI
    • Labels:
    • Rank:
      1|hzzpp3:

      Description

      On starting up, the following exception is thrown:

      java.lang.ClassCastException: co.cask.common.cli.completers.DefaultStringsCompleter cannot be cast to co.cask.cdap.cli.completer.element.EndpointCompleter
          at co.cask.cdap.cli.completer.supplier.EndpointSupplier.getCompleter(EndpointSupplier.java:50)
          at co.cask.common.cli.CLI.getCompleter(CLI.java:276)
          at co.cask.common.cli.CLI.generateCompleters(CLI.java:250)
          at co.cask.common.cli.CLI.generateCompleters(CLI.java:254)
          at co.cask.common.cli.CLI.generateCompleters(CLI.java:254)
          at co.cask.common.cli.CLI.generateCompleters(CLI.java:254)
          at co.cask.common.cli.CLI.generateCompleters(CLI.java:203)
          at co.cask.common.cli.CLI.updateCompleters(CLI.java:183)
          at co.cask.common.cli.CLI.startInteractiveMode(CLI.java:152)
          at co.cask.cdap.cli.CLIMain.main(CLIMain.java:300)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      

      Apparently it is caused by introduction of version <version> in the call service command. In the EndpointSupplier, it is not aware of that, hence the class cast exception.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mao Chengfeng Mao
                Reporter:
                terence Terence Yim
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: