Issue #12 resolved

exception with GlobalFileUsages

Ernie Rael
created an issue

Menu>Edit>GlobalFileUsages produces following. Trying the menu item again produces a much shorter exception (see very end). Not a problem for me, I was just trying stuff. (need to re-familiarize...) Other things seem to be working.

This occurs with /jackpot30/ $ hg log -l1 changeset: 560:2b6daaf118d9 tag: tip user: Jan Lahoda jlahoda@netbeans.org date: Mon Mar 21 18:37:22 2011 +0100 summary: The doNotREgisterClassPath flag to BatchSearch.verify should work a

and NetBeans main-silver of changeset: 191343:6fac9990abaa tag: tip parent: 191341:223a117261b0 parent: 191342:8a9d17db98fd user: ffjre@netbeans.org date: Mon Mar 21 22:38:22 2011 +0100 summary: Merge of http://hg.netbeans.org/cnd-main/

java.lang.IllegalStateException: Cannot call getCompilationInfo() if current phase < JavaSource.Phase.PARSED. You must call toPhase(Phase.PARSED) first. at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getCompilationUnit(CompilationInfoImpl.java:201) at org.netbeans.api.java.source.CompilationInfo.getCompilationUnit(CompilationInfo.java:182) at org.netbeans.api.java.source.TreeUtilities.pathFor(TreeUtilities.java:238) at org.netbeans.modules.jackpot30.impl.refactoring.findusages.GlobalFindUsagesAction$1.run(GlobalFindUsagesAction.java:96) at org.netbeans.modules.jackpot30.impl.refactoring.findusages.GlobalFindUsagesAction$1.run(GlobalFindUsagesAction.java:94) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:482) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:154) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:138) at org.netbeans.modules.parsing.impl.TaskProcessor$1.call(TaskProcessor.java:201) at org.netbeans.modules.parsing.impl.TaskProcessor$1.call(TaskProcessor.java:198) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:168) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:356) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:66) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:198) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:432) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:403) at org.netbeans.modules.jackpot30.impl.refactoring.findusages.GlobalFindUsagesAction.actionPerformed(GlobalFindUsagesAction.java:94) at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:137) at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95) at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116) at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99) at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:140) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850) at java.awt.Component.processMouseEvent(Component.java:6267) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6032) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

========== subsequent attempts produce java.lang.ArrayIndexOutOfBoundsException: -1 at org.netbeans.modules.jackpot30.impl.batch.ProgressHandleWrapper.finish(ProgressHandleWrapper.java:175) at org.netbeans.modules.jackpot30.impl.refactoring.findusages.GlobalFindUsagesRefactoringPlugin.performSearchForPattern(GlobalFindUsagesRefactoringPlugin.java:100) at org.netbeans.modules.jackpot30.impl.refactoring.findusages.GlobalFindUsagesRefactoringPlugin.prepare(GlobalFindUsagesRefactoringPlugin.java:87) [catch] at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:419) at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:403) at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:218) at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$10.run(ParametersPanel.java:543) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)

Comments (2)

  1. Log in to comment