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.
Created attachment 116288 [details] Stack trace - exception in the log file When creating a new client-side web project and when I specify JavaScript libraries on the last panel, download of the libraries fails when connected through proxy. Without proxy everything works fine. Strangely, on the first attempt, when I selected 3 libraries (jQuery, modernizr and underscore), the download of 2 of them passed, and only jQuery failed. After this, the size of jQuery on the disk was 0. Then the action timed out and a dialog "Some of the library files could not be retrieved" was displayed. On the second attempt, there is no timeout and the progress bar is hangs forever while trying to download jQuery. Also, there is an exception in the log file, I am attaching the stack trace. Cc'ing also Jirka as he owns the proxy detection area. My proxy in the system is set to "Auto Proxy Discovery" and in NetBeans to "Use System Proxy Settings". I am connected via WiFi over VPN to the company network.
Created attachment 116289 [details] Thread dump while the progress bar is shown
Jirka, it is possible I'm not doing something in the code which I should. I have a URL and I simply call openStream() on it and then FileUtil.copy(is, os) to download a content of the URL into a local file. What's missing? As long as other IDE features downloading something from internet works then my code must be broken. Thanks, -David
(In reply to comment #2) > Jirka, > > it is possible I'm not doing something in the code which I should. I have a URL > and I simply call openStream() on it and then FileUtil.copy(is, os) to download > a content of the URL into a local file. I don't see any problem there. I.e. Autoupdate calls URL.openStream() and then open connection by new InputSource(new BufferedInputStream (is)); > What's missing? As long as other IDE features downloading something from > internet works then my code must be broken. I'll stop by at Petr and investigate this on his laptop. > > Thanks, > -David
It looks like the proxy problem affects only https URLs, not http URLs. The workaround for me is to manually set proxy to emea-proxy.uk.oracle.com:80 in the IDE, for both http and https. Jirko, can you please check if there is something special about handling https? Thanks.
*** Bug 208511 has been marked as a duplicate of this bug. ***
Any update on this Jirka?
*** Bug 207948 has been marked as a duplicate of this bug. ***
Issue 207948 relates to connection from IDE to Amazon Cloud via our new Amazon Beanstalk support. Means we should aim to resolve this issue for 7.2 as multiple clients are impacted.
Right. Steps to reproduce in trunk build are (when within the Oracle network, and using system proxy settings in IDE options): 1. Go to Tools -> Cloud Providers 2. Click Add Cloud..., select Amazon Beanstalk and click Next 3. Enter some bogus values (does not need to represent an existing account) and click Next => Connection will time out, there are some messages in the IDE log. When I am not in Oracle network, I am getting an error response from the Amazon site in the log file: INFO [com.amazonaws.request]: Received error response: Status Code: 403...
ide/Code is supposed be used by external reporters once they do not know where issue belongs to ... reassigning back to web
Hey Marian, STOP creating more work for everyone. This issue was assigned to Jirka Rechtacek ON PURPOSE - you changed that. If you can not spend 15 seconds to figure out that this issue relates to proxy handling, not web apps, then you'd better leave it as it is. > ide/Code is supposed be used by external reporters Why only external? The ide/Code category description says "Issues you don't where to place, or general IDE issues", which is exactly my case. I don't see any obvious category for proxy settings.
Still reproducible with latest build on Mac.
Hopefully it was improved by core-main/rev/88346dd7e9a1
Integrated into 'main-golden', will be available in build *201204060400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/88346dd7e9a1 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #209095: fixed Malformed PAC URI
Created attachment 118400 [details] Connection failed stack trace. It is the same as described in bug 207948 - still cannot connect with system proxy settings. Product Version: NetBeans IDE Dev (Build 201204160400) Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
As this manifests itself with the cloud plugins (Oracle and Amazon) that are a part of NB 7.2, I am raising priority to P2.
core-main/rev/1232c265e24a
*** Bug 211145 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201204260400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1232c265e24a User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #209095: Can not connect to https addresses via the autodetected proxy
This should be fixed in Beta. Jirko, please backport to release72_beta branch. Thanks.
(In reply to comment #20) > This should be fixed in Beta. > > Jirko, please backport to release72_beta branch. Thanks. http://hg.netbeans.org/releases/rev/58283f167525
I verified that I can now connect to the Oracle Cloud, but I still have an issue with the Amazon Cloud. Here is what I am getting in the console when connecting to Amazon: INFO [com.amazonaws.request]: Sending Request: POST https://elasticbeanstalk.us-east-1.amazonaws.com / Parameters: (Action: CreateStorageLocation, SignatureMethod: HmacSHA256, AWSAccessKeyId: ABCDEFGHIJKLMNOPQRST, SignatureVersion: 2, Version: 2010-12-01, Signature: IDeletedThis, Timestamp: 2012-05-02T12:39:00.327Z, ) INFO [org.apache.http.impl.client.DefaultHttpClient]: I/O exception (java.net.SocketException) caught when connecting to the target host: Broken pipe INFO [org.apache.http.impl.client.DefaultHttpClient]: Retrying connect WARNING [com.amazonaws.http.AmazonHttpClient]: Unable to execute HTTP request: Connect to elasticbeanstalk.us-east-1.amazonaws.com/elasticbeanstalk.us-east-1.amazonaws.com/207.171.168.69 timed out Then the wizard displays an error message telling me it can not connect. When trying using direct connection, the wizard progresses to the next step.
(In reply to comment #22) > I verified that I can now connect to the Oracle Cloud, Great. > but I still have an > issue with the Amazon Cloud. Here is what I am getting in the console when > connecting to Amazon: It's a different problem. Amazon Cloud client opens a socket connection in contrast to a https connection in Oracle Cloud Client. Let's track it as an separate issue 212030.
Integrated into 'releases', will be available in build *201210100002* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/58283f167525 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #209095: Can not connect to https addresses via the autodetected proxy (transplanted from 1232c265e24a4d131aafb80c15fa9243b3edd3e9)
*** Bug 202500 has been marked as a duplicate of this bug. ***