• Community
  • Questions
  • BindException in DirectClickThroughUiPlugin when using 2 Eclipse instances

BindException in DirectClickThroughUiPlugin when using 2 Eclipse instances


I have installed:

- com.atlassian.connector.eclipse.feature.group (3.0.2.v20111010)

- com.atlassian.connector.eclipse.jira.feature.group (3.0.2.v20111010)

Everything works fine in my Eclipse.

I am developing my own Eclipse plugin (PDE). When testing it, it seems that the second instance of Eclipse tries to start a server on the same port that the one used by the main Eclipse. When I start my test (i.e. start a second instance of Eclipse) I get the following stack trace in my main Eclipse console:

!ENTRY com.atlassian.connector.eclipse.directclickthrough.ui 1 0 2012-03-15 15:32:58.808

!MESSAGE Unable to run embedded web server, Direct Click Through will not be available


java.net.BindException: Address already in use: JVM_Bind

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 org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketConnector.java:80)

at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)

at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:283)

at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:147)

at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

at org.mortbay.jetty.Server.doStart(Server.java:235)

at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

at com.atlassian.connector.eclipse.internal.directclickthrough.ui.DirectClickThroughUiPlugin$2.runImpl(DirectClickThroughUiPlugin.java:90)

at com.atlassian.connector.eclipse.internal.core.jobs.JobWithStatus.run(JobWithStatus.java:50)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

I don't know why you need to start a server, but could you update your code to catch this exception and deal with it ? This exception prevents me automated test to run. If you cannot avoid this exception, I will have to uninstall your plugins in order to carry on...


1 answer

1 accepted


Atlassian Connector for Eclipse tries to start the server because you have activated Direct Click Through feature (it allows to open file/task from other Atlassian products like Bamboo, Fisheye or Crucible). If you don't need the feature then simply deactive it in Windows | Preferences | Atlassian Connector | Direct Click Through.

If you want to use the feature you can ignore the exception message as it does not affect your debug Eclipse instance and does not have impact on your automated tests - it is just a log printout of caught exception.

Depending on how you start the debug instance of Eclipse you can also disable Direct Click Through only for this instance (or change port) while it stays enabled for your main Eclipse instance.



Hi thanks for the explanation. I deactivated direct click. Now I don't see the exception anymore. Thanks again. Now I can focus on my own exceptions :) Cheers.

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

229 views 6 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot