[
https://issues.jboss.org/browse/JBIDE-11667?page=com.atlassian.jira.plugi...
]
Max Rydahl Andersen commented on JBIDE-11667:
---------------------------------------------
note, same happens when using 127.0.0.1 and you have a server starte on 8080 which is a
common thing.
So need to handle this somehow.
PortForward: When not using 127.0.0.1 I get hard error - should just
bring the status into "error"
--------------------------------------------------------------------------------------------------
Key: JBIDE-11667
URL:
https://issues.jboss.org/browse/JBIDE-11667
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Reporter: Max Rydahl Andersen
Assignee: Andre Dietisheim
Fix For: 3.3.0.Beta3
On a Mac, Start forward, uncheck 127.0.0.1 and press start all
Gets hard error and no info.
Error logs says:
com.openshift.client.OpenShiftSSHOperationException: Failed to start port forwarding on
127.4.92.2:8080
at
com.openshift.internal.client.ssh.ApplicationPortForwarding.start(ApplicationPortForwarding.java:56)
at
com.openshift.internal.client.ApplicationResource.startPortForwarding(ApplicationResource.java:611)
at
org.jboss.tools.openshift.express.internal.core.portforward.ApplicationPortForwardingWizardPage$3$1.run(ApplicationPortForwardingWizardPage.java:156)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.jcraft.jsch.JSchException: PortForwardingL: local port 127.4.92.2:8080
cannot be bound.
at com.jcraft.jsch.PortWatcher.<init>(PortWatcher.java:146)
at com.jcraft.jsch.PortWatcher.addPort(PortWatcher.java:99)
at com.jcraft.jsch.Session.setPortForwardingL(Session.java:1617)
at com.jcraft.jsch.Session.setPortForwardingL(Session.java:1614)
at
com.openshift.internal.client.ssh.ApplicationPortForwarding.start(ApplicationPortForwarding.java:53)
... 3 more
Caused by: java.net.BindException: Can't assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at java.net.ServerSocket.<init>(ServerSocket.java:194)
at com.jcraft.jsch.PortWatcher.<init>(PortWatcher.java:138)
... 7 more
This is an expected error but could just happen for a few out of all ports - should just
collect these errors and show info about which ip/ports could not be forwarded and have
them be in error state.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira