You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Eric Barboni (Jira)" <ji...@apache.org> on 2020/03/26 16:50:00 UTC

[jira] [Commented] (NETBEANS-4071) Indexing fail no such Element Exception

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

Eric Barboni commented on NETBEANS-4071:
----------------------------------------

The following exception occurs.
{code:java}
java.util.NoSuchElementException
	at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:141)
	at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:1)
	at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76)
	at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1)
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
Caused: org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
      role: org.apache.maven.settings.crypto.SettingsDecrypter
  roleHint: 
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:267)
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:249)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:478)
Caused: java.io.IOException: could not find protocol handler for https://repo.maven.apache.org/maven2/
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:613)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$200(NexusRepositoryIndexerImpl.java:122)
[catch] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$2$1.run(NexusRepositoryIndexerImpl.java:640)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$2$1.run(NexusRepositoryIndexerImpl.java:637)
	at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
	at org.openide.util.Mutex.writeAccess(Mutex.java:246)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$2.run(NexusRepositoryIndexerImpl.java:637)
	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)

{code}
I try to put some debugging information to explore the plexus lookup. It seems incomplete and fail to find the SettingsDecrypter instance in the lookup
{code:java}
org.apache.maven.index.DefaultIndexerEngine@713d7123
org.apache.maven.index.incremental.DefaultIncrementalHandler@3d3d3d98
org.apache.maven.index.DefaultQueryCreator@e90e325
org.apache.maven.index.DefaultArtifactContextProducer@7679f6ef
org.apache.maven.index.updater.DefaultIndexUpdater@6cd7356a
org.apache.maven.index.treeview.DefaultIndexTreeView@38520495
org.apache.maven.index.DefaultScanner@31525171
org.apache.maven.index.artifact.DefaultArtifactPackagingMapper@8a5173a
org.apache.maven.index.DefaultSearchEngine@5d8c0f21
org.apache.maven.index.packer.DefaultIndexPacker@75d2dea9
org.apache.maven.index.DefaultIndexer@56a8d0bb
org.apache.maven.index.DefaultNexusIndexer@76941193
maven-archetype
org.apache.maven.index.artifact.M1GavCalculator@4b5cfd67
min
maven-plugin
jarContent
osgi-metadatas
org.apache.maven.index.artifact.M2GavCalculator@28985533
{code}

> Indexing fail no such Element Exception
> ---------------------------------------
>
>                 Key: NETBEANS-4071
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4071
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.0
>            Reporter: Eric Barboni
>            Priority: Major
>
> Go to services,maven repositories, select central repository
> press updat index in popup menu.
> Exception happen, may be created by the maven update



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

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

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