[jbosstools-issues] [JBoss JIRA] (JBIDE-18045) Application wizard: Cannot open links in details of quickstarts on OpenShift Enterprise instance

Marián Labuda (JIRA) issues at jboss.org
Fri Aug 8 01:18:29 EDT 2014


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

Marián Labuda commented on JBIDE-18045:
---------------------------------------

Problem is in URLs of quickstarts. Via REST API you can get quickstarts, but enterprise quickstarts do not contain in json "href" attribute is not existing on Enterprise instances. OpenShift Online and OpenShift enterprise have in common only website, which is leading to the official product/quickstart page (mostly on jboss.org domain). Probably we could either:
- remove link from details in case of non-existing "href" attribute in json
or
- point quickstarts to official quickstart page - but this can bring more complications because n OpenShift Online are quickstarts links are labeled as hyperlink "Learn more", but on OpenShift Enterprise are links labeled as whole URL (e.g. "http://www.jboss.org/capedwarf/")

> Application wizard: Cannot open links in details of quickstarts on OpenShift Enterprise instance
> ------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-18045
>                 URL: https://issues.jboss.org/browse/JBIDE-18045
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.2.0.Beta3
>            Reporter: Marián Labuda
>            Priority: Critical
>              Labels: application_wizard
>             Fix For: 4.2.0.CR1
>
>
> Quickstarts in New application wizard contains Details area, where is the link to page containing more information about quickstart. After clicking on this link nothing happens.
> I have found out that problem is in URLs
> {code:title=.log}
> !ENTRY org.jboss.tools.openshift.express.ui 4 0 2014-08-08 06:53:10.435
> !MESSAGE Could not display malformed url "null".
> !STACK 0
> java.net.MalformedURLException
> 	at java.net.URL.<init>(URL.java:620)
> 	at java.net.URL.<init>(URL.java:483)
> 	at java.net.URL.<init>(URL.java:432)
> 	at org.jboss.tools.foundation.ui.util.BrowserUtility.openUrl(BrowserUtility.java:60)
> 	at org.jboss.tools.foundation.ui.util.BrowserUtility.checkedCreateExternalBrowser(BrowserUtility.java:51)
> 	at org.jboss.tools.openshift.express.internal.ui.wizard.application.ApplicationTemplateDetailViews$QuickstartView$1.widgetSelected(ApplicationTemplateDetailViews.java:342)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4486)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1412)
> 	at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1526)
> 	at org.eclipse.swt.widgets.Link.gtk_button_release_event(Link.java:380)
> 	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2078)
> 	at org.eclipse.swt.widgets.Control.windowProc(Control.java:5510)
> 	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4700)
> 	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
> 	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:9074)
> 	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1253)
> 	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
> 	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2473)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3439)
> 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
> 	at org.eclipse.jface.window.Window.open(Window.java:808)
> 	at org.jboss.tools.openshift.express.internal.ui.utils.WizardUtils.openWizard(WizardUtils.java:69)
> 	at org.jboss.tools.openshift.express.internal.ui.utils.WizardUtils.openWizard(WizardUtils.java:60)
> 	at org.jboss.tools.openshift.express.internal.ui.command.NewApplicationHandler.open(NewApplicationHandler.java:55)
> 	at org.jboss.tools.openshift.express.internal.ui.command.NewApplicationHandler.execute(NewApplicationHandler.java:43)
> 	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
> 	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
> 	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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
> 	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)
> 	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)
> 	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
> 	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149)
> 	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
> 	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
> 	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
> 	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:825)
> 	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:701)
> 	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$6(HandledContributionItem.java:685)
> 	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:613)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4486)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3831)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3441)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
> 	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
> 	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
> 	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:1465)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
> Caused by: java.lang.NullPointerException
> 	at java.net.URL.<init>(URL.java:525)
> 	... 72 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the jbosstools-issues mailing list