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 233718 - Better user feedback in case of JUnit download failure
Summary: Better user feedback in case of JUnit download failure
Status: NEW
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords: PLAN, UI
Depends on:
Blocks:
 
Reported: 2013-07-31 13:17 UTC by František Mantlík
Modified: 2014-02-10 14:15 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Installer log with broken JUnit download (4.89 MB, text/plain)
2013-07-31 13:17 UTC, František Mantlík
Details
JUnit installation failed (61.56 KB, image/png)
2013-07-31 14:22 UTC, Jiri Rechtacek
Details
generic network problems (59.92 KB, image/png)
2013-07-31 14:23 UTC, Jiri Rechtacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description František Mantlík 2013-07-31 13:17:52 UTC
Created attachment 138065 [details]
Installer log with broken JUnit download

The Netbeans Installer should provide reasonable user feedback in case of failure downloading JUnit modules.

Description of the problem:
==========================
During installation of Netbeans DEV 201307302300 at Windows 7 64bit JDK 1.7.0_25, the JUnit module was not installed due to the following problem:

[2013-07-31 13:05:27.319]:     [stdout]: Downloading JUnit 4
[2013-07-31 13:05:27.770]:     [stderr]: INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Trying external URL: http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar
[2013-07-31 13:05:28.570]:     [stderr]: Cannot resolve external reference to m2:/junit:junit:4.10:jar
[2013-07-31 13:05:28.570]:     [stderr]: Cannot resolve external reference to m2:/junit:junit:4.10:jar
[2013-07-31 13:05:28.570]:     [stderr]: WARNING [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Cannot connect to http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar
[2013-07-31 13:05:28.570]:     [stderr]: INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Details
[2013-07-31 13:05:28.570]:     [stderr]: java.io.IOException: Server returned HTTP response code: 503 for URL: http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar
[2013-07-31 13:05:28.570]:     [stderr]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)

The repo1.maven.org was temporarily unavailable.

The installer wizard itself DID NOT REPORT ANY PROBLEM, but the installed IDE was broken. The JUnit module was unable to load when IDE started with the only possible option to disable it. Another attempts to re-enable the module failed because of a missing module and uninstall button for the module was inactive. The only possible solution was to uninstall the IDE and install it back once more later.

Proposed solution:
=================
The installer should check whether the Junit module was installed properly when corresponding autoupdate task was finished. If the Junit installation failed, some action should be taken providing reasonable feedback to the user. In the above case, the installer wizard should report at the end of installation e.g. that JUnit installation failed because of HTTP code 503 or something similar possibly with recommendation to the user to retry the installation again later.
Comment 1 Jiri Rechtacek 2013-07-31 14:22:54 UTC
Created attachment 138075 [details]
JUnit installation failed
Comment 2 Jiri Rechtacek 2013-07-31 14:23:31 UTC
Created attachment 138076 [details]
generic network problems
Comment 3 Jiri Rechtacek 2013-07-31 14:25:21 UTC
I attached screenshots with user notification (since 7.3) when some problems found. Maybe it might be more highlighted...
Comment 4 František Mantlík 2013-07-31 15:09:07 UTC
Jiri, thank you for your quick feedback.

I can see two problems with the reporting as presented in the JUnit installation failed screenshot:

- Installation should not be considered completed successfully because IDE is broken and will not start successfully;

- In my case described above it was not possible to use Plugin Manager to re-install broken JUnit because the only active function for the module was (not working) Activate button. The only straightforward way out was complete re-installation of the IDE.

Maybe the simplest and sufficient solution would be: 

- replace the text "Installation completed successfully" with something like "Problems occurred during installation process. See messages below for details." in case of problems and

- in case of JUnit failure replace "use Plugin Manager to install JUnit library later." with something like "Try uninstall and re-install the IDE later." or so.
Comment 5 František Mantlík 2013-07-31 15:16:14 UTC
One more comment:

Most probably, the unavailability of JUnit module un-installation option was caused by permissions of non-elevated run of the IDE under Windows. If the IDE would be run in elevated (admin) mode, re-installation of the Junit module would be most probably possible.