[
https://issues.apache.org/jira/browse/NETBEANS-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Checchi updated NETBEANS-3544:
-------------------------------------
Description:
If using the nb-javac plugin, the following error will be thrown when
attempting to scan the project if 500 or more files are present in one project
source folder.
I've attached a test project that contains 500 empty java files. Opening this
project with no local cache will produce the error. The error dialogs can all
be cleared but attempts to work with the source in this state will cause other
errors to occur. For example, give any class a variable pointing to any other
class. From the referencing class, use Ctrl+R to attempt to rename the
referenced other class. This will cause the exeception again.
Note that if you start with a less than 500 files, you can add files past the
500 mark, You can also subsequently open that project and continue working but
attempting to refactor will usually cause errors.
{quote} java.lang.AssertionErrorjava.lang.AssertionError at
com.sun.tools.javac.util.Assert.error(Assert.java:155) at
com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62) at
com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:559) 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:1126) 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)
at
org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
at
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
at
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RefreshCifIndices$1.call(RepositoryUpdater.java:4142)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RefreshCifIndices$1.call(RepositoryUpdater.java:4081)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$4.run(RepositoryUpdater.java:2127)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2123)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2104)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1500(RepositoryUpdater.java:136)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RefreshCifIndices.getDone(RepositoryUpdater.java:4171)
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)
{quote}
was:
If using the nb-javac plugin, the following error will be thrown when
attempting to scan the project if 500 or more files are present in one project
source folder.
I've attached a test project that contains 500 empty java files. Opening this
project with no local cache will produce the error. The error dialogs can all
be cleared but attempts to work with the source in this state will cause other
errors to occur. For example, give any class a variable pointing to any other
class. From the referencing class, use Ctrl+R to attempt to rename the
referenced other class. This will cause the exeception again.
Note that if you start with a less than 500 files, you can add files past the
500 mark, You can also subsequently open that project and continue working.
{quote} java.lang.AssertionErrorjava.lang.AssertionError at
com.sun.tools.javac.util.Assert.error(Assert.java:155) at
com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62) at
com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:559) 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:1126) 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)
at
org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
at
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
at
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RefreshCifIndices$1.call(RepositoryUpdater.java:4142)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RefreshCifIndices$1.call(RepositoryUpdater.java:4081)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$4.run(RepositoryUpdater.java:2127)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2123)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2104)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1500(RepositoryUpdater.java:136)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RefreshCifIndices.getDone(RepositoryUpdater.java:4171)
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)
{quote}
> 500 files causes nb-javac to fail
> ---------------------------------
>
> Key: NETBEANS-3544
> URL: https://issues.apache.org/jira/browse/NETBEANS-3544
> Project: NetBeans
> Issue Type: Bug
> Environment: Product Version: Apache NetBeans IDE 11.2-dev
> Java: 12.0.2; OpenJDK 64-Bit Server VM 12.0.2+10
> Runtime: OpenJDK Runtime Environment 12.0.2+10
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> Reporter: Andrew Checchi
> Priority: Major
> Attachments: 500JavaFilesProject.zip
>
>
> If using the nb-javac plugin, the following error will be thrown when
> attempting to scan the project if 500 or more files are present in one
> project source folder.
> I've attached a test project that contains 500 empty java files. Opening this
> project with no local cache will produce the error. The error dialogs can all
> be cleared but attempts to work with the source in this state will cause
> other errors to occur. For example, give any class a variable pointing to any
> other class. From the referencing class, use Ctrl+R to attempt to rename the
> referenced other class. This will cause the exeception again.
> Note that if you start with a less than 500 files, you can add files past the
> 500 mark, You can also subsequently open that project and continue working
> but attempting to refactor will usually cause errors.
> {quote} java.lang.AssertionErrorjava.lang.AssertionError at
> com.sun.tools.javac.util.Assert.error(Assert.java:155) at
> com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62) at
> com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:559)
> 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:1126) 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)
> at
> org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
> at
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
> at
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RefreshCifIndices$1.call(RepositoryUpdater.java:4142)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RefreshCifIndices$1.call(RepositoryUpdater.java:4081)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$4.run(RepositoryUpdater.java:2127)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2123)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2104)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1500(RepositoryUpdater.java:136)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RefreshCifIndices.getDone(RepositoryUpdater.java:4171)
> 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)
> {quote}
--
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