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

NPE in org.jboss.tools.openshift.express.internal.ui.wizard.ApplicationConfigurationWizardPageModel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta2
    • 3.3.0.Beta1
    • openshift
    • None

      Test case:

      EXECUTE:
      1. Start JBDS
      2. Open JBoss Central
      3. Click "OpenShift Application" in part "Create Projects"
      4. Create new OpenShift Express account by pressing "here" link
      5. Type username and password then press button "Next"
      6. Create folder "/home/<user>/.ssh"
      7. Type Domain name and press button "New"
      FAIL:

      com.openshift.express.client.OpenShiftEndpointException: Could not create domain test
      	at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:454)
      	at com.openshift.express.client.OpenShiftService.requestDomainAction(OpenShiftService.java:182)
      	at com.openshift.express.client.OpenShiftService.createDomain(OpenShiftService.java:166)
      	at com.openshift.express.internal.client.InternalUser.createDomain(InternalUser.java:100)
      	at org.jboss.tools.openshift.express.internal.core.console.UserDelegate.createDomain(UserDelegate.java:125)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.NewDomainWizardPageModel.createDomain(NewDomainWizardPageModel.java:89)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.NewDomainDialog$1.run(NewDomainDialog.java:44)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      Caused by: com.openshift.express.internal.client.httpclient.BadRequestException: {"exit_code":1,"api_c":["placeholder"],"debug":"","messages":"","api":"1.1.2","result":"A namespace with name 'test' already exists","broker_c":["namespace","rhlogin","ssh","app_uuid","debug","alter","cartridge","cart_type","action","app_name","api"],"data":""}
      	at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:110)
      	at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:76)
      	at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:441)
      	... 7 more
      Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: https://openshift.redhat.com/broker/domain
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
      	at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:71)
      	... 8 more
      

      8. Type name "testOpenShift" and select type "jbossas-7"
      ASSERT: Error message: "The name may only contain lower-case letters and digits."
      9. Correct name to "testopenshift"
      FAIL:

      java.lang.NullPointerException
      	at org.jboss.tools.openshift.express.internal.ui.wizard.ApplicationConfigurationWizardPageModel.isExistingApplication(ApplicationConfigurationWizardPageModel.java:150)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.ApplicationConfigurationWizardPage$NewApplicationNameValidator.validate(ApplicationConfigurationWizardPage.java:918)
      	at org.eclipse.core.databinding.validation.MultiValidator$1$ValidationRunnable.run(MultiValidator.java:247)
      	at org.eclipse.core.databinding.observable.ObservableTracker.runAndMonitor(ObservableTracker.java:110)
      	at org.eclipse.core.databinding.validation.MultiValidator.revalidate(MultiValidator.java:259)
      	at org.eclipse.core.databinding.validation.MultiValidator$DependencyListener.handleChange(MultiValidator.java:152)
      	at org.eclipse.core.databinding.observable.ChangeEvent.dispatch(ChangeEvent.java:41)
      	at org.eclipse.core.databinding.observable.ChangeManager.fireEvent(ChangeManager.java:119)
      	at org.eclipse.core.databinding.observable.AbstractObservable.fireChange(AbstractObservable.java:65)
      	at org.eclipse.core.databinding.observable.value.AbstractObservableValue.fireValueChange(AbstractObservableValue.java:70)
      	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.notifyIfChanged(SimplePropertyObservableValue.java:120)
      	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.access$1(SimplePropertyObservableValue.java:112)
      	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue$2.run(SimplePropertyObservableValue.java:66)
      	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:148)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:152)
      	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:170)
      	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue$1.handleEvent(SimplePropertyObservableValue.java:63)
      	at org.eclipse.core.databinding.property.NativePropertyListener.fireChange(NativePropertyListener.java:63)
      	at org.eclipse.jface.internal.databinding.swt.WidgetListener.handleEvent(WidgetListener.java:55)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      	at org.eclipse.jface.window.Window.open(Window.java:801)
      	at org.jboss.tools.central.editors.GettingStartedPage$9.linkActivated(GettingStartedPage.java:619)
      	at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleActivate(AbstractHyperlink.java:233)
      	at org.eclipse.ui.forms.widgets.ImageHyperlink.handleActivate(ImageHyperlink.java:199)
      	at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleMouseUp(AbstractHyperlink.java:327)
      	at org.eclipse.ui.forms.widgets.AbstractHyperlink.access$2(AbstractHyperlink.java:311)
      	at org.eclipse.ui.forms.widgets.AbstractHyperlink$4.handleEvent(AbstractHyperlink.java:125)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
      	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      	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:616)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
      

              xcoulon@redhat.com Xavier Coulon
              dazarov_jira Daniel Azarov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: