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 239130 - Netbeans-Chrome-Connector stopped working
Summary: Netbeans-Chrome-Connector stopped working
Status: RESOLVED INCOMPLETE
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-04 20:34 UTC by vb8190
Modified: 2015-02-24 12:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Chrome Version (90.68 KB, image/png)
2013-12-05 16:52 UTC, vb8190
Details
Blank_Screen (63.00 KB, image/png)
2013-12-05 16:53 UTC, vb8190
Details
NetbeansScreenSgotAfterWebkitConfigChange (121.67 KB, image/png)
2013-12-05 16:57 UTC, vb8190
Details
Using_Just_Chrome_No_Connector (1.84 MB, image/png)
2013-12-05 18:57 UTC, vb8190
Details
Found Socket Error in the Chrome Debugger - Screen Shot Attached (42.34 KB, image/png)
2013-12-05 20:40 UTC, vb8190
Details
The message.log file after I see the blank page (45.19 KB, application/octet-stream)
2013-12-06 13:55 UTC, vb8190
Details
Netstat Command Results (107.11 KB, image/png)
2013-12-06 14:05 UTC, vb8190
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vb8190 2013-12-04 20:34:00 UTC
I am writing a angularJS application and it seems my netbean-chrome connector has stopped working abruptly. Every time I am trying to run the application using Chrome With Netbean browser connector all I see is a blank page. It was working when I first installed but then stopped working one day. I looked at netbeans log files as well as Network Monitor nothing gets logged there. The only hing I see is chrome launches with blank page and this gets displayed in the URL:

file:///C:/Users/vb8190/AppData/Local/Temp/blank3968113582980758389.html


I have already uninstalled netbeans/chrome/connector plugin..and have restarted the machine but nothing is helping.

We are as a company are trying to migrate to Netbeans but this defect is blocking us.
Comment 1 Vladimir Riha 2013-12-05 07:31:20 UTC
Could you please:
 - attach version of Chrome, ideally e.g. screenshot of chrome://version/
 - the NetBeans log , just to be sure
 - is it possible, that port 8383 is already in use? (assuming you are not running the project on custom server). You can find it by running this in command prompt (when NetBeans is no running):
   netstat -na | find "8383"

 - try to open [netbeans installation folder]/etc/netbeans.conf, and find line

netbeans_default_options="-J-client....

   and add one more parameter at the beginning
 
netbeans_default_options="-J-Dshow.webkit.protocol=true -J-client...

  and start NetBeans. Now if you run the angular project in Chrome with NB integration again, try to open Output window from main menu Window->Output. There should be tab called Webkit Protocol. Could you please attach the output here? (please note it is possible that this tab won't be there in your case though)
 

I just tried it on Windows 8 with Chrome 31.0.1650.63 m and it works for me with NetBeans 7.4


Thank you.
Comment 2 vb8190 2013-12-05 16:52:16 UTC
Created attachment 142873 [details]
Chrome Version
Comment 3 vb8190 2013-12-05 16:53:28 UTC
Created attachment 142874 [details]
Blank_Screen
Comment 4 vb8190 2013-12-05 16:57:19 UTC
Created attachment 142875 [details]
NetbeansScreenSgotAfterWebkitConfigChange

The webkit configuration parameter did not create any webkit tab for me.
Comment 5 vb8190 2013-12-05 16:57:50 UTC
Comment on attachment 142873 [details]
Chrome Version

The chrome version screen shot.
Comment 6 vb8190 2013-12-05 16:59:15 UTC
Comment on attachment 142874 [details]
Blank_Screen

This is the screen which appears when I run through chrome connector. I see correct screen if I change the association to regular IE or Chrome browser.
Comment 7 vb8190 2013-12-05 17:01:31 UTC
It also worked for me when I initially installed it on my PC but it stopped working around last week for some weird reason. I am in a process of checking the port. I run on windows machine locally and not unix so trying to find out the way to get the busy port info on windows.
Comment 8 vb8190 2013-12-05 18:57:16 UTC
Created attachment 142882 [details]
Using_Just_Chrome_No_Connector

If I use plain vanilla Chrome without the connector the application comes up on port 8383. I checked with our System Admin and on windows there is no way to capture the info like what all processes are using a certain port as in unix. But I think if 8383 was getting used by some other process, the application would not have come up when i used plain chrome browser from netbeans.
Comment 9 vb8190 2013-12-05 20:40:05 UTC
Created attachment 142886 [details]
Found Socket Error in the Chrome Debugger - Screen Shot Attached
Comment 10 Vladimir Riha 2013-12-06 12:58:46 UTC
Thank you for the detailed information. Could you attach also the IDE log please?

Ad used port: If it works without the integration, then it's really likely not the issue with 8383. There is one more port that is used with inspection, port 8008. I don't know your setup, but on mine Windows 7 and Windows 8, if I open command prompt (on Windows 7: Start -> search for 'cmd', cmd.exe should be found, click on it to run it) and type

  netstat -na | find "8008"

it prints if the port is used (you're right there is no info about who uses it). If it prints nothing, then it is not used. Could you try it with the port 8008? The socket error you've found was thrown when IDE/extension tried to open connection to 

ws://127.0.0.1:8008/



I've just tried it on Windows7 and Chrome 31.0.1650.63 m

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b40
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 11 Vladimir Riha 2013-12-06 13:01:53 UTC
(In reply to Vladimir Riha from comment #10)
> 
> I've just tried it on Windows7 and Chrome 31.0.1650.63 m

* and it works for me
Comment 12 vb8190 2013-12-06 13:55:48 UTC
Created attachment 142908 [details]
The message.log file after I see the blank page
Comment 13 vb8190 2013-12-06 14:05:30 UTC
Created attachment 142910 [details]
Netstat Command Results

I executed the netstat command on port 8008 after launching netbeans and then launching chrome(which shows blank page).

Again, as I said earlier it worked for me when i installed netbeans first time on my machine but then something happened and it stopped working. So I think there is some kind of a bug. I was looking at netbeans database and some folks reported the exact same kind of issue but when they restarted their machine it started working. For me I tried reinstalling and restarting everything and it does not work.

We are also evaluating webstorm and its chrome debugger runs on 6363 and it never shows a problem on my machine so again I feel its the problem with this particular netbeans connector and some of the folks are going to run into this problem.

If you  look into your database this same issue has been reported before too.
Comment 14 Vladimir Riha 2013-12-06 14:30:37 UTC
I'm only trying to reproduce it. One last thing I could think of is, are you behind some proxy server? As the netstat command prints 127.0.0.1 for me and in your case it is not localhost IP.

Because I did kind of reproduce it with following:
 - open Internet Explorer, select Tools->Internet Options, select Connections tab and press LAN settings button (it looks like [1])
 - check "Use a proxy server...", specify proxy server Address and Port and also UNCHECK "Bypass proxy for local addresses"

This causes even "localhost" (aka 127.0.0.1) goes through some proxy server you defined in the dialog. With this settings, it connector does not work. But if you CHECK the "Bypass proxy for local addresses" , then connections to localhost won't go through any proxy server.


[1] http://st-proxyswitcher.com/how-do-i-find-out-the-proxy-settings-on-my-computer/
Comment 15 Vladimir Riha 2013-12-13 09:12:45 UTC
Reporter, please try the steps in comment 14 and reopen, thank you in advance.
Comment 16 marianort 2015-02-24 12:15:38 UTC
It seems a Google Chrome issue.
Reinstalling google chrome browser the problem is fixed.