You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2021/03/31 11:41:17 UTC

[GitHub] [netbeans] sdedic commented on pull request #2848: Branding API to disable Maven index download

sdedic commented on pull request #2848:
URL: https://github.com/apache/netbeans/pull/2848#issuecomment-810998124


   Not exactly sure what is the intent :) Updates (= refreshes for an existing content) are disabled IMHO, but still the IDE seems to hit
   ```
   java.lang.Exception: Stack trace
   	at java.lang.Thread.dumpStack(Thread.java:1336)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:469)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$200(NexusRepositoryIndexerImpl.java:122)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$2$1.run(NexusRepositoryIndexerImpl.java:631)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$2$1.run(NexusRepositoryIndexerImpl.java:628)
   	at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
   	at org.openide.util.Mutex.writeAccess(Mutex.java:252)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$2.run(NexusRepositoryIndexerImpl.java:628)
   	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 seems to be initiated by
   ```
   java.lang.Exception: Stack trace
   	at java.lang.Thread.dumpStack(Thread.java:1336)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.spawnIndexLoadedRepo(NexusRepositoryIndexerImpl.java:625)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$1000(NexusRepositoryIndexerImpl.java:122)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$6.run(NexusRepositoryIndexerImpl.java:946)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$6.run(NexusRepositoryIndexerImpl.java:937)
   	at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
   	at org.openide.util.Mutex.writeAccess(Mutex.java:252)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.iterate(NexusRepositoryIndexerImpl.java:937)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.filterGroupIds(NexusRepositoryIndexerImpl.java:984)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.filterGroupIds(NexusRepositoryIndexerImpl.java:975)
   	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.getGroups(NexusRepositoryIndexerImpl.java:911)
   	at org.netbeans.modules.maven.indexer.api.RepositoryQueries.lambda$getGroupsResult$0(RepositoryQueries.java:251)
   	at org.netbeans.modules.maven.indexer.api.RepositoryQueries.getQueryResult(RepositoryQueries.java:217)
   	at org.netbeans.modules.maven.indexer.api.RepositoryQueries.getGroupsResult(RepositoryQueries.java:248)
   	at org.netbeans.modules.maven.grammar.MavenProjectGrammar.getDynamicValueCompletion(MavenProjectGrammar.java:467)
   	at org.netbeans.modules.maven.grammar.spi.AbstractSchemaBasedGrammar.queryValues(AbstractSchemaBasedGrammar.java:368)
   	at org.netbeans.modules.xml.text.completion.XMLCompletionQuery.queryValues(XMLCompletionQuery.java:309)
   	at org.netbeans.modules.xml.text.completion.XMLCompletionQuery.query(XMLCompletionQuery.java:100)
   	at org.netbeans.modules.xml.text.completion.XMLCompletionProvider$Query.query(XMLCompletionProvider.java:207)
   	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:198)
   	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)```
   ```
   
   To reproduce:
   - Clean userdir, especially config/Preferences and var/cache. start the IDE. 
   - Wait for ~2 minutes - the update process does indeed not run
   - Open a pom.xml with dependencies
   - Open a completion on some dependnency artifactId or groupId element.
   
   ![indexing](https://user-images.githubusercontent.com/26788611/113138922-bb141480-9226-11eb-83be-8fe08368d289.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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