[jira] [Commented] (NETBEANS-2290) OnePassCompileWorker AssertionError followed by MultiPassCompileWorker NullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16950382#comment-16950382 ] John Neffenger commented on NETBEANS-2290: -- I published the project which encounters this problem as the [Monocle EPD|https://github.com/jgneff/monocle-epd] repository on GitHub. The project contains the JavaFX Graphics module as a NetBeans project using Apache Ant, OpenJDK 13, and the early-access JavaFX Linux SDK and documentation. See the README file for details. I don't yet have a minimal working example, but at least this project is relatively easy to set up and always hits the problem. I tested it again last night on NetBeans 11.2-beta2. NetBeans opens the project without problems when _nb-javac_ is not installed. After installing _nb-javac_, the project opens with compilation errors and errors reported in the Notifications Center window. Note that deactivating the _nb-javac_ plugin is not enough. You must uninstall it to prevent its use. Clear the NetBeans cache between tests if you don't see a change in behaviour, although that wasn't necessary in my tests. The two different errors reported last night with _nb-javac_ were: * java.lang.AssertionError: Analyzer error when processing: static final Map pseudoClassMap = new HashMap(64) * java.lang.AssertionError: Analyzer error when processing: private final Map idMap = new HashMap() The full stack reports for these errors are attached as the files [^AssertionError1.txt] and [^AssertionError3.txt]. > OnePassCompileWorker AssertionError followed by MultiPassCompileWorker > NullPointerException > --- > > Key: NETBEANS-2290 > URL: https://issues.apache.org/jira/browse/NETBEANS-2290 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.0, 11.1, 11.2 > Environment: OpenJDK 13 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: AssertionError1.txt, AssertionError3.txt, messages.txt, > nbjavac-active-errors.txt, nbjavac-deactivated-errors.txt, > netbeans-exceptions.txt > > > In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I > open the NetBeans project containing the OpenJFX graphics module > (javafx.graphics) the first time after clearing the cache. If I click through > the classes that failed to compile when opening the project, I can eventually > get NetBean to compile all of them successfully. > The errors are: > {code:java} > java.lang.AssertionError: Analyzer error when processing: > private LinkedList activeRunLoops > = new LinkedList() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > OnePassCompileWorker.compile(OnePassCompileWorker.java:257) > {code} > immediately followed by: > {code:java} > java.lang.NullPointerException at com.sun.tools.javac.comp. > Modules.setCompilationUnitModules(Modules.java:421) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) > {code} > The full text of the error and exception are attached below as the file > _netbeans-exceptions.txt_. > This might be the same problem reported for NetBeans 9.0 in [NETBEANS-1142: > Exception when scanning > projects|https://issues.apache.org/jira/browse/NETBEANS-1142]. -- 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
[jira] [Commented] (NETBEANS-2290) OnePassCompileWorker AssertionError followed by MultiPassCompileWorker NullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16940154#comment-16940154 ] John Neffenger commented on NETBEANS-2290: -- Thank you, Geertjan. I'll see whether I can reproduce the error myself in a much simpler project. I did try to debug the problem, running the module "Java Source nb-javac Bridge" in the debugger. I managed to catch the error, but this is my first time looking through the NetBeans source code, so it's slow going. > OnePassCompileWorker AssertionError followed by MultiPassCompileWorker > NullPointerException > --- > > Key: NETBEANS-2290 > URL: https://issues.apache.org/jira/browse/NETBEANS-2290 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.0, 11.1, 11.2 > Environment: OpenJDK 13 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: messages.txt, nbjavac-active-errors.txt, > nbjavac-deactivated-errors.txt, netbeans-exceptions.txt > > > In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I > open the NetBeans project containing the OpenJFX graphics module > (javafx.graphics) the first time after clearing the cache. If I click through > the classes that failed to compile when opening the project, I can eventually > get NetBean to compile all of them successfully. > The errors are: > {code:java} > java.lang.AssertionError: Analyzer error when processing: > private LinkedList activeRunLoops > = new LinkedList() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > OnePassCompileWorker.compile(OnePassCompileWorker.java:257) > {code} > immediately followed by: > {code:java} > java.lang.NullPointerException at com.sun.tools.javac.comp. > Modules.setCompilationUnitModules(Modules.java:421) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) > {code} > The full text of the error and exception are attached below as the file > _netbeans-exceptions.txt_. > This might be the same problem reported for NetBeans 9.0 in [NETBEANS-1142: > Exception when scanning > projects|https://issues.apache.org/jira/browse/NETBEANS-1142]. -- 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
[jira] [Commented] (NETBEANS-2290) OnePassCompileWorker AssertionError followed by MultiPassCompileWorker NullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16940149#comment-16940149 ] Geertjan Wielenga commented on NETBEANS-2290: - For me to reproduce this, if you want me to, you're going to need to provide a lot of information and assume that I have no background knowledge at all. > OnePassCompileWorker AssertionError followed by MultiPassCompileWorker > NullPointerException > --- > > Key: NETBEANS-2290 > URL: https://issues.apache.org/jira/browse/NETBEANS-2290 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.0, 11.1, 11.2 > Environment: OpenJDK 13 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: messages.txt, nbjavac-active-errors.txt, > nbjavac-deactivated-errors.txt, netbeans-exceptions.txt > > > In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I > open the NetBeans project containing the OpenJFX graphics module > (javafx.graphics) the first time after clearing the cache. If I click through > the classes that failed to compile when opening the project, I can eventually > get NetBean to compile all of them successfully. > The errors are: > {code:java} > java.lang.AssertionError: Analyzer error when processing: > private LinkedList activeRunLoops > = new LinkedList() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > OnePassCompileWorker.compile(OnePassCompileWorker.java:257) > {code} > immediately followed by: > {code:java} > java.lang.NullPointerException at com.sun.tools.javac.comp. > Modules.setCompilationUnitModules(Modules.java:421) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) > {code} > The full text of the error and exception are attached below as the file > _netbeans-exceptions.txt_. > This might be the same problem reported for NetBeans 9.0 in [NETBEANS-1142: > Exception when scanning > projects|https://issues.apache.org/jira/browse/NETBEANS-1142]. -- 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
[jira] [Commented] (NETBEANS-2290) OnePassCompileWorker AssertionError followed by MultiPassCompileWorker NullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16940146#comment-16940146 ] John Neffenger commented on NETBEANS-2290: -- I'm using "nbjavac Library [1.71] ." The project is the latest JavaFX Graphics module, but using Apache Ant to build just the one module rather than the full Gradle build that comes with OpenJFX. It is very easy to reproduce—simply open the project after having cleared the cache. It's also easy to work around---simply keep opening the files with errors until you trigger another pass, which usually fixes it. I suppose I could post my Ant project of the JavaFX Graphics module to GitHub, if that would help. I also see this problem all the time with almost any large project. Should I move this bug report to the _nb-javac Library_ instead? Where would that be? > OnePassCompileWorker AssertionError followed by MultiPassCompileWorker > NullPointerException > --- > > Key: NETBEANS-2290 > URL: https://issues.apache.org/jira/browse/NETBEANS-2290 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.0, 11.1, 11.2 > Environment: OpenJDK 13 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: messages.txt, nbjavac-active-errors.txt, > nbjavac-deactivated-errors.txt, netbeans-exceptions.txt > > > In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I > open the NetBeans project containing the OpenJFX graphics module > (javafx.graphics) the first time after clearing the cache. If I click through > the classes that failed to compile when opening the project, I can eventually > get NetBean to compile all of them successfully. > The errors are: > {code:java} > java.lang.AssertionError: Analyzer error when processing: > private LinkedList activeRunLoops > = new LinkedList() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > OnePassCompileWorker.compile(OnePassCompileWorker.java:257) > {code} > immediately followed by: > {code:java} > java.lang.NullPointerException at com.sun.tools.javac.comp. > Modules.setCompilationUnitModules(Modules.java:421) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) > {code} > The full text of the error and exception are attached below as the file > _netbeans-exceptions.txt_. > This might be the same problem reported for NetBeans 9.0 in [NETBEANS-1142: > Exception when scanning > projects|https://issues.apache.org/jira/browse/NETBEANS-1142]. -- 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
[jira] [Commented] (NETBEANS-2290) OnePassCompileWorker AssertionError followed by MultiPassCompileWorker NullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16940144#comment-16940144 ] Geertjan Wielenga commented on NETBEANS-2290: - Well, if you can work without nb-javac, that's great. > OnePassCompileWorker AssertionError followed by MultiPassCompileWorker > NullPointerException > --- > > Key: NETBEANS-2290 > URL: https://issues.apache.org/jira/browse/NETBEANS-2290 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.0, 11.1, 11.2 > Environment: OpenJDK 13 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: messages.txt, nbjavac-active-errors.txt, > nbjavac-deactivated-errors.txt, netbeans-exceptions.txt > > > In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I > open the NetBeans project containing the OpenJFX graphics module > (javafx.graphics) the first time after clearing the cache. If I click through > the classes that failed to compile when opening the project, I can eventually > get NetBean to compile all of them successfully. > The errors are: > {code:java} > java.lang.AssertionError: Analyzer error when processing: > private LinkedList activeRunLoops > = new LinkedList() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > OnePassCompileWorker.compile(OnePassCompileWorker.java:257) > {code} > immediately followed by: > {code:java} > java.lang.NullPointerException at com.sun.tools.javac.comp. > Modules.setCompilationUnitModules(Modules.java:421) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) > {code} > The full text of the error and exception are attached below as the file > _netbeans-exceptions.txt_. > This might be the same problem reported for NetBeans 9.0 in [NETBEANS-1142: > Exception when scanning > projects|https://issues.apache.org/jira/browse/NETBEANS-1142]. -- 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
[jira] [Commented] (NETBEANS-2290) OnePassCompileWorker AssertionError followed by MultiPassCompileWorker NullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16940143#comment-16940143 ] John Neffenger commented on NETBEANS-2290: -- Neither error occurs after uninstalling the _nb-javac Library_ under _Tools > Plugins_. Note that deactivating the _nbjavac_ plug-in was not enough. I had to actually uninstall it to get rid of the errors. [^nbjavac-active-errors.txt] shows the errors when the nb-javac Library is installed and active. [^nbjavac-deactivated-errors.txt] shows the errors when the nb-javac Library is installed but deactivated. > OnePassCompileWorker AssertionError followed by MultiPassCompileWorker > NullPointerException > --- > > Key: NETBEANS-2290 > URL: https://issues.apache.org/jira/browse/NETBEANS-2290 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.0, 11.1, 11.2 > Environment: OpenJDK 13 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: messages.txt, nbjavac-active-errors.txt, > nbjavac-deactivated-errors.txt, netbeans-exceptions.txt > > > In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I > open the NetBeans project containing the OpenJFX graphics module > (javafx.graphics) the first time after clearing the cache. If I click through > the classes that failed to compile when opening the project, I can eventually > get NetBean to compile all of them successfully. > The errors are: > {code:java} > java.lang.AssertionError: Analyzer error when processing: > private LinkedList activeRunLoops > = new LinkedList() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > OnePassCompileWorker.compile(OnePassCompileWorker.java:257) > {code} > immediately followed by: > {code:java} > java.lang.NullPointerException at com.sun.tools.javac.comp. > Modules.setCompilationUnitModules(Modules.java:421) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) > {code} > The full text of the error and exception are attached below as the file > _netbeans-exceptions.txt_. > This might be the same problem reported for NetBeans 9.0 in [NETBEANS-1142: > Exception when scanning > projects|https://issues.apache.org/jira/browse/NETBEANS-1142]. -- 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
[jira] [Commented] (NETBEANS-2290) OnePassCompileWorker AssertionError followed by MultiPassCompileWorker NullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16940139#comment-16940139 ] Geertjan Wielenga commented on NETBEANS-2290: - Can you use the nb-javac version 1.7.1 which fixes this? > OnePassCompileWorker AssertionError followed by MultiPassCompileWorker > NullPointerException > --- > > Key: NETBEANS-2290 > URL: https://issues.apache.org/jira/browse/NETBEANS-2290 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.0, 11.1, 11.2 > Environment: OpenJDK 13 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: messages.txt, nbjavac-active-errors.txt, > nbjavac-deactivated-errors.txt, netbeans-exceptions.txt > > > In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I > open the NetBeans project containing the OpenJFX graphics module > (javafx.graphics) the first time after clearing the cache. If I click through > the classes that failed to compile when opening the project, I can eventually > get NetBean to compile all of them successfully. > The errors are: > {code:java} > java.lang.AssertionError: Analyzer error when processing: > private LinkedList activeRunLoops > = new LinkedList() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > OnePassCompileWorker.compile(OnePassCompileWorker.java:257) > {code} > immediately followed by: > {code:java} > java.lang.NullPointerException at com.sun.tools.javac.comp. > Modules.setCompilationUnitModules(Modules.java:421) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) > {code} > The full text of the error and exception are attached below as the file > _netbeans-exceptions.txt_. > This might be the same problem reported for NetBeans 9.0 in [NETBEANS-1142: > Exception when scanning > projects|https://issues.apache.org/jira/browse/NETBEANS-1142]. -- 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
[jira] [Commented] (NETBEANS-2290) OnePassCompileWorker AssertionError followed by MultiPassCompileWorker NullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16940072#comment-16940072 ] John Neffenger commented on NETBEANS-2290: -- I no longer think the problem is due to low memory. I ran with the following logging level added to the NetBeans startup properties in the _netbeans.conf_ file: {noformat} -J-Dorg.netbeans.modules.parsing.lucene.support.LowMemoryWatcher.level=100 {noformat} Yet all of the log messages indicate that the memory was fine (Low memory condition: false), as in the following example: {noformat} FINEST [org.netbeans.modules.parsing.lucene.support.LowMemoryWatcher]: Max memory: 4,177,526,784, Used memory: 993,271,808, Low memory condition: false {noformat} I now think that the first _AssertionError_ might be causing the second _NullPointerException_. Below is a more recent sequence of the two errors. First, the _AssertionError_: {noformat} java.lang.AssertionError: Analyzer error when processing: private static final ParsedValueImpl ZERO_PERCENT = new ParsedValueImpl(new Size(0.0F, SizeUnits.PERCENT), null) at com.sun.tools.javac.util.Assert.error(Assert.java:162) at com.sun.tools.javac.comp.Analyzer.doAnalysis(Analyzer.java:578) at com.sun.tools.javac.comp.Analyzer$2.flush(Analyzer.java:549) at com.sun.tools.javac.comp.Analyzer.flush(Analyzer.java:586) at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1500) at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1468) at com.sun.tools.javac.api.JavacTaskImpl$1.process(JavacTaskImpl.java:504) at com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:651) at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:507) [catch] at org.netbeans.modules.java.source.nbjavac.indexing.OnePassCompileWorker.compile(OnePassCompileWorker.java:257) {noformat} And the _NullPointerException_ that follows immediately after it: {noformat} java.lang.NullPointerException at com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:421) at com.sun.tools.javac.comp.Modules.enter(Modules.java:287) at com.sun.tools.javac.comp.Modules.enter(Modules.java:268) at com.sun.tools.javac.comp.Modules.initModules(Modules.java:259) at com.sun.tools.javac.main.JavaCompiler.initModules(JavaCompiler.java:1121) at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:393) at com.sun.tools.javac.api.JavacTaskImpl.enterTrees(JavacTaskImpl.java:451) [catch] at org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) {noformat} The [^messages.log] attachment contains a 160-line excerpt of the log messages showing the context of the two exceptions. > OnePassCompileWorker AssertionError followed by MultiPassCompileWorker > NullPointerException > --- > > Key: NETBEANS-2290 > URL: https://issues.apache.org/jira/browse/NETBEANS-2290 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.0, 11.1, 11.2 > Environment: OpenJDK 13 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: messages.log, netbeans-exceptions.txt > > > In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I > open the NetBeans project containing the OpenJFX graphics module > (javafx.graphics) the first time after clearing the cache. If I click through > the classes that failed to compile when opening the project, I can eventually > get NetBean to compile all of them successfully. > The errors are: > {code:java} > java.lang.AssertionError: Analyzer error when processing: > private LinkedList activeRunLoops > = new LinkedList() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > OnePassCompileWorker.compile(OnePassCompileWorker.java:257) > {code} > immediately followed by: > {code:java} > java.lang.NullPointerException at com.sun.tools.javac.comp. > Modules.setCompilationUnitModules(Modules.java:421) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) > {code} > The full text of the error and exception are attached below as the file > _netbeans-exceptions.txt_. > This might be the same problem reported for NetBeans 9.0 in [NETBEANS-1142: > Exception when scanning > projects|https://issues.apache.org/jira/browse/NETBEANS-1142]. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To
[jira] [Commented] (NETBEANS-2290) OnePassCompileWorker AssertionError followed by MultiPassCompileWorker NullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16939666#comment-16939666 ] John Neffenger commented on NETBEANS-2290: -- The second exception is logged as follows: {noformat} WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: MultiPassCompileWorker caused an exception File: file:/home/john/src/ide/monocle-epd/src/javafx.graphics/classes/module-info.java Root: /home/john/src/ide/monocle-epd/src/javafx.graphics/classes Bootpath: nbjrt:file:/home/john/opt/jdk-13/!/modules/java.base/:nbjrt:file:/home/john/opt/jdk-13/!/modules/java.datatransfer/:nbjrt:file:/home/john/opt/jdk-13/!/modules/java.desktop/:nbjrt:file:/home/john/opt/jdk-13/!/modules/java.xml/:nbjrt:file:/home/john/opt/jdk-13/!/modules/jdk.unsupported/ Classpath: /home/john/lib/javafx-sdk-13/lib/javafx.base.jar Sourcepath: /home/john/src/ide/monocle-epd/src/javafx.graphics/classes java.lang.NullPointerException at com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:421) at com.sun.tools.javac.comp.Modules.enter(Modules.java:287) at com.sun.tools.javac.comp.Modules.enter(Modules.java:268) at com.sun.tools.javac.comp.Modules.initModules(Modules.java:259) at com.sun.tools.javac.main.JavaCompiler.initModules(JavaCompiler.java:1121) at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:393) at com.sun.tools.javac.api.JavacTaskImpl.enterTrees(JavacTaskImpl.java:451) [catch] at org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204) {noformat} The error occurs in the {{compile}} method of [MultiPassCompileWorker.java|https://github.com/apache/netbeans/blob/master/java/java.source.nbjavac/src/org/netbeans/modules/java/source/nbjavac/indexing/MultiPassCompileWorker.java]. The last line in the code below throws the {{NullPointerException}}: {code:java} if (isLowMemory(flm)) { dumpSymFiles(jt, previous.createdFiles, context); jt = null; diagnosticListener.cleanDiagnostics(); trees = null; if ((state & MEMORY_LOW) != 0) { if (isBigFile) { break; } else { bigFiles.add(active); active = null; state &= ~MEMORY_LOW; } } else { state |= MEMORY_LOW; } freeMemory(true); continue; } Iterable types; types = jt.enterTrees(trees); {code} It seems that the {{NullPointerException}} is due to taking the path within the preceding {{if}} statement, which causes the {{jt}} variable to be set to {{null}}. As a work-around, I tried increasing the heap size with {{"-J-Xms1g -J-Xmx4g"}} and even {{"-J-Xms4g -J-Xmx4g"}} in the {{netbeans.conf}} file, but the error still occurred. > OnePassCompileWorker AssertionError followed by MultiPassCompileWorker > NullPointerException > --- > > Key: NETBEANS-2290 > URL: https://issues.apache.org/jira/browse/NETBEANS-2290 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.2 > Environment: Product = Apache NetBeans IDE 11.2 (Snap edge channel > dated 2019-09-26) > Java = OpenJDK 13 (build 13+33) > Operating System = Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: netbeans-exceptions.txt > > > In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I > open the NetBeans project containing the OpenJFX graphics module > (javafx.graphics) the first time after clearing the cache. If I click through > the classes that failed to compile when opening the project, I can eventually > get NetBean to compile all of them successfully. > The errors are: > {code:java} > java.lang.AssertionError: Analyzer error when processing: > private LinkedList activeRunLoops > = new LinkedList() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. > OnePassCompileWorker.compile(OnePassCompileWorker.java:257) > {code} > immediately followed by: > {code:java} > java.lang.NullPointerException at com.sun.tools.javac.comp. > Modules.setCompilationUnitModules(Modules.java:421) > [catch] at org.netbeans.modules.java.source.nbjavac.indexing. >