Bug 143013 - SWTException: Failed to execute runnable (...AbortCompilation)
Summary: SWTException: Failed to execute runnable (...AbortCompilation)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-22 12:52 EDT by Andrey Loskutov CLA
Modified: 2006-09-12 08:49 EDT (History)
0 users

See Also:


Attachments
Proposed fix (8.82 KB, patch)
2006-06-20 09:29 EDT, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2006-05-22 12:52:09 EDT
Since switching to the build 3.2 RC5 I've got 2 times a new error in the Eclipse log. I could not reproduce it and I have also no idea what is wrong there - I working on the same project as before with RC4, but with RC4 I didn't saw these errors.

There are always 2 exceptions logged, first one without stack "Unhandled event loop exception", second one looks like:

eclipse.buildId=I20060519-1206
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -showLocation
Command-line arguments:  -os win32 -ws win32 -arch x86 -showLocation -data E:\eclipse32

Error
Sun May 21 17:16:18 CEST 2006
Failed to execute runnable (org.eclipse.jdt.internal.compiler.problem.AbortCompilation)

org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.jdt.internal.compiler.problem.AbortCompilation)
at org.eclipse.swt.SWT.error(SWT.java:3374)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: org.eclipse.jdt.internal.compiler.problem.AbortCompilation
at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:93)
at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:1768)
at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.isClassPathCorrect(ProblemReporter.java:3430)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:47)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveUnresolvedType(BinaryTypeBinding.java:138)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.superInterfaces(BinaryTypeBinding.java:920)
at org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.implementsInterface(ReferenceBinding.java:791)
at org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.isCompatibleWith0(ReferenceBinding.java:937)
at org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.isCompatibleWith(ReferenceBinding.java:890)
at org.eclipse.jdt.core.dom.TypeBinding.isAssignmentCompatible(TypeBinding.java:959)
at org.eclipse.jdt.internal.ui.text.correction.MissingReturnTypeCorrectionProposal.evaluateReturnExpressions(MissingReturnTypeCorrectionProposal.java:142)
at org.eclipse.jdt.internal.ui.text.correction.MissingReturnTypeCorrectionProposal.getRewrite(MissingReturnTypeCorrectionProposal.java:109)
at org.eclipse.jdt.internal.ui.text.correction.ASTRewriteCorrectionProposal.addEdits(ASTRewriteCorrectionProposal.java:90)
at org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal.createTextChange(CUCorrectionProposal.java:294)
at org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal.createChange(CUCorrectionProposal.java:303)
at org.eclipse.jdt.internal.ui.text.correction.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:207)
at org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal.getTextChange(CUCorrectionProposal.java:313)
at org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal.getAdditionalProposalInfo(CUCorrectionProposal.java:131)
at org.eclipse.jface.text.contentassist.AdditionalInfoController$6.run(AdditionalInfoController.java:162)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
... 20 more
Comment 1 Olivier Thomann CLA 2006-05-22 21:11:14 EDT
This is due to a missing type on the classpath.
Would it be possible to get a test case to reproduce this issue?
Comment 2 Andrey Loskutov CLA 2006-05-23 17:17:22 EDT
No, sorry, it just appears in the error log - I didn't *feel* when it happens...
Comment 3 Jerome Lanneluc CLA 2006-05-24 04:37:38 EDT
From Philippe: "DOM APIs should catch AbortCompilationException and return false"
Comment 4 Jerome Lanneluc CLA 2006-06-20 09:29:24 EDT
Created attachment 44914 [details]
Proposed fix

Fix consists in catching AbortCompilation in all predicate methods and returning false.
Comment 5 Jerome Lanneluc CLA 2006-06-20 09:47:49 EDT
Fix released for 3.3 M1 in HEAD and released for 3.2.1 in TARGET_321 branch.
Comment 6 Frederic Fusier CLA 2006-08-07 06:31:06 EDT
Verified for 3.3 M1 using build I20060807-0010.
Comment 7 David Audel CLA 2006-09-12 08:49:12 EDT
Verified for 3.2.1 using build M20060908-1655