Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Problems using AJDT v1.1.4 with Eclipse 3.0 M7
Problems using AJDT v1.1.4 with Eclipse 3.0 M7 [message #577062] Thu, 08 April 2004 23:26
Omair-Inam Abdul-Matin is currently offline Omair-Inam Abdul-MatinFriend
Messages: 14
Registered: July 2009
Junior Member
Hi,

I installed AJDT version 1.1.4 using the live update feature. I am
having two serious problems

- I was given a prompt asking me if I wanted to make AspectJ editor the
default for .java files. I selected yes. However I cannot save any
modifications to .java files using the AspectJ/Java editor. The
following exception is stored in the log file

!ENTRY org.eclipse.ui 2 0 Apr 08, 2004 19:00:02.476
!MESSAGE Save Failed
!STACK 0
java.lang.NoSuchMethodError:
org.eclipse.ui.texteditor.AbstractTextEditor.createSaveOpera tion(Z)Lorg/eclipse/ui/actions/WorkspaceModifyOperation;
at
org.eclipse.ajdt.internal.ui.editor.AspectJEditor.doSave(Asp ectJEditor.java:132)
at org.eclipse.ui.internal.EditorManager$10.run(EditorManager.j ava:1015)
at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.ja va:870)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:302)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:252)
at
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:550)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:547)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:1644)
at
org.eclipse.ui.internal.EditorManager.runProgressMonitorOper ation(EditorManager.java:876)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager .java:1020)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage .java:2420)
at
org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPa ge.java:2432)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:72)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881 )
at
org.eclipse.ui.internal.commands.ActionHandler.execute(Actio nHandler.java:40)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:427)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:815)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:856)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:526)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(Work benchKeyboard.java:458)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent (WorkbenchKeyboard.java:241)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:699 )
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:832)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:857)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:17 16)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:17 12)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3037)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2940 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2873 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:13 71)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2027)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1550)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:265)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:139)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:47)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:257)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)

- I wrote a simple HelloWorld java program:

public class Test {
public static void main(String[] args) {
System.out.println("test");
}
}

that does not compile in an AspectJ project. If I select
Project->Rebuild Project the following exception is thrown:

!ENTRY org.eclipse.ajdt.ui 4 0 Apr 08, 2004 19:24:07.674
!MESSAGE Compile error, caught Throwable: java.lang.NoSuchMethodError:
org.eclipse.ui.internal.WorkbenchPlugin.getPluginWorkspace() Lorg/eclipse/core/resources/IWorkspace;
!STACK 0
java.lang.NoSuchMethodError:
org.eclipse.ui.internal.WorkbenchPlugin.getPluginWorkspace() Lorg/eclipse/core/resources/IWorkspace;
at
org.eclipse.ajdt.internal.ui.ajde.ProjectProperties.getOutpu tPath(ProjectProperties.java:84)
at
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .getFormattedOptionsString(AspectJBuildManager.java:186)
at
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .run(AspectJBuildManager.java:162)

If on the other hand I right-click the project in the Package Explorer
view and select Remove AspectJ Nature the project runs fine.

Does anyone have any idea of what might be wrong?

Omair
Previous Topic:Aspect Eclipse Tool Development
Next Topic:Problems using AJDT v1.1.4 with Eclipse 3.0 M7
Goto Forum:
  


Current Time: Tue Mar 19 06:16:01 GMT 2024

Powered by FUDForum. Page generated in 0.03812 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top