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

Server adapter: NPE when deploying to Openshift EAP

XMLWordPrintable

    • devex #127 February 2017
    • 5
    • Hide
      1. Start devstudio with openshift tooling
      2. create a connectio to a local (cdk) openshift instance
      3. Create a new app web app (maven) in the Opensift sampel project
      4. Wait for the application to build
      5. Got to the "servers" view
      6. I had a server connector for openshift 3 already present
      7. select the server adapter and select "publish" from the context menu
      8. observe: NPE
      Show
      Start devstudio with openshift tooling create a connectio to a local (cdk) openshift instance Create a new app web app (maven) in the Opensift sampel project Wait for the application to build Got to the "servers" view I had a server connector for openshift 3 already present select the server adapter and select "publish" from the context menu observe: NPE

      When I try to publish to an EAP in the CDK, I get a NullPointerException:

      java.lang.NullPointerException
      	at org.jboss.tools.openshift.core.server.OpenShiftServerUtils.getService(OpenShiftServerUtils.java:309)
      	at org.jboss.tools.openshift.core.server.OpenShiftServerUtils.getService(OpenShiftServerUtils.java:298)
      	at org.jboss.tools.openshift.core.server.OpenShiftServerUtils.getDeploymentConfig(OpenShiftServerUtils.java:390)
      	at org.jboss.tools.openshift.core.server.behavior.OpenShiftLaunchController.launch(OpenShiftLaunchController.java:87)
      	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$PublishJob.run(Server.java:311)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

            jmaury@redhat.com Jeff MAURY
            tmader@redhat.com Thomas Mäder (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: