8 Replies Latest reply on Oct 3, 2007 4:35 PM by busitech

    Eclipse Error when I use the AOP plugin / Aspect Manager. Ne

    mondenkind

      I use the AOP plugin that comes with the JBoss IDE.
      I don't have the newest IDE version, but use the newest aop plugin files (org.jboss.ide.eclipse.jdt.aop.core_1.2.0.Beta2, org.jboss.ide.eclipse.jdt.aop.ui_1.2.0.Beta2)

      The AOP code I wrote works fine, but when I use the Aspect Manager view in Eclipse and click on any file, I get this error message, which is quite annoying:

      Message:
      Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
      
      Exception Stack Trace:
      java.lang.NoSuchMethodError: org.eclipse.jdt.internal.ui.JavaPlugin.getWorkingCopyManager()Lorg/eclipse/jdt/internal/ui/javaeditor/WorkingCopyManager;
      at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.getCompilationUnit(AopJavaEditorUtils.java:174)
      at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.refreshAdvisedMembers(AopJavaEditorUtils.java:143)
      at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.partActivated(AopJavaEditorUtils.java:138)
      at org.eclipse.ui.internal.PartListenerList2$1.run(PartListenerList2.java:68)
      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
      at org.eclipse.core.runtime.Platform.run(Platform.java:783)
      at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:54)
      at org.eclipse.ui.internal.PartListenerList2.firePartActivated(PartListenerList2.java:66)
      at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:77)
      at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
      at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
      at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:117)
      at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2910)
      at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2512)
      at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:249)
      at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:88)
      at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:295)
      at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java:116)
      at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:788)
      at org.eclipse.ui.internal.PartStack.access$0(PartStack.java:771)
      at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:119)
      at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:126)
      at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
      at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
      at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
      at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:84)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
      at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:660)
      at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3138)
      at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1922)
      at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
      at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
      at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
      at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
      at org.eclipse.core.launcher.Main.run(Main.java:973)
      at org.eclipse.core.launcher.Main.main(Main.java:948)
      


      Does anybody know that problem? What can I do to solve it?

      Thanks for your help!!

        • 1. Re: Eclipse Error when I use the AOP plugin / Aspect Manager
          xoxol

          Hi all :)

          I'm using eclipse 3.2.0 (org.jboss.ide.eclipse.jdt.aop.core_1.1.2.GA , org.jboss.ide.eclipse.jdt.aop.ui_1.1.2.GA) and i've this issue too :(

          !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
          !STACK 0
          java.lang.NoSuchMethodError: org.eclipse.jdt.internal.ui.JavaPlugin.getWorkingCopyManager()Lorg/eclipse/jdt/ui/IWorkingCopyManager;
           at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.getCompilationUnit(AopJavaEditorUtils.java:174)
           at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.refreshAdvisedMembers(AopJavaEditorUtils.java:143)
           at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.partActivated(AopJavaEditorUtils.java:138)
           at org.eclipse.ui.internal.PartListenerList2$1.run(PartListenerList2.java:68)
           at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
           at org.eclipse.core.runtime.Platform.run(Platform.java:843)
           at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
           at org.eclipse.ui.internal.PartListenerList2.firePartActivated(PartListenerList2.java:66)
           at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:77)
           at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
           at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
           at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
           at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3190)
           at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:588)
           at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2597)
           at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2521)
           at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2513)
           at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2498)
           at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
           at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2493)
           at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2478)
           at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
           at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
           at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$1.run(NewElementWizard.java:71)
           at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
           at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
           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:149)
           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)
          


          • 2. Re: Eclipse Error when I use the AOP plugin / Aspect Manager
            xoxol

            for solving this issue we should use eclipse 3.2.1
            +
            org.jboss.ide.eclipse.jdt.aop.core_1.2.0.Beta2, org.jboss.ide.eclipse.jdt.aop.ui_1.2.0.Beta2

            ))

            it works fine ))

            • 3. Re: Eclipse Error when I use the AOP plugin / Aspect Manager
              anjeshdubey

              I have this issue too what shud we do can any body help????


              !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
              !STACK 0
              java.lang.NoSuchMethodError: org.eclipse.jdt.internal.ui.JavaPlugin.getWorkingCopyManager()Lorg/eclipse/jdt/ui/IWorkingCopyManager;
              at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.getCompilationUnit(AopJavaEditorUtils.java:174)
              at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.refreshAdvisedMembers(AopJavaEditorUtils.java:143)
              at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.partActivated(AopJavaEditorUtils.java:138)
              at org.eclipse.ui.internal.PartListenerList2$1.run(PartListenerList2.java:68)
              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
              at org.eclipse.core.runtime.Platform.run(Platform.java:843)
              at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
              at org.eclipse.ui.internal.PartListenerList2.firePartActivated(PartListenerList2.java:66)
              at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:77)
              at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
              at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
              at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
              at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3190)
              at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:588)
              at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2597)
              at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2521)
              at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2513)
              at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2498)
              at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
              at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2493)
              at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2478)
              at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
              at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
              at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$1.run(NewElementWizard.java:71)
              at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
              at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
              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:149)
              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(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              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)

              • 4. Re: Eclipse Error when I use the AOP plugin / Aspect Manager
                kabirkhan

                AOP IDE is seriously out of date, it has not been maintained for about 2 years

                • 5. Re: Eclipse Error when I use the AOP plugin / Aspect Manager
                  busitech

                  That being said, is the hand-written ant task currently the preferred method of adding AOP precompiling to an Eclipse project?

                  • 6. Re: Eclipse Error when I use the AOP plugin / Aspect Manager
                    kabirkhan

                    I think you can add an Eclipse builder to do the AOPC stuff, but I am not familiar with the details

                    • 7. Re: Eclipse Error when I use the AOP plugin / Aspect Manager
                      busitech

                      What I have found is that by adding the AOP nature to the eclipse project, the builder gets added, and then automatic AOPC works great from there on.

                      However, the AOP nature brings with it the above problem each and every time file is opened for editing, or an editor tab is chosen to edit a different source file. The above exception is immediately thrown, and an eclipse message pops up asking you to check the error log.

                      Thank you.

                      • 8. Re: Eclipse Error when I use the AOP plugin / Aspect Manager
                        busitech

                        After upgrading to JBoss Tools 2.0.0 Beta3 and JBoss AOP Tools 1.2.0.Beta2 the problem is taken care of, and the builder task still works as expected...