Bug 43782 - Editing & saving an aspect outside a eclipse project gives exception
Summary: Editing & saving an aspect outside a eclipse project gives exception
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.1.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andrew Clement CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-26 19:23 EDT by Morten Christensen CLA
Modified: 2004-08-09 06:21 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 Morten Christensen CLA 2003-09-26 19:23:32 EDT
I am using eclipse 2.1 with AJDT 1.4 / AspectJ 1.1.1. Editing and saving an 
aspect file (*.aj) that is not on the source path defined in eclipse sometimes 
gives the following exception (note: the aspect is by intention not a part of 
the source path because I do not want it to compile - but I do want to be able 
to edit it):

org.eclipse.swt.SWTException: Failed to execute runnable 
(java.lang.NullPointerException)
	at org.eclipse.swt.SWT.error(SWT.java:2332)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:101)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1815)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1549)
	at 
org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop
(EventLoopProgressMonitor.java:94)
	at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.subTask
(EventLoopProgressMonitor.java:124)
	at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask
(ProgressMonitorWrapper.java:120)
	at org.eclipse.core.runtime.SubProgressMonitor.subTask
(SubProgressMonitor.java:161)
	at org.eclipse.core.internal.resources.Workspace.endOperation
(Workspace.java:898)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1600)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:85)
	at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation
(AbstractTextEditor.java:3033)
	at 
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperati
on(CompilationUnitEditor.java:752)
	at org.eclipse.ajdt.internal.ui.editor.AspectJEditor.doSave
(AspectJEditor.java:135)
	at org.eclipse.ui.internal.EditorManager$11.run
(EditorManager.java:1090)
	at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:960)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread
(ModalContext.java:302)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
	at org.eclipse.jface.window.ApplicationWindow$1.run
(ApplicationWindow.java:431)
	at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:69)
	at org.eclipse.jface.window.ApplicationWindow.run
(ApplicationWindow.java:428)
	at org.eclipse.ui.internal.WorkbenchWindow.run
(WorkbenchWindow.java:1385)
	at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation
(EditorManager.java:966)
	at org.eclipse.ui.internal.EditorManager.savePart
(EditorManager.java:1095)
	at org.eclipse.ui.internal.WorkbenchPage.savePart
(WorkbenchPage.java:2353)
	at org.eclipse.ui.internal.WorkbenchPage.saveEditor
(WorkbenchPage.java:2365)
	at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:57)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
	at org.eclipse.ui.internal.WWinKeyBindingService.pressed
(WWinKeyBindingService.java:214)
	at org.eclipse.ui.internal.WWinKeyBindingService$5.widgetSelected
(WWinKeyBindingService.java:332)
	at org.eclipse.ui.internal.AcceleratorMenu$2.handleEvent
(AcceleratorMenu.java:68)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:858)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	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:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
	at org.eclipse.core.launcher.Main.run(Main.java:747)
	at org.eclipse.core.launcher.Main.main(Main.java:583)
Comment 1 Matt Chapman CLA 2004-07-26 10:44:19 EDT
Sorry for the lack of response.
Have you seen this with Eclipse 3.0 and AJDT 1.1.11?
Comment 2 Matt Chapman CLA 2004-08-09 06:21:44 EDT
No response so assuming this is no longer a problem.