Handshake failed - connection prematurally closed - debugging

I want to setup mi intellij to run mi local environment in debug mod.
In other versions of intellij, i just had to "add new remote" and only when changing to the port to 8080, my debug environment startup correctly, but in this new version, i get the following errors:
"Connection refused: connect" --> When select a not available port (i guess)
"handshake failed - connection prematurally closed" --> the port is accesible but it can't conect.
I attach a screeshot of my debug remote configuration.
Thanks,
IƱigo

Related

Issue: Error in rconfigure() method java.rmi.ConnectException: Connection refused to host: 192.xx;

I have an issue when i run jmeter distributed :
Error in rconfigure() method java.rmi.ConnectException: Connection refused to host: 192.168.200.22; nested exception is: java.net.ConnectException: Connection timed out: connect
Master: 192.168.200.21
Slave: 192.168.200.22
i have configured remote-hosts in jmeter.properties and started jmeter-server.bat in the master machine and slave machine
enter image description here
How do I fix it?
I try connect to the slave machine
Most probably you need to open port 1099 (or whatever is the value of your server_port property) in your operating system firewall
Also be aware that the slave will need to send the test results back to the master so you need to open client.rmi.localport and up to 3 ports up in the master machine.
And finally for any JMeter configuration overrides you should use user.properties file
More information:
Remote hosts and RMI configuration
Configuring JMeter
How to Perform Distributed Testing in JMeter

I am trying to remote debug spring MVC application hosted on Ubuntu server from my intellij IDE on MAC

i started the tomcat by setting below two in setenv.sh file under TOMCAT_HOME/bin/
export JPDA_ADDRESS="5005"
export JPDA_TRANSPORT="dt_socket"
startd server using sudo ./catalina.sh jpda run the output log says
Listening for transport dt_socket at address: 5005
Created a new remote configuration from edit_configuration and added host name and port start debug and got below error.
5:35 PM Error running 'Remote_Debugging': Unable to open debugger port (xxxxxxxxxx.xxx:5005): java.net.ConnectException "Connection refused (Connection refused)"
thanks in advance.

How to connect IntelliJ Docker Integration to Docker Desktop (for Windows 10)

When I'm trying to get the Docker integration of IntelliJ (Ultimate 2018.3.3) working together with local running Docker Desktop (Version 2.0.0.3 (31259)), I'm getting the following error:
Cannot connect: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: localhost:127.0.0.1:2375
caused by: java.net.ConnectException: Connection refused: no further information
I found the following question: IntelliJ cannot connect to protected tcp Docker socket
But this solution leads to this error:
Cannot connect: com.github.dockerjava.api.exception.DockerClientException: Enabled TLS verification (DOCKER_TLS_VERIFY=1) but certificate path (DOCKER_CERT_PATH) is not defined.
I searched for the cert path of Docker Desktop but found nothing yet because the new Hyper-V solution of Docker Desktop doesn't run docker-machine native any more.
The solution is to enable exposing the Docker deamon on tcp:localhost:2375 without TLS.
This option can be found in general settings of Docker Desktop (Version 2.0.0.3).
Setting / General / Expose daemon on tcp://localhost:2375 without TLS

Error running 'Remote Debugger': Unable to open debugger port (localhost:5005): java.net.ConnectException "Connection refused (Connection refused)"

I am setting up remote debugger in IntelliJ on Mac. I followed the template without any modification. Then I click the "Debug xxx" button. It shows
"Error running 'Remote Debugger': Unable to open debugger port
(localhost:5005): java.net.ConnectException "Connection refused
(Connection refused)""
I checked the following:
There is no port listening on 5005.
The firewall is shut off entirely.
I tried to ping localhost 5005 and the connection is refused.
I am confused. There is no firewall and no port listening. Why the connection is still refused?
just change port 5005 to 5006 , in my case it worked
when you run mvn spring-boot:run you need to add debug target to maven command
make sure the address in the target matches the address in the remote config

Connection refused when trying to login with Intellij IDEA Upsource plugin

I'm trying to login to an Intellij Upsource server using the Upsource Integration plugin.
After configuring the Upsource URL an clicking on "Test connection" the browser is opened and I'm prompted to login to the Upsource server. This fails with a "Connection refused" error in my browser.
I can see in the Intellij log file that there is a connection attempt to my computer on the port 3100:
2018-06-01 07:59:00,706 [ 82261] DEBUG - idea.authorization.AuthManager - Authorization URL: http://x.x.x.x:8888/hub/api/rest/oauth2/auth?response_type=code&client_id=upsource-idea-plugin&scope=8a2cb56b-2c52-4533-ab55-f3d9c6a1be03&redirect_uri=http://localhost:3100&request_credentials=required&access_type=offline
They MacOS firewall is enabled, but shows no blocked attempts. IntelliJ is configured to allow incoming connections.
The problem was the MacOS network proxy settings (since the computer was configured to use a proxy for HTTP & HTTPS) - after adding localhost to the list of Hosts & Domains that should be bypassed, the authentication works.

Resources