Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-21294

NPE when starting CDK server

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 4.3.1.Beta1
    • 4.3.0.Beta1
    • openshift
    • None

    Description

      I've been testing the CDK adapter with [1] today and when I tried to start again from scratch (vagrant destroy + new workspace) and added the server again and started, I got a NPE:

      An internal error occurred during: "Starting cdk-v2 CDK Server".
      java.lang.NullPointerException
      	at java.io.File.<init>(File.java:277)
      	at org.jboss.tools.openshift.cdk.server.core.internal.adapter.controllers.CDKLaunchController.launch(CDKLaunchController.java:133)
      	at org.jboss.ide.eclipse.as.wtp.core.server.launch.ControllableServerLaunchConfiguration.launch(ControllableServerLaunchConfiguration.java:52)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
      	at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3556)
      	at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3492)
      	at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:367)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

      I did add the user credentials in the server editor.
      Now I looked in the launch config and the first field at the top is empty - it should contain path to vagrant. I'm not sure why it's missing - I just used runtime detection. But in any case, the NPE should be handled somehow.

      [1] https://github.com/redhat-developer-tooling/openshift-vagrant

      Attachments

        Issue Links

          Activity

            People

              rob.stryker Rob Stryker (Inactive)
              exd-mmalina Martin Malina
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: