[
https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16940072#comment-16940072
]
John Neffenger edited comment on NETBEANS-2290 at 9/28/19 4:19 PM:
-------------------------------------------------------------------
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<Size, Size> ZERO_PERCENT = new ParsedValueImpl<Size, Size>(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.txt] attachment contains a 160-line excerpt of the log messages
showing the context of the two exceptions.
was (Author: jgneff):
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<Size, Size> ZERO_PERCENT = new ParsedValueImpl<Size, Size>(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.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<RunLoopControl> activeRunLoops
> = new LinkedList<RunLoopControl>()
> 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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists