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

Defining runtimes using external file - Invalid thread access when defined wrong URL to runtime

XMLWordPrintable

      When the runtime defined in the XML file has wrong URL, the download of that runtime fails (as expected) with Invalid thread access exception.

      An internal error occurred during: "Download 'Portlet Bridge".
      Invalid thread access
      
      org.eclipse.swt.SWTException: Invalid thread access
      	at org.eclipse.swt.SWT.error(SWT.java:4282)
      	at org.eclipse.swt.SWT.error(SWT.java:4197)
      	at org.eclipse.swt.SWT.error(SWT.java:4168)
      	at org.eclipse.swt.widgets.Display.error(Display.java:1210)
      	at org.eclipse.swt.widgets.Display.checkDevice(Display.java:752)
      	at org.eclipse.swt.widgets.Display.getShells(Display.java:1987)
      	at org.eclipse.ui.internal.progress.ProgressManagerUtil.getModalShellExcluding(ProgressManagerUtil.java:284)
      	at org.eclipse.ui.internal.progress.ProgressManagerUtil.getDefaultParent(ProgressManagerUtil.java:338)
      	at org.eclipse.ui.internal.Workbench$71.getShell(Workbench.java:3883)
      	at org.jboss.tools.project.examples.dialog.DownloadRuntimeDialog.getActiveShell(DownloadRuntimeDialog.java:518)
      	at org.jboss.tools.project.examples.dialog.DownloadRuntimeDialog.downloadAndInstall(DownloadRuntimeDialog.java:455)
      	at org.jboss.tools.project.examples.dialog.DownloadRuntimeDialog.access$5(DownloadRuntimeDialog.java:360)
      	at org.jboss.tools.project.examples.dialog.DownloadRuntimeDialog$7.run(DownloadRuntimeDialog.java:348)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

      A proper error message should be shown to the user.

            nivologd@gmail.com Denis Golovin (Inactive)
            ljelinko@redhat.com Lucia Jelinkova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: