Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] SWTException loading org.eclipse.jdt.ui on update manager restart



Adrian,

I assume you run on 2.1. This bug 36554 has been fixed in the 3.0 and the
2.1 maintenance stream.

HTH
Dani


                                                                           
             Adrian                                                        
             Colyer/UK/IBM@IBM                                             
             GB                                                         To 
             Sent by:                  jdt-dev@xxxxxxxxxxx                 
             jdt-dev-admin@ecl                                          cc 
             ipse.org                                                      
                                                                   Subject 
                                       [jdt-dev] SWTException loading      
             10.06.2003 16:34          org.eclipse.jdt.ui on update        
                                       manager restart                     
                                                                           
             Please respond to                                             
             jdt-dev@eclipse.o                                             
                    rg                                                     
                                                                           
                                                                           




We're developing the AJDT plugin that has a dependency on
org.eclipse.jdt.ui. When the update manager is used to install a new or
more recent version of AJDT from our update site, we ocassionally (not
every time, but reported by several users independently and also seen in
our testing) get the following error:


Error  May 21, 2003 15:32:55.247 Plug-in org.eclipse.ajdt.ui was unable to
load
class org.eclipse.ajdt.internal.builder.Builder.             //first class
alphabetically in our plugin
org.eclipse.core.internal.boot.DelegatingLoaderException:
org.eclipse.core.runtime.CoreException: Problems encountered starting up
plug-
in: "org.eclipse.jdt.ui".
...

The problem starting jdt.ui is an SWT invalid thread access:

Error  May 21, 2003 15:32:55.185 Problems occurred when invoking code from
plug-
in: "org.eclipse.core.runtime".
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:2332)
at org.eclipse.swt.SWT.error(SWT.java:2262)
at org.eclipse.swt.widgets.Widget.error(Widget.java:385)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:246)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:237)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:190)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:128)
at
org.eclipse.jface.resource.FontRegistry.defaultFont(FontRegistry.java:293)
at org.eclipse.jface.resource.FontRegistry.get(FontRegistry.java:370)
at
org.eclipse.jface.resource.JFaceResources.getFont(JFaceResources.java:183)
at org.eclipse.jdt.internal.ui.JavaPlugin.startup(JavaPlugin.java:241)
... <snip/>
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:212)
at org.eclipse.core.internal.resources.Workspace.endOperation
(Workspace.java:884)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1600)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:85)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:101)

(see e.g. bugzilla 37948 for full trace).

It seems that the JavaPlugin.startup method is being called on a non-ui
thread (the build thread?). I've scoured all the AJDT files for static
initializers doing something they shouldn't and drawn a blank. Could this
be a bug in the update manager / jdt code??? Any clues appreciated :-)

Thanks,

-- Adrian.
adrian_colyer@xxxxxxxxxx





_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-dev




Back to the top