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 258859 - Xdebug - Internal Websocket server failed to start and communication with the external Chrome browser will not work. Check the IDE log for more information. This is likely caused by multiple instances of NetBeans running at the same time or some other app
Summary: Xdebug - Internal Websocket server failed to start and communication with the...
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P1 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-15 16:58 UTC by SonDang
Modified: 2016-04-18 05:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (45.54 KB, text/plain)
2016-04-15 16:58 UTC, SonDang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SonDang 2016-04-15 16:58:58 UTC
Created attachment 159284 [details]
IDE log

Hi,
I am using NetBeans 8.1 with Windows 10 64 bit. Few days ago I was able to ran Xdebug with Netbeans Connector normally, nothing changes in system, except some Windows automatic updates patches. 1-2 day recently, when I run debug project(Ctrl + F5) it's shows error below:


~~~~~~~~~~~~~~
"Xdebug - Internal Websocket server failed to start and communication with the external Chrome browser will not work. Check the IDE log for more information. This is likely caused by multiple instances of NetBeans running at the same time or some other application using port 8008"
~~~~~~~~~~~~~~

~~~~~~~~~~~~~~
Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
~~~~~~~~~~~~~~

Error exception in IDE log below:

~~~~~~~~~~~~~
INFO [org.netbeans.modules.extbrowser.plugins.ExternalBrowserPlugin]
java.net.SocketException: Permission denied: connect
	at sun.nio.ch.Net.connect0(Native Method)
	at sun.nio.ch.Net.connect(Net.java:454)
	at sun.nio.ch.Net.connect(Net.java:446)
	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
	at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
	at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:130)
	at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:83)
Caused: java.io.IOException: Unable to establish loopback connection
	at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:101)
	at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:68)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:170)
	at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
	at java.nio.channels.Pipe.open(Pipe.java:155)
	at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127)
	at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
	at java.nio.channels.Selector.open(Selector.java:227)
	at org.netbeans.modules.netserver.SocketFramework.<init>(SocketFramework.java:70)
	at org.netbeans.modules.netserver.SocketServer.<init>(SocketServer.java:63)
	at org.netbeans.modules.netserver.websocket.WebSocketServerImpl.<init>(WebSocketServerImpl.java:78)
	at org.netbeans.modules.netserver.websocket.WebSocketServerImpl.<init>(WebSocketServerImpl.java:72)
	at org.netbeans.modules.netserver.api.WebSocketServer.<init>(WebSocketServer.java:64)
[catch] at org.netbeans.modules.extbrowser.plugins.ExternalBrowserPlugin.<init>(ExternalBrowserPlugin.java:115)
	at org.netbeans.modules.extbrowser.plugins.ExternalBrowserPlugin.<clinit>(ExternalBrowserPlugin.java:103)
	at org.netbeans.modules.extbrowser.chrome.ChromeBrowserImpl.setURL(ChromeBrowserImpl.java:282)
	at org.netbeans.modules.web.browser.api.WebBrowserPane$2.run(WebBrowserPane.java:229)
	at org.netbeans.modules.web.browser.api.WebBrowserPane.showURL(WebBrowserPane.java:235)
	at org.netbeans.modules.web.browser.api.BrowserSupport.load(BrowserSupport.java:197)
	at org.netbeans.modules.php.project.PhpProject$ClientSideDevelopmentSupport.showFileUrl(PhpProject.java:1486)
	at org.netbeans.modules.php.project.ui.actions.support.ConfigActionLocal.showFileUrl(ConfigActionLocal.java:296)
	at org.netbeans.modules.php.project.ui.actions.support.ConfigActionLocal.showProjectUrl(ConfigActionLocal.java:282)
	at org.netbeans.modules.php.project.ui.actions.support.ConfigActionLocal$1.run(ConfigActionLocal.java:134)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

~~~~~~~~~~~~~

I have tried run netbeans as administrator, tried to find out what process uses port 8008 but found nothing :

netstat -a -n | find "8008"

Reinstall netbeans connector, google chrome did not help either.

Please advise. Attached IDE log

Thank you very much in advanced
Comment 1 Tomas Mysik 2016-04-18 05:56:48 UTC
(In reply to SonDang from comment #0)
> Error exception in IDE log below:

This exception has nothing to do with Xdebug (or PHP support in NetBeans).

> I have tried run netbeans as administrator, tried to find out what process uses
> port 8008 but found nothing :
> 
> netstat -a -n | find "8008"

I do not know Windows so cannot help with this particular command but if it used to work and now you cannot connect to the port (the exception clearly says [1]), it seems to me to be a problem with your environment.

Anyway, it is unclear to me what are you doing exactly so please, reopen this issue and provide _exact_ steps to reproduce (and ideally also a sample project).

Thanks.
[1] java.net.SocketException: Permission denied: connect