Reputation: 4748
I've tried everything, firewalls, reinstalling etc etc. I can't get the debugger to connect no matter what I do.
I'm just writing a simple Air application, with Flex and Actionscript. But any type of debugging on any type of application doesn't work. I get this message
The Flash Builder debugger failed to connect to the running application.
Then often when I try again, I get this message
Unrecognized Windows Sockets error: 0: JVM_Bind
Running the program without debugging works fine.
Upvotes: 12
Views: 13361
Reputation: 61
I hit the same situation, and resolve it with http://therush.wordpress.com/2008/03/11/resolved-flex-builder-3-debugger-stopped-working/
It seems a very strange bug. I solve it with:
Upvotes: 4
Reputation: 8655
Happened to me just now, it happened after closing a debug Air app right after it launched. I had to restart the pc, problem solved.
Upvotes: 0
Reputation: 307
I've closed chrome web browser. Then I can execute the debugger without that msg. I suspect some tab used that port.
Upvotes: 0
Reputation: 539
I was going absolutely nuts dealing with this and what one of the members above said worked for me. Close FB, then set Firefox as your default browser open FB, change the debugger preferences to Default browser, then try debugging again, that did it for me. I'm running FB 4.6 with firefox 17.01
Upvotes: 0
Reputation: 1424
If your default browser is Chrome, you must set the default Flash plugin before debugger starts to work.
Upvotes: 1
Reputation: 2957
I recently encountered the same issue in OSX. I resolved it by reinstalling the debugger version of flash player for mac, and changing the flash player browser to Safari in the Flex preferences.
Upvotes: 3
Reputation: 145
I had the same issue. I'm using Google Chrome as my default browser, and although I had flash debugger installed (both IE and the "other browsers" version), I got this error.
I opened mozilla firefox and set that as default browser. Now I re-opened FB, and the error was gone.
I think this has to do with Google Chrome having flash build internally which might be slightly off.
Upvotes: 1
Reputation: 4748
After spending way too much time on this and trying everything suggested and more, the solution unfortunately was to reformat the laptop and try again.
Thanks for everyone for their responses and efforts.
Upvotes: 0
Reputation: 1075
EDIT:
I found something.
The guy at this link Unrecognized Windows Sockets error: 0: JVM_Bind in Flash Builder has a workaround. Problem is you have to do it everytime. He suggests using TCPView to see and close opened connections that are using the same port as the debugger.
People in this thread http://forums.adobe.com/message/653125 also notes that an old version of NOD32 was causing the problem.
ORIGNAL ANSWER :
The second error you get clearly indicate a problem with the Java Virutal Machine (JVM). I don't think it's project related at all.
Try checking out installed JREs (Java runtime environments) in Flash Builder.
Window -> Preferences -> Java - > Installed JREs
Check if there's anything strange here, like unknown JREs. You should use "Adobe Flash Builder 4.6", typically located at "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6". If it's not here add it (Add, Next, paste corresponding path) and restart Flash Builder.
If it's already there, you might want to redownload Flex 4.6 SDK and replace your current one (typically located at "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks").
It's unclear if you have uninstalled Flash Builder or not but if that's not the case and the above solutions doesn't work I'd considered reinstalling it from scratch.
Upvotes: 1
Reputation: 15955
I believe this indicates that the tcp connection between ADL and Flash Builder could not be established using port 7935 because the socket is in use.
Use netstat
to assure the port is not in use.
Upvotes: 4