[jbosstools-issues] [JBoss JIRA] (JBIDE-22075) Cannot debug OpenShift application

Marián Labuda (JIRA) issues at jboss.org
Mon Apr 4 07:27:01 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-22075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185883#comment-13185883 ] 

Marián Labuda commented on JBIDE-22075:
---------------------------------------

This is difference in netstat output for "default free forwarded debug port" and for "new free port for forwarded debug port"
{code}[13:23:34] [mlabuda at dhcp-10-40-5-177 ~]$ netstat -vatn | grep 35734
tcp        0      0 127.0.0.1:35734         0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:35734         127.0.0.1:50380         TIME_WAIT  
tcp        0      0 127.0.0.1:35734         127.0.0.1:50376         TIME_WAIT  
tcp        0      0 127.0.0.1:35734         127.0.0.1:50384         ESTABLISHED
tcp        0      0 127.0.0.1:35734         127.0.0.1:50382         TIME_WAIT  
tcp        0      0 127.0.0.1:35734         127.0.0.1:50378         TIME_WAIT  
tcp6       0      0 ::1:35734               :::*                    LISTEN     
tcp6       0      0 127.0.0.1:50384         127.0.0.1:35734         ESTABLISHED
[13:23:39] [mlabuda at dhcp-10-40-5-177 ~]$ netstat -vatn | grep 42711
tcp        0      0 127.0.0.1:42711         0.0.0.0:*               LISTEN     
tcp6       0      0 ::1:42711               :::*                    LISTEN  {code}

> Cannot debug OpenShift application
> ----------------------------------
>
>                 Key: JBIDE-22075
>                 URL: https://issues.jboss.org/browse/JBIDE-22075
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.1.CR1
>            Reporter: Marián Labuda
>            Priority: Critical
>              Labels: openshift_v3
>
> When I am trying to run remote debugging of an application on OpenShift I get following error
> {code}
> Failed to connect to remote VM
> com.sun.jdi.connect.spi.ClosedConnectionException
> 	at org.eclipse.jdi.internal.connect.SocketTransportService.readHandshake(SocketTransportService.java:222)
> 	at org.eclipse.jdi.internal.connect.SocketTransportService.access$7(SocketTransportService.java:214)
> 	at org.eclipse.jdi.internal.connect.SocketTransportService$3.run(SocketTransportService.java:185)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}
> I guess this is something related to port forwarding. Even the port for debugging is forwarded on a free port and it looks like started, it fails. When I stop port forwarding, start it again and use a port, which is used as a forwarded port for remote debug port, in debug configuration, it works.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list