Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318520 - Invalid thread access exception
Summary: Invalid thread access exception
Status: RESOLVED WORKSFORME
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: jsf inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-30 16:15 EDT by Gerry Kessler CLA
Modified: 2010-08-24 16:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry Kessler CLA 2010-06-30 16:15:36 EDT
The following exception occurred while adding JSF facet to a DWP with a JSP or XHTML page open in the WPE.

java.lang.Exception: org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.jst.jsf.designtime.internal.view.model.AbstractTagRegistry.fireEvent(AbstractTagRegistry.java:71)
at org.eclipse.jst.jsf.designtime.internal.view.model.jsp.registry.TLDTagRegistry.initialize(TLDTagRegistry.java:294)
at org.eclipse.jst.jsf.designtime.internal.view.model.jsp.registry.LibraryOperationFactory$AddTagLibrary.doRun(LibraryOperationFactory.java:62)
at org.eclipse.jst.jsf.designtime.internal.view.model.jsp.registry.LibraryOperation.run(LibraryOperation.java:35)
at org.eclipse.jst.jsf.designtime.internal.view.model.jsp.registry.TLDTagRegistry$ChangeJob.run(TLDTagRegistry.java:444)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.draw2d.DeferredUpdateManager.sendUpdateRequest(DeferredUpdateManager.java:258)
at org.eclipse.draw2d.DeferredUpdateManager.queueWork(DeferredUpdateManager.java:244)
at org.eclipse.draw2d.DeferredUpdateManager.addDirtyRegion(DeferredUpdateManager.java:120)
at org.eclipse.draw2d.Figure.repaint(Figure.java:1420)
at org.eclipse.draw2d.Figure.erase(Figure.java:327)
at org.eclipse.draw2d.Figure.remove(Figure.java:1272)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.removeChildVisual(AbstractGraphicalEditPart.java:769)
at org.eclipse.gef.editparts.AbstractEditPart.removeChild(AbstractEditPart.java:866)
at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:779)
at org.eclipse.gef.ui.palette.editparts.PaletteEditPart.access$0(PaletteEditPart.java:1)
at org.eclipse.gef.ui.palette.editparts.PaletteEditPart$1.propertyChange(PaletteEditPart.java:64)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:318)
at org.eclipse.gef.palette.PaletteEntry.setVisible(PaletteEntry.java:450)
at org.eclipse.jst.pagedesigner.editors.palette.DesignerPaletteCustomizationsHelper.loadUserCustomizations(DesignerPaletteCustomizationsHelper.java:91)
at org.eclipse.jst.pagedesigner.editors.palette.impl.PaletteItemManager.registryChanged(PaletteItemManager.java:495)
at org.eclipse.jst.jsf.designtime.internal.view.model.AbstractTagRegistry.fireEvent(AbstractTagRegistry.java:67)
... 5 more
Comment 1 Raghunathan Srinivasan CLA 2010-08-24 16:33:02 EDT
Don't see this issue with the following steps:

1) Create A DWP, no JSF Facet
2) Create a JSP Page. 
3) Open in it in WPE
4) Right-mose on Project->Properties->Project Facet. Add JSF Facet, version 1.2
5) Apply the changes

I tried the above with an existing DWP project, JSF 2.0 facet
Comment 2 Gerry Kessler CLA 2010-08-24 16:49:48 EDT
No longer able to reproduce