2 Replies Latest reply: Jun 7, 2012 11:32 AM by crogers RSS

    Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbenc

    942278
      I get error when using jsp editor,

      I have debugged as what is causing the error
      and
      I found out that when I use jstl
      <c:forEach var="anything" varStatus="index">
      *${index.count}*
      </c:forEach>


      The code ${index.count} is causing the follwoing error


      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
      !STACK 0
      java.lang.NullPointerException
           at oracle.eclipse.tools.common.services.ui.refactor.internal.ArtifactRefactoringEnablementTester.hasArtifactDefinitionAtOffset(ArtifactRefactoringEnablementTester.java:73)
           at oracle.eclipse.tools.common.services.ui.refactor.internal.ArtifactRefactoringEnablementTester.test(ArtifactRefactoringEnablementTester.java:60)
           at org.eclipse.core.internal.expressions.Property.test(Property.java:58)
           at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:99)
           at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
           at org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:72)
           at org.eclipse.ui.internal.services.EvaluationResultCache.evaluate(EvaluationResultCache.java:74)
           at org.eclipse.ui.internal.services.ExpressionAuthority.evaluate(ExpressionAuthority.java:165)
           at org.eclipse.ui.internal.services.EvaluationAuthority.addEvaluationListener(EvaluationAuthority.java:79)
           at org.eclipse.ui.internal.services.EvaluationService.addEvaluationListener(EvaluationService.java:47)
           at org.eclipse.ui.internal.menus.WorkbenchMenuService.registerVisibleWhen(WorkbenchMenuService.java:884)
           at org.eclipse.ui.internal.menus.ContributionRoot.addContributionItem(ContributionRoot.java:60)
           at org.eclipse.ui.internal.menus.MenuAdditionCacheEntry.createContributionItems(MenuAdditionCacheEntry.java:188)
           at org.eclipse.ui.internal.menus.WorkbenchMenuService$5.run(WorkbenchMenuService.java:584)
           at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
           at org.eclipse.ui.internal.menus.WorkbenchMenuService.processAdditions(WorkbenchMenuService.java:656)
           at org.eclipse.ui.internal.menus.WorkbenchMenuService.addContributionsToManager(WorkbenchMenuService.java:744)
           at org.eclipse.ui.internal.menus.WorkbenchMenuService.populateContributionManager(WorkbenchMenuService.java:730)
           at org.eclipse.ui.internal.menus.WorkbenchMenuService.addContributionsToManager(WorkbenchMenuService.java:782)
           at org.eclipse.ui.internal.menus.WorkbenchMenuService.populateContributionManager(WorkbenchMenuService.java:730)
           at org.eclipse.ui.internal.menus.SlaveMenuService.populateContributionManager(SlaveMenuService.java:203)
           at org.eclipse.ui.internal.menus.SlaveMenuService.populateContributionManager(SlaveMenuService.java:76)
           at org.eclipse.ui.internal.PopupMenuExtender.addMenuContributions(PopupMenuExtender.java:357)
           at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:335)
           at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:342)
           at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:473)
           at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:469)
           at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:495)
           at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:247)
           at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
           at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
           at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
           at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
           at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:4881)
           at org.eclipse.swt.widgets.Control.windowProc(Control.java:4557)
           at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
           at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1610)
           at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2061)
           at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
           at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
           at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:256)
           at org.eclipse.swt.widgets.Display.runPopups(Display.java:4206)
           at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3748)
           at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
           at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
           at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
           at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
           at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
           at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
           at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
           at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
           at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
           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:344)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
           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.equinox.launcher.Main.invokeFramework(Main.java:622)
           at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
           at org.eclipse.equinox.launcher.Main.run(Main.java:1410)