[JBoss JIRA] (JBIDE-22191) Support list of application creation with JSON
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22191?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich edited comment on JBIDE-22191 at 4/18/16 3:51 PM:
------------------------------------------------------------------------
Actually, this class cast exception is properly caught in TemplateListPage.setLocalTemplate(String) and customized error dialog is opened with title "Template Error" and message "The file \"\{0}\" is not an OpenShift template.". The only scaring/unfriendly part is that the exception object itself is passed to the dialog. What can we improve? - maybe not pass the exception, and open warning instead of error?
Also, logging may be restricted by debugging mode, this is an expected exception caused by user input, not a coding bug, while any time user sees a stack trace and the word 'exception' he is right to suggest that it is not his fault but a bug.
was (Author: scabanovich):
Actually, this class cast exception is properly caught in TemplateListPage.setLocalTemplate(String) and customized error dialog is opened with title "Template Error" and message "The file \"\{0}\" is not an OpenShift template.". The only scaring/unfriendly part is that the exception object itself is passed to the dialog. What can we improve? - maybe not pass the exception, and open warning instead of error?
Also, logging may be restricted by debugging mode, this is an expected exception caused by user input, not a coding bug, while any time user sees a stack trace and the word exception he is right to suggest that it is not his fault but a bug.
> Support list of application creation with JSON
> ----------------------------------------------
>
> Key: JBIDE-22191
> URL: https://issues.jboss.org/browse/JBIDE-22191
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Reporter: Aurélien Pupier
> Fix For: 4.4.x
>
> Attachments: screenshot-1.png
>
>
> Currently, if we provide a Local template, which is a list of templates, there is a popup with an error.
> {noformat}
> java.lang.ClassCastException: com.openshift.internal.restclient.model.List cannot be cast to com.openshift.restclient.model.template.ITemplate
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.getLocalTemplate(NewApplicationWizardModel.java:107)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.updateSelectedTemplate(NewApplicationWizardModel.java:86)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.update(NewApplicationWizardModel.java:78)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.setLocalTemplateFileName(NewApplicationWizardModel.java:315)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.setLocalTemplate(TemplateListPage.java:511)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.access$6(TemplateListPage.java:506)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage$14.widgetSelected(TemplateListPage.java:696)
> 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:4362)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
> at org.eclipse.jface.window.Window.open(Window.java:803)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:279)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:270)
> at org.jboss.tools.openshift.internal.ui.handler.NewApplicationHandler.execute(NewApplicationHandler.java:34)
> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
> at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> {noformat}
> You can use the template used by Fuse to reproduce: https://raw.githubusercontent.com/jboss-fuse/application-templates/master...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBIDE-22191) Support list of application creation with JSON
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22191?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich edited comment on JBIDE-22191 at 4/18/16 3:50 PM:
------------------------------------------------------------------------
Actually, this class cast exception is properly caught in TemplateListPage.setLocalTemplate(String) and customized error dialog is opened with title "Template Error" and message "The file \"\{0}\" is not an OpenShift template.". The only scaring/unfriendly part is that the exception object itself is passed to the dialog. What can we improve? - maybe not pass the exception, and open warning instead of error?
Also, logging may be restricted by debugging mode, this is an expected exception caused by user input, not a coding bug, while any time user sees a stack trace and the word exception he is right to suggest that it is not his fault but a bug.
was (Author: scabanovich):
Actually, this class cast exception is properly caught in TemplateListPage.setLocalTemplate(String) and customized error dialog is opened with title "Template Error" and message "The file \"\{0}\" is not an OpenShift template.". The only scaring/unfriendly part is that the exception object itself is passed to the dialog. What can we improve? - maybe not pass the exception, and open warning instead of error?
> Support list of application creation with JSON
> ----------------------------------------------
>
> Key: JBIDE-22191
> URL: https://issues.jboss.org/browse/JBIDE-22191
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Reporter: Aurélien Pupier
> Fix For: 4.4.x
>
> Attachments: screenshot-1.png
>
>
> Currently, if we provide a Local template, which is a list of templates, there is a popup with an error.
> {noformat}
> java.lang.ClassCastException: com.openshift.internal.restclient.model.List cannot be cast to com.openshift.restclient.model.template.ITemplate
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.getLocalTemplate(NewApplicationWizardModel.java:107)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.updateSelectedTemplate(NewApplicationWizardModel.java:86)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.update(NewApplicationWizardModel.java:78)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.setLocalTemplateFileName(NewApplicationWizardModel.java:315)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.setLocalTemplate(TemplateListPage.java:511)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.access$6(TemplateListPage.java:506)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage$14.widgetSelected(TemplateListPage.java:696)
> 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:4362)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
> at org.eclipse.jface.window.Window.open(Window.java:803)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:279)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:270)
> at org.jboss.tools.openshift.internal.ui.handler.NewApplicationHandler.execute(NewApplicationHandler.java:34)
> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
> at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> {noformat}
> You can use the template used by Fuse to reproduce: https://raw.githubusercontent.com/jboss-fuse/application-templates/master...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBIDE-22191) Support list of application creation with JSON
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22191?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich commented on JBIDE-22191:
-----------------------------------------------
Actually, this class cast exception is properly caught in TemplateListPage.setLocalTemplate(String) and customized error dialog is opened with title "Template Error" and message "The file \"{0}\" is not an OpenShift template.". The only scaring/unfriendly part is that the exception object itself is passed to the dialog. What can we improve? - maybe not pass the exception, and open warning instead of error?
> Support list of application creation with JSON
> ----------------------------------------------
>
> Key: JBIDE-22191
> URL: https://issues.jboss.org/browse/JBIDE-22191
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Reporter: Aurélien Pupier
> Fix For: 4.4.x
>
> Attachments: screenshot-1.png
>
>
> Currently, if we provide a Local template, which is a list of templates, there is a popup with an error.
> {noformat}
> java.lang.ClassCastException: com.openshift.internal.restclient.model.List cannot be cast to com.openshift.restclient.model.template.ITemplate
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.getLocalTemplate(NewApplicationWizardModel.java:107)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.updateSelectedTemplate(NewApplicationWizardModel.java:86)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.update(NewApplicationWizardModel.java:78)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.setLocalTemplateFileName(NewApplicationWizardModel.java:315)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.setLocalTemplate(TemplateListPage.java:511)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.access$6(TemplateListPage.java:506)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage$14.widgetSelected(TemplateListPage.java:696)
> 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:4362)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
> at org.eclipse.jface.window.Window.open(Window.java:803)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:279)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:270)
> at org.jboss.tools.openshift.internal.ui.handler.NewApplicationHandler.execute(NewApplicationHandler.java:34)
> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
> at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> {noformat}
> You can use the template used by Fuse to reproduce: https://raw.githubusercontent.com/jboss-fuse/application-templates/master...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBIDE-22191) Support list of application creation with JSON
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22191?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich edited comment on JBIDE-22191 at 4/18/16 3:41 PM:
------------------------------------------------------------------------
Actually, this class cast exception is properly caught in TemplateListPage.setLocalTemplate(String) and customized error dialog is opened with title "Template Error" and message "The file \"\{0}\" is not an OpenShift template.". The only scaring/unfriendly part is that the exception object itself is passed to the dialog. What can we improve? - maybe not pass the exception, and open warning instead of error?
was (Author: scabanovich):
Actually, this class cast exception is properly caught in TemplateListPage.setLocalTemplate(String) and customized error dialog is opened with title "Template Error" and message "The file \"{0}\" is not an OpenShift template.". The only scaring/unfriendly part is that the exception object itself is passed to the dialog. What can we improve? - maybe not pass the exception, and open warning instead of error?
> Support list of application creation with JSON
> ----------------------------------------------
>
> Key: JBIDE-22191
> URL: https://issues.jboss.org/browse/JBIDE-22191
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Reporter: Aurélien Pupier
> Fix For: 4.4.x
>
> Attachments: screenshot-1.png
>
>
> Currently, if we provide a Local template, which is a list of templates, there is a popup with an error.
> {noformat}
> java.lang.ClassCastException: com.openshift.internal.restclient.model.List cannot be cast to com.openshift.restclient.model.template.ITemplate
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.getLocalTemplate(NewApplicationWizardModel.java:107)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.updateSelectedTemplate(NewApplicationWizardModel.java:86)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.update(NewApplicationWizardModel.java:78)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.setLocalTemplateFileName(NewApplicationWizardModel.java:315)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.setLocalTemplate(TemplateListPage.java:511)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.access$6(TemplateListPage.java:506)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage$14.widgetSelected(TemplateListPage.java:696)
> 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:4362)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
> at org.eclipse.jface.window.Window.open(Window.java:803)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:279)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:270)
> at org.jboss.tools.openshift.internal.ui.handler.NewApplicationHandler.execute(NewApplicationHandler.java:34)
> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
> at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> {noformat}
> You can use the template used by Fuse to reproduce: https://raw.githubusercontent.com/jboss-fuse/application-templates/master...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (TOOLSDOC-708) JBDS 9.1 GA: Update support page with fedora and os x versions
by Rick Wagner (JIRA)
[ https://issues.jboss.org/browse/TOOLSDOC-708?page=com.atlassian.jira.plug... ]
Rick Wagner edited comment on TOOLSDOC-708 at 4/18/16 3:29 PM:
---------------------------------------------------------------
Hi Guys.
I've done some searching around for this. It looks to me like Red Hat provides OpenJDK binaries for RHEL, but not for other platforms. I've seen an older article that explains that Windows OpenJDK binaries are distributed by Oracle, but are built from the same source Red Hat maintains.
Oracle seems to just call it 'OpenJDK'. I haven't found an article that refers to 'OpenJDK for Windows', but I have seen some that talk about using OpenJDK *on* Windows.
So my vote would be to just call it 'OpenJDK'.
My .02,
Rick
P.S. A knowledge article that seems to say the same: https://access.redhat.com/solutions/404283
was (Author: rick_wagner):
Hi Guys.
I've done some searching around for this. It looks to me like Red Hat provides OpenJDK binaries for RHEL, but not for other platforms. I've seen an older article that explains that Windows OpenJDK binaries are distributed by Oracle, but are built from the same source Red Hat maintains.
Oracle seems to just call it 'OpenJDK'. I haven't found an article that refers to 'OpenJDK for Windows', but I have seen some that talk about using OpenJDK *on* Windows.
So my vote would be to just call it 'OpenJDK'.
My .02,
Rick
> JBDS 9.1 GA: Update support page with fedora and os x versions
> --------------------------------------------------------------
>
> Key: TOOLSDOC-708
> URL: https://issues.jboss.org/browse/TOOLSDOC-708
> Project: Documentation for JBoss Tools and Developer Studio
> Issue Type: Bug
> Components: General documentation issues
> Affects Versions: 9.1 Beta2
> Reporter: Misha Ali
> Assignee: Misha Ali
> Labels: Support
> Fix For: 9.1 GA
>
> Attachments: screenshot_support.png, Screenshot_support_update.png
>
>
> We should update the support matrix of JBDS to include the latest Fedora releases: 22 and 23. At the same time, 21 can be dropped.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (TOOLSDOC-708) JBDS 9.1 GA: Update support page with fedora and os x versions
by Rick Wagner (JIRA)
[ https://issues.jboss.org/browse/TOOLSDOC-708?page=com.atlassian.jira.plug... ]
Rick Wagner commented on TOOLSDOC-708:
--------------------------------------
Hi Guys.
I've done some searching around for this. It looks to me like Red Hat provides OpenJDK binaries for RHEL, but not for other platforms. I've seen an older article that explains that Windows OpenJDK binaries are distributed by Oracle, but are built from the same source Red Hat maintains.
Oracle seems to just call it 'OpenJDK'. I haven't found an article that refers to 'OpenJDK for Windows', but I have seen some that talk about using OpenJDK *on* Windows.
So my vote would be to just call it 'OpenJDK'.
My .02,
Rick
> JBDS 9.1 GA: Update support page with fedora and os x versions
> --------------------------------------------------------------
>
> Key: TOOLSDOC-708
> URL: https://issues.jboss.org/browse/TOOLSDOC-708
> Project: Documentation for JBoss Tools and Developer Studio
> Issue Type: Bug
> Components: General documentation issues
> Affects Versions: 9.1 Beta2
> Reporter: Misha Ali
> Assignee: Misha Ali
> Labels: Support
> Fix For: 9.1 GA
>
> Attachments: screenshot_support.png, Screenshot_support_update.png
>
>
> We should update the support matrix of JBDS to include the latest Fedora releases: 22 and 23. At the same time, 21 can be dropped.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (TOOLSDOC-708) JBDS 9.1 GA: Update support page with fedora and os x versions
by Alexey Kazakov (JIRA)
[ https://issues.jboss.org/browse/TOOLSDOC-708?page=com.atlassian.jira.plug... ]
Alexey Kazakov commented on TOOLSDOC-708:
-----------------------------------------
Yes, it's all about Red Hat OpenJDK, but I don't know what the official name for that OpenJDK bits is.
[~rick_wagner] any comments to the above?
> JBDS 9.1 GA: Update support page with fedora and os x versions
> --------------------------------------------------------------
>
> Key: TOOLSDOC-708
> URL: https://issues.jboss.org/browse/TOOLSDOC-708
> Project: Documentation for JBoss Tools and Developer Studio
> Issue Type: Bug
> Components: General documentation issues
> Affects Versions: 9.1 Beta2
> Reporter: Misha Ali
> Assignee: Misha Ali
> Labels: Support
> Fix For: 9.1 GA
>
> Attachments: screenshot_support.png, Screenshot_support_update.png
>
>
> We should update the support matrix of JBDS to include the latest Fedora releases: 22 and 23. At the same time, 21 can be dropped.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months