Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4469

Exception thrown while refactoring classes and methods

    XMLWordPrintableJSON

Details

    Description

      Occasionally, following exception is thrown while renaming a class or method.

      INFO [null]: Last record repeated again.
      SEVERE [org.openide.util.Exceptions]
      java.lang.NoSuchFieldError: pat
      at org.netbeans.modules.java.source.save.CasualDiff.matchCase(CasualDiff.java:5755)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3125)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3083)
      at org.netbeans.modules.java.source.save.CasualDiff.listsMatch(CasualDiff.java:5715)
      at org.netbeans.modules.java.source.save.CasualDiff.matchSwitch(CasualDiff.java:5751)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3123)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3083)
      at org.netbeans.modules.java.source.save.CasualDiff.listsMatch(CasualDiff.java:5715)
      at org.netbeans.modules.java.source.save.CasualDiff.matchBlock(CasualDiff.java:5725)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3111)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3083)
      at org.netbeans.modules.java.source.save.CasualDiff.matchLambda(CasualDiff.java:5889)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3237)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3083)
      at org.netbeans.modules.java.source.save.CasualDiff.listsMatch(CasualDiff.java:5715)
      at org.netbeans.modules.java.source.save.CasualDiff.matchApply(CasualDiff.java:5798)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3149)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3083)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3137)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3083)
      at org.netbeans.modules.java.source.save.CasualDiff.listsMatch(CasualDiff.java:5715)
      at org.netbeans.modules.java.source.save.CasualDiff.matchBlock(CasualDiff.java:5725)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3111)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3083)
      at org.netbeans.modules.java.source.save.CasualDiff.matchLambda(CasualDiff.java:5889)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3237)
      at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:3083)
      at org.netbeans.modules.java.source.save.CasualDiff.listsMatch(CasualDiff.java:5715)
      at org.netbeans.modules.java.source.save.CasualDiff.diffApply(CasualDiff.java:2285)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl0(CasualDiff.java:5508)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl(CasualDiff.java:5332)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:5259)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:5230)
      at org.netbeans.modules.java.source.save.CasualDiff.diffExec(CasualDiff.java:2186)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl0(CasualDiff.java:5490)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl(CasualDiff.java:5332)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:5259)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:5230)
      at org.netbeans.modules.java.source.save.CasualDiff.diffList(CasualDiff.java:4066)
      at org.netbeans.modules.java.source.save.CasualDiff.diffBlock(CasualDiff.java:1644)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl0(CasualDiff.java:5451)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl(CasualDiff.java:5332)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:5259)
      at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:5242)
      at org.netbeans.modules.java.source.save.CasualDiff.diff(CasualDiff.java:347)
      at org.netbeans.api.java.source.WorkingCopy.processCurrentCompilationUnit(WorkingCopy.java:920)
      at org.netbeans.api.java.source.WorkingCopy.getChanges(WorkingCopy.java:1332)
      at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:676)
      at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:663)
      at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:502)
      at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
      at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:166)
      at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:138)
      at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
      at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
      at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
      at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
      at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
      at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
      at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
      at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:83)
      at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:452)
      at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:423)
      at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:684)
      at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:320)
      at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:263)
      at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:245)
      at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.createAndAddElements(JavaRefactoringPlugin.java:335)
      at org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin.prepare(RenameRefactoringPlugin.java:626)
      [catch] at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:417)
      at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:401)
      at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:212)
      at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:1063)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
      at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
      at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

      Attachments

        Issue Links

          Activity

            People

              timboudreau Tim Boudreau
              wjprakash Winston Prakash
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m