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.
Summary: | JUnit plugin not known to Plugin Manager during first start | ||
---|---|---|---|
Product: | platform | Reporter: | Jesse Glick <jglick> |
Component: | Autoupdate | Assignee: | Libor Fischmeistr <lfischmeistr> |
Status: | NEW --- | ||
Severity: | normal | CC: | cyhelsky, exceptions_reporter, issues, javydreamercsw, thurka |
Priority: | P4 | Keywords: | API |
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jesse Glick
2011-04-08 12:33:12 UTC
The junit is usually installed after 10-30s delay after the first start of ide (but can be MUCH longer if some big projects are opened) - because of this the projects which need junit (even newly created ones eg. anagram game) have reference problems during this time. In case of longer delay or fast clicking it is even possible to resolve them by installing junit from plugin portal( and in the process AGAIN agreeing to the junit license). IMHO the delay is too long and should be shortened if not eliminated completely. Solveable by downloading the JUnit directly from installer. Using following trick: nbexec -cp install-callback.jar -J-Dnetbeans.mainclass=installer.Callback the Callback class then will have as good proxy as any NetBeans application and can perform the download (via AutoUpdateTask). Product Version: NetBeans IDE 7.0 (Build 201104080000) Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02 System: Windows 7 version 6.1 running on x86; Cp1252; de_DE (nb) With first start and empty userdir I get this exception: INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Trying external URL: m2:/junit:junit:3.8.2:jar:javadoc WARNING [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Cannot connect to m2:/junit:junit:3.8.2:jar:javadoc INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Details java.net.MalformedURLException: unknown protocol: m2 at java.net.URL.<init>(URL.java:574) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) [catch] at org.netbeans.modules.autoupdate.services.InstallSupportImpl.externalDownload(InstallSupportImpl.java:1269) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:765) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:687) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.access$600(InstallSupportImpl.java:117) at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:211) at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:158) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) br, josh. (In reply to comment #3) > With first start and empty userdir I get this exception: > > java.net.MalformedURLException: unknown protocol: m2 > at java.net.URL.<init>(URL.java:574) > [catch] at org.netbeans.modules.autoupdate.services.InstallSupportImpl.externalDownload(InstallSupportImpl.java:1269) This will happen if you have an ergonomics-based build, or otherwise do not have the IDE's Java support enabled. It is harmless as the JUnit libs are then downloaded directly via HTTP. *** Bug 211846 has been marked as a duplicate of this bug. *** *** Bug 213910 has been marked as a duplicate of this bug. *** Since JUnit could be installed during IDE installation so this issue is not so important => decreasing to P4 |