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

New Application: Do not throw exception in error log when provided template is of wrong kind.

    XMLWordPrintable

Details

    Description

      When creating new application from local template one selects wrong file (not of kind "Template", but kind "Pod" for example) multiple (same) exceptions are thrown into error log:

      !ENTRY org.eclipse.core.databinding 4 0 2017-01-19 13:56:20.472
      !MESSAGE Unhandled exception: Wrong resource kind: Pod
      !STACK 0
      org.jboss.tools.openshift.internal.ui.wizard.newapp.NotATemplateException: Wrong resource kind: Pod
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.getLocalAppSource(NewApplicationWizardModel.java:139)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.loadAppSource(NewApplicationWizardModel.java:293)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceListPage$17.run(ApplicationSourceListPage.java:824)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

      I think it's enough to inform the user in the wizard (this is already happening).

      Attachments

        Issue Links

          Activity

            People

              jmaury@redhat.com Jeff MAURY
              rhopp@redhat.com Radim Hopp
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: