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

NPE when trying to create Openshift Application when offline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 4.2.0.Beta1
    • 4.2.0.Beta1
    • openshift
    • None

      Plug-in "org.jboss.tools.openshift.express.ui" was unable to instantiate class "org.jboss.tools.openshift.express.internal.ui.wizard.application.NewOpenShiftApplicationWizard".
      org.eclipse.core.runtime.CoreException: Plug-in "org.jboss.tools.openshift.express.ui" was unable to instantiate class "org.jboss.tools.openshift.express.internal.ui.wizard.application.NewOpenShiftApplicationWizard".
      	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
      	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:186)
      	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
      	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
      	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
      	at org.jboss.tools.central.editors.GettingStartedPage.createExtension(GettingStartedPage.java:710)
      	at org.jboss.tools.central.editors.GettingStartedPage.openWizard(GettingStartedPage.java:631)
      	at org.jboss.tools.central.editors.GettingStartedPage.access$11(GettingStartedPage.java:630)
      	at org.jboss.tools.central.editors.GettingStartedPage$6.linkActivated(GettingStartedPage.java:602)
      	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.Display.sendEvent(Display.java:4425)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3773)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3393)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
      Caused by: java.lang.NullPointerException
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftApplicationWizardModel.update(OpenShiftApplicationWizardModel.java:561)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftApplicationWizardModel.setConnection(OpenShiftApplicationWizardModel.java:521)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftApplicationWizardModel.<init>(OpenShiftApplicationWizardModel.java:74)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftApplicationWizard.<init>(OpenShiftApplicationWizard.java:82)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.NewOpenShiftApplicationWizard.<init>(NewOpenShiftApplicationWizard.java:32)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      	at java.lang.Class.newInstance(Class.java:433)
      	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
      	... 39 more
      

      When trying to create Openshift application via File->new, NPE is thrown.

      When trying to create Openshift application from Central nothing happens, just the same NPE is silently logged in error log.

      Marking this jira as Optional, because openshift has to have internet connection. But some dialog telling what happened would be nice

            adietish@redhat.com André Dietisheim
            rhopp@redhat.com Radim Hopp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: