-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connection problems behind forced proxy #1126
Comments
I've tried the nightly builds. The described problem I have here from the build OpenJDK8U_x64_windows_hotspot_2018-09-20-18-33. Until build OpenJDKU_x64_windows_hotspot_2018-09-19-15-36 there are no problems. If I look at the differences here, I can see immediately that there has been a change in Visual C++ from 2010 to 2012. The same change happened during the releases between update 202 and 212. |
I'll assign this to @ali-ince who is juggling a few of these. We need to unblock him on an infra piece I think and then the toolchains will get upgraded. |
Hi @lherschi, I wasn't able to reproduce this on my Windows 10 environment but I'm trying to get a clean Windows 7 installation to verify. In the meantime, would you please verify if copying |
I've just verified the connection problem again with windows 7, 8.1 and 10. Copying the file has not helped any of the system. Exception: |
I have looked at the netbeans sources and it probably fails loading winhttp.dll |
It seems that netbeans ships with its own native DLLs which depend on One temporary workaround would be to install Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package on the system so that Netbeans' DLLs will be able to locate their dependencies. Would it be possible for you to verify if this works? |
The installation of MSVC 2010 Redistributable fixes the connection problem. It is important to install the bit version appropriate for the JDK. |
Platform: Windows 7
Architecture: x64
I have connection problems inside netbeans 8.2 in conjunction with AdoptOpenJDK 8. The problem only occurs when you have to connect via a proxy. The problem exists since update 212, both b03 and b04 with HotSpot JVM. The problem is not with OpenJ9 JVM nor with Oracle JDK or openjdkbuild. You can easily readjust this via the netbeans menu Help -> Check for Updates. It can no longer be established connection and I get the following exception in the log.
INFO [org.netbeans.modules.autoupdate.updateprovider.DownloadListener]: Reading URL http://plugins.netbeans.org/nbpluginportal/updates/8.2/catalog.xml.gz failed (java.net.ConnectException: Connection timed out: connect) INFO [org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler] java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:357) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1040) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1038) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1037) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984) at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess.checkRedirect(NetworkAccess.java:252) at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess.access$700(NetworkAccess.java:69) at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess$Task$2.call(NetworkAccess.java:172) at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess$Task$2.call(NetworkAccess.java:150) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
With update 212 I get in the netbeans log at start only the following info.
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy resolver: Windows
With the other jdks or older adoptopenjdk releases the proxy can be determined and I have thereby no connection problems.
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy resolver: Windows INFO [org.netbeans.core.network.proxy.windows.WindowsNetworkProxy]: Windows system proxy resolver: auto detect INFO [org.netbeans.core.network.proxy.windows.WindowsNetworkProxy]: Windows system proxy resolver: auto - PAC (http://wpad/wpad.dat) INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy reloading succeeded. INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - mode: auto INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - pac url: http://wpad/wpad.dat INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy TEST - http host: squid.incore INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy TEST - http port: 3128
The text was updated successfully, but these errors were encountered: