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 221714 - Better notification of problems while install JUnit plugin
Summary: Better notification of problems while install JUnit plugin
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Manager (show other bugs)
Version: 7.3
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-08 11:27 UTC by Jiri Kovalsky
Modified: 2012-11-25 03:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the error message when download of JUnit installation failed. (512.87 KB, image/png)
2012-11-08 11:27 UTC, Jiri Kovalsky
Details
Messages log containing some related exceptions. (66.15 KB, application/octet-stream)
2012-11-08 11:38 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2012-11-08 11:27:33 UTC
Created attachment 127385 [details]
Screenshot of the error message when download of JUnit installation failed.

Product Version: NetBeans IDE Dev (Build 201211080001)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b15
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Documents and Settings\tester\Application Data\NetBeans\dev
Cache directory: C:\Documents and Settings\tester\Local Settings\Application Data\NetBeans\cache\dev

Description:
============
In my VirtualBox 4.2 I installed Windows XP and started to test the latest development build of NetBeans 7.3 on JDK 7 Update 10. I created new AnagramGame project which needed JUnit so I tried to install it. However, the process stalled at 4% for some time and then displayed a weird error message [1]. See attached screenshot. The only workaround is to somehow download the plugin and install it manually. Any idea what might be wrong?

[1] Error message after the attempt to download JUnit plugin failed:

There were some problems while storing JUnit.

Cause: m2:/junit:junit:3.8.2:jar:javadoc
Comment 1 Jiri Kovalsky 2012-11-08 11:38:37 UTC
Created attachment 127386 [details]
Messages log containing some related exceptions.
Comment 2 Jiri Kovalsky 2012-11-08 11:40:08 UTC
So, manual installation also fails. :(
Comment 3 Ondrej Vrabec 2012-11-08 12:09:42 UTC
Can you see e.g. the welcome screen? The log is full of:
Reading URL http://updates.netbeans.org/netbeans/updates/dev/uc/final/main/catalog.xml.gz?unique=0c4f4856e-5300-4e91-8506-5dfbcb7c974f_70b31bbf-2e70-47ea-a1f9-5e3d4719cf48 failed (java.net.ConnectException: Connection timed out: connect)
Cannot connect to http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2-javadoc.jar
There seems to be an overall problem with network. Does for example Reload catalog in Tools -> Plugins work?
Comment 4 Jiri Rechtacek 2012-11-08 12:15:45 UTC
WARNING [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Cannot
connect to http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar
INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Details
java.net.ConnectException: Connection timed out: connect

also your Maven repository is not available - java.io.FileNotFoundException:
m2:/junit:junit:4.10:jar

So, the only thing what could be improved is the error messages box.
Comment 5 Jiri Kovalsky 2012-11-08 13:17:22 UTC
Yes, news were loaded just fine. I don't think that improving the message box will help. I downloaded the org-netbeans-lib-junit4.nbm, and tried to install it via Tools > Plugins > Downloaded > Add Plugins... > Install and this off-line installation failed too.
Comment 6 Jiri Rechtacek 2012-11-08 14:06:43 UTC
(In reply to comment #5)
> it via Tools > Plugins > Downloaded > Add Plugins... > Install and this
> off-line installation failed too.
As you know junit.nbm is just a wrapper for jars which are placed on remote location - can be installed only if IDE is connected.

In your case choose one of proxies which is able to download http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2-javadoc.jar - unluckily not all proxies can do this.

> Yes, news were loaded just fine. I don't think that improving the message box
> will help. I downloaded the org-netbeans-lib-junit4.nbm, and tried to install
It might help if allows user to change their network proxy settings and try again.
Comment 7 Jiri Kovalsky 2012-11-09 11:27:25 UTC
Update: I successfully installed the JUnit being at home directly connected to the Internet without any proxy.
Comment 8 Jiri Rechtacek 2012-11-23 19:32:38 UTC
http://hg.netbeans.org/core-main/rev/1df1e844d081
Comment 9 Quality Engineering 2012-11-25 03:09:11 UTC
Integrated into 'main-golden', will be available in build *201211250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1df1e844d081
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #221714: Better notification of problems while install JUnit plugin