[ 
https://issues.apache.org/jira/browse/NETBEANS-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16938209#comment-16938209
 ] 

Geertjan Wielenga commented on NETBEANS-3165:
---------------------------------------------

We’re working on reverting or providing an update, simplest would be to use 
11.2 beta1 on JDK 13 where the current latest nb-javac does work, see 
bit.ly/apache-netbeans-11-2-beta-1

> Java Modular Projects (ant) do not open after installing nb_parser 1.7
> ----------------------------------------------------------------------
>
>                 Key: NETBEANS-3165
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3165
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 11.1
>         Environment: Ubunut 19, Java 12.01
>            Reporter: Martin
>            Priority: Blocker
>
> 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)
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to