Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse can't find free socket for debugger
Eclipse can't find free socket for debugger [message #119616] Sun, 23 November 2003 00:10 Go to next message
Eclipse UserFriend
Originally posted by: nichtduaberich.gmx.de

Hello everyone,

I'm running FreeBSD 5.1 Release with a native jdk1.4.2-p5.

Everytime I try to debug my java code in eclipse (2.1.1_2), I get the
following error message:

Exception occured during launching
Reason:
Cannot find a free socket for the debugger

I'm not sure if the problems is related to the (somewhat experimental)
FreeBSD jdk or eclipse or some stupid mistake of mine. Has anyone had
the same problem or maybe solved it?

FYI workspace/.metadata/.log contains this stack trace:

!SESSION Nov 21, 2003 16:36:02.872
---------------------------------------------java.version=1. 4.2-p5
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=freebsd, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments: -os freebsd -ws gtk -arch x86 -install
file:/usr/local/eclipse/
!ENTRY org.eclipse.core.resources 1 1 Nov 21, 2003 16:36:02.875
!MESSAGE Could not load library: libcore_2_1_0a.so. This library
provides platform-specific optimizations for certain file system
operations. This library is not present on all platforms, so this may
not be an error. The resources plug-in will safely fall back to using
java.io.File functionality.
!ENTRY org.eclipse.debug.ui 4 120 Nov 21, 2003 16:36:22.71
!MESSAGE Error logged from Debug UI:
!STACK 1
org.eclipse.core.runtime.CoreException: Cannot find a free socket for
the debugger
at
org.eclipse.jdt.launching.AbstractVMRunner.abort(AbstractVMR unner.java:44)
at
org.eclipse.jdt.internal.launching.StandardVMDebugger.run(St andardVMDebugger.java:126)
at
org.eclipse.jdt.internal.launching.JavaLocalApplicationLaunc hConfigurationDelegate.launch(JavaLocalApplicationLaunchConf igurationDelegate.java:111)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:156)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:676)
at
org.eclipse.debug.ui.DebugUITools.buildAndLaunch(DebugUITool s.java:538)
at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:48 7)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)
!ENTRY org.eclipse.jdt.launching 4 118 Nov 21, 2003 16:36:22.75
!MESSAGE Cannot find a free socket for the debugger

Regards,
Jan
Re: Eclipse can't find free socket for debugger [message #120199 is a reply to message #119616] Mon, 24 November 2003 15:40 Go to previous messageGo to next message
Darin Wright is currently offline Darin WrightFriend
Messages: 454
Registered: July 2009
Senior Member
In the past, others have found that firewalls can cause trouble.

Darin

"Jan Schultze" <nichtduaberich@gmx.de> wrote in message
news:bpotpc$nbt$1@eclipse.org...
> Hello everyone,
>
> I'm running FreeBSD 5.1 Release with a native jdk1.4.2-p5.
>
> Everytime I try to debug my java code in eclipse (2.1.1_2), I get the
> following error message:
>
> Exception occured during launching
> Reason:
> Cannot find a free socket for the debugger
>
> I'm not sure if the problems is related to the (somewhat experimental)
> FreeBSD jdk or eclipse or some stupid mistake of mine. Has anyone had
> the same problem or maybe solved it?
>
> FYI workspace/.metadata/.log contains this stack trace:
>
> !SESSION Nov 21, 2003 16:36:02.872
> ---------------------------------------------java.version=1. 4.2-p5
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=freebsd, ARCH=x86, WS=gtk, NL=de_DE
> Command-line arguments: -os freebsd -ws gtk -arch x86 -install
> file:/usr/local/eclipse/
> !ENTRY org.eclipse.core.resources 1 1 Nov 21, 2003 16:36:02.875
> !MESSAGE Could not load library: libcore_2_1_0a.so. This library
> provides platform-specific optimizations for certain file system
> operations. This library is not present on all platforms, so this may
> not be an error. The resources plug-in will safely fall back to using
> java.io.File functionality.
> !ENTRY org.eclipse.debug.ui 4 120 Nov 21, 2003 16:36:22.71
> !MESSAGE Error logged from Debug UI:
> !STACK 1
> org.eclipse.core.runtime.CoreException: Cannot find a free socket for
> the debugger
> at
> org.eclipse.jdt.launching.AbstractVMRunner.abort(AbstractVMR unner.java:44)
> at
>
org.eclipse.jdt.internal.launching.StandardVMDebugger.run(St andardVMDebugger
..java:126)
> at
>
org.eclipse.jdt.internal.launching.JavaLocalApplicationLaunc hConfigurationDe
legate.launch(JavaLocalApplicationLaunchConfigurationDelegat e.java:111)
> at
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
on.java:156)
> at
>
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.jav
a:676)
> at
> org.eclipse.debug.ui.DebugUITools.buildAndLaunch(DebugUITool s.java:538)
> at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:48 7)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
..java:101)
> !ENTRY org.eclipse.jdt.launching 4 118 Nov 21, 2003 16:36:22.75
> !MESSAGE Cannot find a free socket for the debugger
>
> Regards,
> Jan
>
Re: Eclipse can't find free socket for debugger [message #120503 is a reply to message #120199] Mon, 24 November 2003 22:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nichtduaberich.gmx.de

I didn't run a firewall on my system. But, just to be sure, I compiled
IPFW into my kernel and added an "allow ip from any to any" rule, so the
firewall would not restrict any valid IP/TCP/UDP packet. That shouldn't
be a restricton for eclipse (I debugged with eclipse on a comparable
system with a more restrictive firewall).
But that didn't change anything, any other ideas?

Jan


Darin Wright wrote:
> In the past, others have found that firewalls can cause trouble.
>
> Darin
>
> "Jan Schultze" <nichtduaberich@gmx.de> wrote in message
> news:bpotpc$nbt$1@eclipse.org...
>
>>Hello everyone,
>>
>>I'm running FreeBSD 5.1 Release with a native jdk1.4.2-p5.
>>
>>Everytime I try to debug my java code in eclipse (2.1.1_2), I get the
>>following error message:
>>
>> Exception occured during launching
>> Reason:
>> Cannot find a free socket for the debugger
>>
>>I'm not sure if the problems is related to the (somewhat experimental)
>>FreeBSD jdk or eclipse or some stupid mistake of mine. Has anyone had
>>the same problem or maybe solved it?
>>
>>FYI workspace/.metadata/.log contains this stack trace:
>>
>>!SESSION Nov 21, 2003 16:36:02.872
>> ---------------------------------------------java.version=1. 4.2-p5
>>java.vendor=Sun Microsystems Inc.
>>BootLoader constants: OS=freebsd, ARCH=x86, WS=gtk, NL=de_DE
>>Command-line arguments: -os freebsd -ws gtk -arch x86 -install
>>file:/usr/local/eclipse/
>>!ENTRY org.eclipse.core.resources 1 1 Nov 21, 2003 16:36:02.875
>>!MESSAGE Could not load library: libcore_2_1_0a.so. This library
>>provides platform-specific optimizations for certain file system
>>operations. This library is not present on all platforms, so this may
>>not be an error. The resources plug-in will safely fall back to using
>>java.io.File functionality.
>>!ENTRY org.eclipse.debug.ui 4 120 Nov 21, 2003 16:36:22.71
>>!MESSAGE Error logged from Debug UI:
>>!STACK 1
>>org.eclipse.core.runtime.CoreException: Cannot find a free socket for
>>the debugger
>> at
>> org.eclipse.jdt.launching.AbstractVMRunner.abort(AbstractVMR unner.java:44)
>> at
>>
>
> org.eclipse.jdt.internal.launching.StandardVMDebugger.run(St andardVMDebugger
> .java:126)
>
>> at
>>
>
> org.eclipse.jdt.internal.launching.JavaLocalApplicationLaunc hConfigurationDe
> legate.launch(JavaLocalApplicationLaunchConfigurationDelegat e.java:111)
>
>> at
>>
>
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> on.java:156)
>
>> at
>>
>
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.jav
> a:676)
>
>> at
>> org.eclipse.debug.ui.DebugUITools.buildAndLaunch(DebugUITool s.java:538)
>> at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:48 7)
>> at
>>
>
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> .java:101)
>
>>!ENTRY org.eclipse.jdt.launching 4 118 Nov 21, 2003 16:36:22.75
>>!MESSAGE Cannot find a free socket for the debugger
>>
>>Regards,
>>Jan
>>
>
>
>
SOLVED: Eclipse can't find free socket for debugger [message #124421 is a reply to message #120503] Thu, 04 December 2003 12:23 Go to previous message
Eclipse UserFriend
Originally posted by: nichtduaberich.gmx.de

Sebastiaan van Erk found a solution:

> For those of you who have the same problem, it turns out that in FreeBSD
> 5.1 at least, the net.inet6.ip6.v6only is set to 1 by default. Turn it
> off with sysctl -w net.inet6.ip6.v6only=0 as root, and restart eclipse,
> and debugging will work just fine.
>
> Greetings,
> Sebastiaan van Erk
Previous Topic:Eclipse Help as Web App.
Next Topic:[ANN] CodePro WebCast Today/Thursday 1:00pm EST
Goto Forum:
  


Current Time: Fri Apr 26 15:51:28 GMT 2024

Powered by FUDForum. Page generated in 0.02796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top