Description
java.lang.RuntimeException: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:444) at sun.nio.ch.Net.bind(Net.java:436) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321) at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.server.Server.doStart(Server.java:366) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.calcite.avatica.server.HttpServer.start(HttpServer.java:65) at org.apache.calcite.avatica.server.Main.start(Main.java:95) at org.apache.calcite.avatica.server.Main.start(Main.java:68) at org.apache.calcite.jdbc.CalciteRemoteDriverTest.beforeClass(CalciteRemoteDriverTest.java:155)
If you have an instance of the Avatica server already running, CalciteRemoteDriverTest fails as above because it fails to bind port 8765.