Announcement Announcement Module
Collapse
No announcement yet.
Could not open the aspectj editor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not open the aspectj editor

    Hi

    I'm using Ganymede 3.4 with the latest Spring IDE and AJDT plugin, but when I try to open an aspect file with .aj extension using aspectj editor then I got the following NPE error. Does anyone here has the same problem as I'm having now ?

    Thanks
    David

    Code:
    java.lang.NullPointerException
    	at org.eclipse.jdt.ui.text.JavaTextTools.<init>(JavaTextTools.java:159)
    	at org.eclipse.jdt.ui.text.JavaTextTools.<init>(JavaTextTools.java:105)
    	at org.eclipse.ajdt.internal.ui.editor.AspectJTextTools.<init>(AspectJTextTools.java:32)
    	at org.eclipse.ajdt.internal.ui.editor.AspectJEditor.initializeEditor(AspectJEditor.java:495)
    	at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.<init>(AbstractDecoratedTextEditor.java:294)
    	at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.<init>(JavaEditor.java:239)
    	at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.<init>(CompilationUnitEditor.java:1025)
    	at org.eclipse.ajdt.internal.ui.editor.AspectJEditor.<init>(AspectJEditor.java:101)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at java.lang.Class.newInstance0(Class.java:355)
    	at java.lang.Class.newInstance(Class.java:308)
    	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
    	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
    	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
    	at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:259)
    	at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:233)
    	at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:846)
    	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:606)
    	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
    	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
    	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
    	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)
    	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
    	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
    	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
    	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
    	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
    	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643)
    	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
    	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
    	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318)
    	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160)
    	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
    	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207)
    	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
    	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
    	at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
    	at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
    	at org.eclipse.ui.internal.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:184)
    	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    	at org.eclipse.core.runtime.Platform.run(Platform.java:880)
    	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
    	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    	at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
    	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)
    	at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:372)
    	at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)
    	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
    	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
    	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
    	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)
    	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    	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:382)
    	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:549)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

  • #2
    Just installed AJDT 1.6 (see http://www.eclipse.org/ajdt/downloads/) and the problem is gone.

    Comment

    Working...
    X