This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215343 - Unable to obtain index from central (mirror) - IOE: Authorization exception retrieving nexus-maven-repository-index.properties
Summary: Unable to obtain index from central (mirror) - IOE: Authorization exception r...
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 215776 215778 215849 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-10 09:53 UTC by Tomas Danek
Modified: 2012-10-02 07:41 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
org-netbeans-modules-maven-embedder.nbm (1.60 MB, application/octet-stream)
2012-07-20 19:01 UTC, pgebauer
Details
org-netbeans-modules-maven-indexer.nbm (210.94 KB, application/octet-stream)
2012-07-20 19:02 UTC, pgebauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2012-07-10 09:53:19 UTC
Product Version: NetBeans IDE 7.2 (Build 201207092359)
Java: 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b08
System: Mac OS X version 10.7.4 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/7.2
Cache directory: /Users/tomas/Library/Caches/NetBeans/7.2
------------------------------
- start with fresh userdir; try to get index for central (or UK mirror):

INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could not (re-)index central
java.io.IOException: Authorization exception retrieving nexus-maven-repository-index.properties
	at org.apache.maven.index.updater.WagonHelper$WagonFetcher.retrieve(WagonHelper.java:190)
	at org.apache.maven.index.updater.WagonHelper$WagonFetcher.retrieve(WagonHelper.java:166)
	at org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:459)
	at org.apache.maven.index.updater.DefaultIndexUpdater.access$000(DefaultIndexUpdater.java:76)
	at org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:589)
	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:814)
	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:436)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$100(NexusRepositoryIndexerImpl.java:111)
[catch] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:503)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:497)
	at org.openide.util.Mutex.writeAccess(Mutex.java:399)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:497)
	at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:58)
	at org.netbeans.modules.maven.repository.RepositoryNode$RefreshIndexAction$1.run(RepositoryNode.java:241)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Comment 1 Milos Kleint 2012-07-10 10:41:50 UTC
I can access http://repo.maven.apache.org/maven2/.index/ through the browser just fine.
Comment 2 Milos Kleint 2012-07-10 10:42:37 UTC
I'll try at home without the oracle proxy business
Comment 3 Tomas Danek 2012-07-10 11:52:49 UTC
works in 7.1 - interesting.
Comment 4 Masaki Katakai 2012-07-10 11:59:12 UTC
same issue happens for me on Windows and Linux in my environment.
Comment 5 Milos Kleint 2012-07-10 12:23:35 UTC
https://hg.netbeans.org/core-main/rev/1aa01e27dd62
https://hg.netbeans.org/core-main/rev/851eee396848

need to set a User-Agent header entry to the http request.

please verify
Comment 6 Tomas Danek 2012-07-10 13:24:52 UTC
verified in custom core-main build

Product Version: NetBeans IDE Dev (Build 20120709-9b1112a899da)
Java: 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b08
System: Mac OS X version 10.7.4 running on x86_64; UTF-8; en_US (nb)
User directory: /tmp/mvnBugFixed
Cache directory: /tmp/mvnBugFixed/var/cache
Comment 7 Martin Janicek 2012-07-10 13:41:22 UTC
The patch seems fine to me
Comment 8 Tomas Danek 2012-07-10 13:47:34 UTC
Pending verification in 7.2
Comment 9 Milos Kleint 2012-07-10 15:37:58 UTC
http://hg.netbeans.org/releases/rev/26fca0756cca in release72 branch.
Comment 10 Quality Engineering 2012-07-10 22:36:12 UTC
Integrated into 'releases', will be available in build *201207101812* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/26fca0756cca
User: Milos Kleint <mkleint@netbeans.org>
Log: #215343 set the User-Agent header entry for requests retrieving the maven indexes
Comment 11 Quality Engineering 2012-07-11 03:29:13 UTC
Integrated into 'main-golden', will be available in build *201207110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1aa01e27dd62
User: Milos Kleint <mkleint@netbeans.org>
Log: #215343 set User-Agent header to requests retrieving the index
Comment 12 Tomas Danek 2012-07-11 07:23:24 UTC
works as a charm now.

Product Version: NetBeans IDE 7.2 (Build 201207101812)
Java: 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b08
System: Mac OS X version 10.7.4 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/7.2
Cache directory: /Users/tomas/Library/Caches/NetBeans/7.2
Comment 13 ChrisHall 2012-07-13 08:29:57 UTC
I'm also getting this exact same issue in 7.1.2, reverting back to 7.1 fixes the issue for me:


  Product Version         = NetBeans IDE 7.1.2 (Build 201204101705) (#0d549f9bc1e4)
  Operating System        = Linux version 3.4.4-2-ARCH running on amd64
  Java; VM; Vendor        = 1.7.0_03; Java HotSpot(TM) 64-Bit Server VM 22.1-b02; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0_03-b04
  Java Home               = /opt/jdk1.7.0_03/jre
  System Locale; Encoding = en_GB (nb); UTF-8
  Home Directory          = /home/chris
  Current Directory       = /home/chris/Documents
  User Directory          = /home/chris/.netbeans/7.1.2
  Cache Directory         = /home/chris/.netbeans/7.1.2/var/cache
Comment 14 Milos Kleint 2012-07-16 08:26:18 UTC
ChrisHall: unfortunately not much we can do for 7.1.2 (unless QA plans another patch release)
Comment 15 Marian Mirilovic 2012-07-16 08:29:46 UTC
(In reply to comment #14)
> ChrisHall: unfortunately not much we can do for 7.1.2 (unless QA plans another
> patch release)

Nom we do not plan any new patch release for 7.1.x
Comment 16 Antonin Nebuzelsky 2012-07-16 08:55:08 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > ChrisHall: unfortunately not much we can do for 7.1.2 (unless QA plans another
> > patch release)
> 
> Nom we do not plan any new patch release for 7.1.x

Not a full patch release, but we should release a single module update via autoupdate fixing this problem for 7.1.x.

Surprising is that 7.1 works and 7.1.2 is affected by this problem.

Milos, please prepare a patch for release71_fixes branch.
Comment 17 Milos Kleint 2012-07-16 09:57:21 UTC
http://hg.netbeans.org/releases/rev/c188636bb84a
Comment 18 Antonin Nebuzelsky 2012-07-17 11:47:07 UTC
PetrG, please build the two module NBM's from release71_fixes branch and attach the NBMs to this issue for testing. Thanks.

Tomas, as soon as you are back from vacation, please test the NBMs with 7.1.x. After we get GO from you, we will release them on 7.1.x update center.
Comment 19 Quality Engineering 2012-07-20 18:32:38 UTC
Integrated into 'releases', will be available in build *201207201426* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/c188636bb84a
User: Milos Kleint <mkleint@netbeans.org>
Log: #215343 set the User-Agent header entry for requests retrieving the maven indexes
Comment 20 pgebauer 2012-07-20 19:01:44 UTC
Created attachment 122232 [details]
org-netbeans-modules-maven-embedder.nbm
Comment 21 pgebauer 2012-07-20 19:02:49 UTC
Created attachment 122233 [details]
org-netbeans-modules-maven-indexer.nbm
Comment 22 Milos Kleint 2012-07-24 03:54:44 UTC
*** Bug 215849 has been marked as a duplicate of this bug. ***
Comment 23 Tomas Danek 2012-07-24 09:14:38 UTC
I was able to reproduce with 7.1.2 and was not able to reproduce after applying two attached patched modules -> Backport fix is ok from my point of view, we can proceed to stage these modules to testing.
Comment 24 Milos Kleint 2012-07-30 05:28:34 UTC
*** Bug 215776 has been marked as a duplicate of this bug. ***
Comment 25 Milos Kleint 2012-07-30 05:29:06 UTC
*** Bug 215778 has been marked as a duplicate of this bug. ***
Comment 27 Marian Mirilovic 2012-07-30 13:02:58 UTC
Adam, 
please verify the backports in NB 7.1.2 (use update centers from previous comment). Thanks in advance.
Comment 28 asenk 2012-07-31 13:24:40 UTC
Verified

I try 7.1.2 with updated modules from update center and i didn't saw this exception.
Comment 29 Antonin Nebuzelsky 2012-08-01 13:28:28 UTC
PetrG, please push the module updates to live UC. Thanks.
Comment 30 pgebauer 2012-08-01 15:34:38 UTC
Since versions 7.1, 7.1.1 and 7.1.2 share the same AUC Distribution, I have updated all.
Comment 31 Antonin Nebuzelsky 2012-08-02 10:46:58 UTC
Thanks, Petr.

This Maven update is now available for 7.1.2, 7.1.1 and 7.1.
Comment 32 beginner_ 2012-10-02 04:53:28 UTC
How do i get this update? (What to do with abovw attached files?) I have NetBeans IDE 7.2 (Build 201207171143) and can not connect to remote maven repositories through proxy. This works flawless with exact same settings in Netbeans 7.0.2
Comment 33 Milos Kleint 2012-10-02 07:41:17 UTC
(In reply to comment #32)
> How do i get this update? (What to do with abovw attached files?) I have
> NetBeans IDE 7.2 (Build 201207171143) and can not connect to remote maven
> repositories through proxy. This works flawless with exact same settings in
> Netbeans 7.0.2

The problem described here is fixed in 7.2. I suggest you file a separate issue or check issue 219162 in case your problem is duplicate.