Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging of JUnit test doesn't work due to network error #97

Open
6b6279 opened this issue Sep 9, 2024 · 1 comment
Open

Debugging of JUnit test doesn't work due to network error #97

6b6279 opened this issue Sep 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@6b6279
Copy link

6b6279 commented Sep 9, 2024

Hello,

while trying to debug a JUnit test, the debugger simply crashes on start with these messages on the console:

ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:700]

I have already given Eclipse full network access, so I'm not sure how the Java process is refusing connection.

This appears some what similar to #36, which had CDT also refusing connection to a localhost port.

@6b6279 6b6279 changed the title Debugging doesn't work due to network error Debugging of JUnit test doesn't work due to network error Sep 9, 2024
@Mailaender Mailaender added the bug Something isn't working label Sep 9, 2024
@6b6279
Copy link
Author

6b6279 commented Sep 13, 2024

Adding 127.0.0.1 localhost into /etc/hosts fixes this issue. Not sure why... I was just trying out some of the fixes here, although most of them do not apply on Linux: https://stackoverflow.com/questions/7487526/unable-to-debug-in-java-with-eclipse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants