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

Opening .form/.java file raises exception from java parser

Rank to TopRank to BottomVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 9.0
    • Fix Version/s: 9.0
    • Component/s: java - Source
    • Labels:
      None

      Description

      Error

      When opening a .form/.java file combination I get an exception, that is raised from the java parser:

      Annotation: An error occurred during parsing of '/tmp/vcs-1522660054567/vcs-1522660054568/NotifyHtmlPanel.java'. Please report a bug against java/source and attach dump file '/home/matthias/src/incubator-netbeans/nbbuild/testuserdir/var/log/NotifyHtmlPanel.dump'.
      Annotation: An error occurred during parsing of '/tmp/vcs-1522660054567/vcs-1522660054568/NotifyHtmlPanel.java'. Please report a bug against java/source and attach dump file '/home/matthias/src/incubator-netbeans/nbbuild/testuserdir/var/log/NotifyHtmlPanel.dump'.
      Annotation: An error occurred during parsing of '/tmp/vcs-1522660054567/vcs-1522660054568/NotifyHtmlPanel.java'. Please report a bug against java/source and attach dump file '/home/matthias/src/incubator-netbeans/nbbuild/testuserdir/var/log/NotifyHtmlPanel.dump'.
      Annotation: An error occurred during parsing of '/tmp/vcs-1522660054567/vcs-1522660054568/NotifyHtmlPanel.java'. Please report a bug against java/source and attach dump file '/home/matthias/src/incubator-netbeans/nbbuild/testuserdir/var/log/NotifyHtmlPanel.dump'.
      An error occurred during parsing of '/tmp/vcs-1522660054567/vcs-1522660054568/NotifyHtmlPanel.java'. Please report a bug against java/source and attach dump file '/home/matthias/src/incubator-netbeans/nbbuild/testuserdir/var/log/NotifyHtmlPanel.dump'.
      An error occurred during parsing of '/tmp/vcs-1522660054567/vcs-1522660054568/NotifyHtmlPanel.java'. Please report a bug against java/source and attach dump file '/home/matthias/src/incubator-netbeans/nbbuild/testuserdir/var/log/NotifyHtmlPanel.dump'.
      Caused: org.netbeans.modules.java.source.parsing.FileObjects$InvalidFileException: Invalid or deleted file: /tmp/vcs-1522660054567/vcs-1522660054568/NotifyHtmlPanel.java
          at org.netbeans.modules.java.source.parsing.FileObjects.sourceFileObject(FileObjects.java:354)
          at org.netbeans.modules.java.source.parsing.FileObjects.sourceFileObject(FileObjects.java:334)
      Caused: java.lang.IllegalArgumentException
          at org.netbeans.modules.java.source.parsing.FileObjects.sourceFileObject(FileObjects.java:337)
          at org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:730)
          at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getJavacTask(CompilationInfoImpl.java:374)
      [catch] at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:580)
          at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:361)
          at org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:84)
          at org.netbeans.modules.java.JavaNode$IconTask$SourceIcon$1.run(JavaNode.java:443)
          at org.netbeans.modules.java.JavaNode$IconTask$SourceIcon$1.run(JavaNode.java:440)
          at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
          at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
          at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
          at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
          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:81)
          at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451)
          at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422)
          at org.netbeans.modules.java.JavaNode$IconTask$SourceIcon.computeIcon(JavaNode.java:440)
          at org.netbeans.modules.java.JavaNode$IconTask.run(JavaNode.java:402)
          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)
      Caused: org.openide.util.RequestProcessor$FastItem: task failed due to

      The resulting dump file is attached.

      Steps to reproduce

      This is on Ubuntu linux with Oracle JDK 10 - not sure if that is a part of the problem. I used git master as of 2018-04-01 (54c60bed3f197bb99d42f007f1fa314a9a30cd5c).

      • run: ant tryme
      • open the subversion module in the git checkout
      • open org.netbeans.modules.subversion.util.NotifyHtmlPanel

      I looks as if this stops happening after scanning is done. Could this be a race condition?

        Attachments

        1. NotifyHtmlPanel.dump
          18 kB
          Matthias Bläsing

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              Unassigned
              Reporter:
              matthiasblaesing Matthias Bläsing

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment