[jbosstools-issues] [JBoss JIRA] (JBIDE-16892) NPE when trying to create Openshift Application when offline

Andre Dietisheim (JIRA) issues at jboss.org
Wed Mar 26 10:05:14 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-16892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12956591#comment-12956591 ] 

Andre Dietisheim commented on JBIDE-16892:
------------------------------------------

After fixing JBIDE-16516 there now is a dialog informing you about the inability to contact your OpenShift host:

!cannot-load-ssh-keys-unknown-host.png!
                
> NPE when trying to create Openshift Application when offline
> ------------------------------------------------------------
>
>                 Key: JBIDE-16892
>                 URL: https://issues.jboss.org/browse/JBIDE-16892
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.2.0.Beta1
>            Reporter: Radim Hopp
>            Priority: Minor
>
> {noformat:title=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
> {noformat}
> 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 ;-)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list