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.
I'd like to enable "failOnMessage(Level.WARNING)" in my NbTestCase in my platform application test, but in RELEASE74 there is one warning upon platform startup that prevents me from doing this: INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy resolver: Mac WARNING [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy reloading failed! Trying fallback resolver. INFO [org.netbeans.core.network.proxy.fallback.FallbackNetworkProxy]: Fallback system proxy resolver: no http_proxy variable found INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy reloading succeeded. Fallback provider was successful. What seems to be happening is that NetBeans is trying to look up system proxy settings while executing a unit test. That seems non-ideal, since tests are supposed to be stable across platforms. What's the right way to disable the proxy server for purposes of running unit tests--or more generally, what is the right way to set NetBeans preferences in a unit test?
This should fix it: http://hg.netbeans.org/core-main/rev/6c8473aefad0
http://wiki.netbeans.org/DevFaqNetBeansFullHack edited
Jirko, this may help you with the problem we discused (issue 234632)
Thank you!
Integrated into 'main-silver', will be available in build *201311220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/6c8473aefad0 User: Libor Fischmeistr <lfischmeistr@netbeans.org> Log: #237469: Avoid "System network proxy reloading failed!" warning from NbTestCase in NB JUnit
Does it mean that system proxy settings are ignored? In that case we need to set proxy a different way when testing update center, Maven projects etc.
(In reply to Jiri Skrivanek from comment #6) > Does it mean that system proxy settings are ignored? In that case we need to > set proxy a different way when testing update center, Maven projects etc. It means that the default Java proxy selector is used. The NbProxySelector is not set up.
How do I disable the System proxy check with project on maven? WARNING [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy resolver: no suitable found, using fallback. INFO [org.netbeans.core.network.proxy.fallback.FallbackNetworkProxy]: Fallback system proxy resolver: no http_proxy variable found INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy reloading succeeded. INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - mode: direct INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy: falled to default (corect if direct mode went before) Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.981 sec <<< FAILURE!
(In reply to tombart from comment #8) > How do I disable the System proxy check with project on maven? tombart, could you be more specific? Do you mean just logging or system network proxy detection in general? Thanks > WARNING [org.netbeans.core.network.proxy.NetworkProxyReloader]: System > network proxy resolver: no suitable found, using fallback. > INFO [org.netbeans.core.network.proxy.fallback.FallbackNetworkProxy]: > Fallback system proxy resolver: no http_proxy variable found > INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network > proxy reloading succeeded. > INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network > proxy - mode: direct > INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network > proxy: falled to default (corect if direct mode went before) > Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.981 sec > <<< FAILURE!