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

Java Modular Projects (ant) do not open after installing nb-javac 1.7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 11.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 19, Java 12.01

    • Flags:
      Important

      Description

      Upon opening classic netbeans (ant) modular project, an exception notifications shows immediately.

      None of my projects do open.

      Removed Nb completly and reinstalled, then again got asked to install nb_parser 1.7.

      Same effect immediatly.

       

      The exception is as follows:

       

      Annotation: An error occurred during parsing of '/home/martin/Projects/xxx/classes/module-info.java'. Please report a bug against java/source and attach dump file '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Annotation: An error occurred during parsing of '/home/martin/Projectsxxx/src/xxx/classes/module-info.java'. Please report a bug against java/source and attach dump file '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Annotation: An error occurred during parsing of '/home/martin/Projects/xxx/classes/module-info.java'. Please report a bug against java/source and attach dump file '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.An error occurred during parsing of '/home/martin/Projects/xxxclasses/module-info.java'. Please report a bug against java/source and attach dump file '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.An error occurred during parsing of '/home/martin/Projects/mtmscu/xxx/classes/module-info.java'. Please report a bug against java/source and attach dump file '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Caused: java.lang.AssertionError: duplicate context value at com.sun.tools.javac.util.Context.put(Context.java:141) at org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader.preRegister(TreeLoader.java:104) at org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader$TreeLoaderRegistryImpl.enhance(TreeLoader.java:577) at org.netbeans.modules.java.source.parsing.JavacParser.lambda$createJavacTask$10(JavacParser.java:796) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) at org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:796) at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getJavacTask(CompilationInfoImpl.java:374) at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:587) 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.source.JavaSourceUtilImpl$1.parseModule(JavaSourceUtilImpl.java:290) at org.netbeans.modules.java.preprocessorbridge.api.ModuleUtilities.parseModule(ModuleUtilities.java:80) at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:844) at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:363) at org.netbeans.modules.parsing.impl.indexing.PathRegistry.createResources(PathRegistry.java:719) at org.netbeans.modules.parsing.impl.indexing.PathRegistry.getSources(PathRegistry.java:275) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:4888) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:5821)[catch] at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3420) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6183) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$4300(RepositoryUpdater.java:5834) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2$1.run(RepositoryUpdater.java:6099) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:83) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6095) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6091) 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.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6091) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Meeser Martin
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: