Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360242

Summary: It is impossible to edit XML files due to "Unhandled event loop exception"
Product: [WebTools] WTP Source Editing Reporter: Dmitry <manstd>
Component: wst.sseAssignee: wst.sse <wst.sse-inbox>
Status: RESOLVED WORKSFORME QA Contact: Nitin Dahyabhai <thatnitind>
Severity: major    
Priority: P3 CC: nsand.dev, remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Exception log
none
Eclipse installation details none

Description Dmitry CLA 2011-10-07 10:36:45 EDT
Build Identifier: M20110909-1335

It is impossible to edit any XML file. When trying to edit a file, the following error occurs:

eclipse.buildId=M20110909-1335
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64

Error
Fri Oct 07 17:23:11 EEST 2011
Unhandled event loop exception

java.lang.AbstractMethodError: org.eclipse.wst.sse.ui.EditorExecutionContext.execute(Lorg/eclipse/core/runtime/ISafeRunnable;)V
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:106)
	at org.eclipse.jface.text.projection.ProjectionTextStore.replace(ProjectionTextStore.java:111)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1184)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1210)
	at org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:629)
	at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248)
	at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7180)
	at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:7994)
	at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2456)
	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5911)
	at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5941)
	at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5635)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
	at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1509)
	at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
	at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2531)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

Normal Java source files can be edited.


Reproducible: Always

Steps to Reproduce:
1. Create a new Java project in Eclipse.
2. Add new XML file to the project.
3. Open it in the IDE and try to edit.
Comment 1 Dmitry CLA 2011-10-07 10:43:50 EDT
Created attachment 204757 [details]
Exception log
Comment 2 Nitin Dahyabhai CLA 2011-10-07 11:04:56 EDT
How was this installed?  It looks like the sse.ui and sse.core bundles are not properly matched.
Comment 3 Dmitry CLA 2011-10-07 11:11:55 EDT
(In reply to comment #2)
> How was this installed?  It looks like the sse.ui and sse.core bundles are not
> properly matched.

The issue appeared after I updated Eclipse IDE from 3.7 to 3.7.1 (M20110909-1335) using normal update process. I've just checked for available updates from Eclipse and installed them.
Comment 4 Nitin Dahyabhai CLA 2011-10-07 11:25:28 EDT
Did you start with 3.7, and I mean not upgraded from something earlier to that, and then going to 3.7.1?
Comment 5 Nitin Dahyabhai CLA 2011-10-07 11:25:55 EDT
(In reply to comment #3)
> The issue appeared after I updated Eclipse IDE from 3.7 to 3.7.1
> (M20110909-1335) using normal update process. I've just checked for available
> updates from Eclipse and installed them.

So is it still happening?
Comment 6 Dmitry CLA 2011-10-07 11:43:09 EDT
(In reply to comment #5)
> (In reply to comment #3)
> > The issue appeared after I updated Eclipse IDE from 3.7 to 3.7.1
> > (M20110909-1335) using normal update process. I've just checked for available
> > updates from Eclipse and installed them.
> 
> So is it still happening?

Yes, it is still happening. I can't edit any XML file.
Comment 7 Dmitry CLA 2011-10-07 11:57:01 EDT
(In reply to comment #4)
> Did you start with 3.7, and I mean not upgraded from something earlier to that,
> and then going to 3.7.1?

I've updated Eclipse IDE from 3.5 to 3.7 when Eclipse 3.7 became available (so - more than a month ago). Everything worked fine until I updated Eclipse from 3.7 to 3.7.1 (yesterday).
Comment 8 Nitin Dahyabhai CLA 2011-10-07 12:22:47 EDT
It there anything other than content from eclipse.org installed?  Can you attach the Installation Details' Configuration (from the Help->About dialog)?
Comment 9 Dmitry CLA 2011-10-10 04:31:09 EDT
Created attachment 204859 [details]
Eclipse installation details

Eclipse installation details taken from Help -> About -> Installed Software
Comment 10 Nick Sandonato CLA 2011-10-11 15:34:19 EDT
(In reply to comment #7)
> (In reply to comment #4)
> > Did you start with 3.7, and I mean not upgraded from something earlier to that,
> > and then going to 3.7.1?
> 
> I've updated Eclipse IDE from 3.5 to 3.7 when Eclipse 3.7 became available (so
> - more than a month ago). Everything worked fine until I updated Eclipse from
> 3.7 to 3.7.1 (yesterday).

If you go to About Eclipse > Installation Details > Plug-ins, what versions do you see for org.eclipse.wst.sse.core and org.eclipse.wst.sse.ui? Have you tried installing Indigo SR1 directly? As Nitin said, it looks like two plug-in versions are not lining up properly possibly from the upgrade from 3.5 to 3.7.1. Thanks.
Comment 11 Nick Sandonato CLA 2011-11-03 14:07:26 EDT
(In reply to comment #10)
> (In reply to comment #7)
> > (In reply to comment #4)
> > > Did you start with 3.7, and I mean not upgraded from something earlier to that,
> > > and then going to 3.7.1?
> > 
> > I've updated Eclipse IDE from 3.5 to 3.7 when Eclipse 3.7 became available (so
> > - more than a month ago). Everything worked fine until I updated Eclipse from
> > 3.7 to 3.7.1 (yesterday).
> 
> If you go to About Eclipse > Installation Details > Plug-ins, what versions do
> you see for org.eclipse.wst.sse.core and org.eclipse.wst.sse.ui? Have you tried
> installing Indigo SR1 directly? As Nitin said, it looks like two plug-in
> versions are not lining up properly possibly from the upgrade from 3.5 to
> 3.7.1. Thanks.

Dmitry, have you had a chance to try this? I cannot reproduce from my end.
Comment 12 Nick Sandonato CLA 2011-11-14 17:02:53 EST
Resolving. It sounds like an installation problem going from 3.5 to 3.7.1 possibly stemming from ADT's dependency on an older SSE UI version. But I can't reproduce on my own.