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 240225 - "System Proxy Settings" with WPAD not working
Summary: "System Proxy Settings" with WPAD not working
Status: RESOLVED DUPLICATE of bug 235202
Alias: None
Product: platform
Classification: Unclassified
Component: Proxy (show other bugs)
Version: 7.4
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-10 15:30 UTC by pns
Modified: 2014-01-14 11:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (240.31 KB, application/octet-stream)
2014-01-14 10:52 UTC, pns
Details
PAC file (5.22 KB, application/octet-stream)
2014-01-14 10:52 UTC, pns
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pns 2014-01-10 15:30:24 UTC
I have Internet Explorer configured with an automatic configuration script URL. Every application in my system can connect fine using "System Proxy Settings" except NetBeans.

In NetBeans I have to explicity configure the proxy URL otherwise using the option "Use System Proxy Settings" doesn't work.

The following exception is thrown when trying to test the connection when "System Proxy Settings" is active:

> 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://my.proxy.address/wpad.dat
> INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy TEST - http host: 
> INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy TEST - http port: 0
> INFO [org.netbeans.core.ui.options.general.GeneralOptionsModel]: Cannot connect via http protocol.
> java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
> 	at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
> 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> 	at java.net.Socket.connect(Socket.java:579)
> 	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
> 	at sun.net.www.http.HttpClient$1.run(HttpClient.java:484)
> 	at sun.net.www.http.HttpClient$1.run(HttpClient.java:482)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:481)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:522)
> 	at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:308)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:326)
> 	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
> 	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:975)
> 	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
> 	at org.netbeans.core.ui.options.general.GeneralOptionsModel.testHttpConnection(GeneralOptionsModel.java:330)
> [catch] at org.netbeans.core.ui.options.general.GeneralOptionsModel.testProxy(GeneralOptionsModel.java:315)
> 	at org.netbeans.core.ui.options.general.GeneralOptionsModel.access$000(GeneralOptionsModel.java:62)
> 	at org.netbeans.core.ui.options.general.GeneralOptionsModel$1.run(GeneralOptionsModel.java:244)
> 	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
> 	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)

PS: Using Netbeans 7.4 Update 2
Comment 1 Libor Fischmeistr 2014-01-13 10:55:10 UTC
Hello,

thank you for the report.

Could you please attach your PAC file? Of course without real addresses. The logic is important.

Also please attach full log: http://wiki.netbeans.org/FaqLogMessagesFile

There may be some similarity with issue 235202.
Comment 2 pns 2014-01-14 10:52:10 UTC
Created attachment 143935 [details]
Log file
Comment 3 pns 2014-01-14 10:52:30 UTC
Created attachment 143936 [details]
PAC file
Comment 4 pns 2014-01-14 10:54:16 UTC
Hi Libor,

I I attached the files you requested. In the PAC file I replaced every domain address with DOMAIN keyword and every IP address with the IP keyword. Everything else was untouched.
Comment 5 Libor Fischmeistr 2014-01-14 11:02:02 UTC
(In reply to pns from comment #4)
> Hi Libor,
> 
> I I attached the files you requested. In the PAC file I replaced every
> domain address with DOMAIN keyword and every IP address with the IP keyword.
> Everything else was untouched.

Thank you for all files. As I guessed, it's the same problem like in issue 235202.
NetBeans cannot deal with "dnsResolve()" function in the PAC file.

*** This bug has been marked as a duplicate of bug 235202 ***