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 242432 - IllegalStateException: Cannot get websocket address
Summary: IllegalStateException: Cannot get websocket address
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-27 20:54 UTC by Exceptions Reporter
Modified: 2015-02-12 16:09 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208030


Attachments
stacktrace (2.22 KB, text/plain)
2014-02-27 20:54 UTC, Exceptions Reporter
Details
stacktrace (2.22 KB, text/plain)
2014-07-30 08:34 UTC, Vladimir Riha
Details
stacktrace (777 bytes, text/plain)
2014-12-20 11:35 UTC, imadbougataya
Details
stacktrace (777 bytes, text/plain)
2014-12-20 11:38 UTC, imadbougataya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-02-27 20:54:26 UTC
This bug was originally marked as duplicate of bug 241811, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201402260001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Mac OS X

User Comments:
GUEST: .




Stacktrace: 
java.lang.IllegalStateException: Cannot get websocket address
   at org.netbeans.modules.cordova.platforms.android.AndroidDebugTransport.getURI(AndroidDebugTransport.java:226)
   at org.netbeans.modules.cordova.platforms.android.AndroidDebugTransport.createWebSocket(AndroidDebugTransport.java:129)
   at org.netbeans.modules.cordova.platforms.android.AndroidDebugTransport.attach(AndroidDebugTransport.java:146)
   at org.netbeans.modules.cordova.platforms.api.WebKitDebuggingSupport.startDebugging(WebKitDebuggingSupport.java:110)
   at org.netbeans.modules.cordova.CordovaPerformer$1.run(CordovaPerformer.java:250)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
Comment 1 Exceptions Reporter 2014-02-27 20:54:28 UTC
Created attachment 145647 [details]
stacktrace
Comment 2 Jan Becicka 2014-03-21 07:52:25 UTC
please make sure, that you have Android 4.4+, cordova 3.3+ and android debugging is enabled on your device.
Comment 3 BuzyBeeSoftware 2014-04-11 10:18:47 UTC
(In reply to Jan Becicka from comment #2)
> please make sure, that you have Android 4.4+, cordova 3.3+ and android
> debugging is enabled on your device.

Thanks for the reply.

I have Android v 4.4.2(API 19), Cordova v3.4.1-0.1.0 and debugging is enabled on the android device (a Samsung Galaxy SIII).
Comment 4 Jan Becicka 2014-07-08 13:31:54 UTC
This can happen, when you have 2 or more devices connected to your machine. Is this your case? Can you attach full messages.log? Thanks
Comment 5 Vladimir Riha 2014-07-30 08:34:44 UTC
Created attachment 148401 [details]
stacktrace

stopping connection to Android emulator
Comment 6 Vladimir Riha 2014-07-30 08:37:38 UTC
(In reply to Jan Becicka from comment #4)
> This can happen, when you have 2 or more devices connected to your machine.
> Is this your case? Can you attach full messages.log? Thanks

In my case, I had Android phone connected to PC and was trying to run application on Android emulator
Comment 7 imadbougataya 2014-12-20 11:35:28 UTC
Created attachment 151220 [details]
stacktrace

cordova build
Comment 8 Exceptions Reporter 2014-12-20 11:35:34 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=208030
Comment 9 imadbougataya 2014-12-20 11:38:28 UTC
Created attachment 151221 [details]
stacktrace

cordova run
Comment 10 Roman Svitanic 2015-02-12 16:09:20 UTC
Changeset: 6bd20eb7a805
Author:    Roman Svitanic <rsvitanic@netbeans.org>
Date:      2015-02-12 17:07
Message:   #248411: IllegalStateException: Cannot get websocket address - fixed