I have cloned a Spark project from git which I surely know works and operates correctly. When I run the program, the Jetty server ignites and looks like listening with no problem. Here is the console for that:
[Thread-0] INFO org.eclipse.jetty.util.log - Logging initialized @402ms
[Thread-0] INFO spark.webserver.JettySparkServer - == Spark has ignited ...
[Thread-0] INFO spark.webserver.JettySparkServer - >> Listening on 0.0.0.0:4567
[Thread-0] INFO org.eclipse.jetty.server.Server - jetty-9.3.2.v20150730
[Thread-0] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@36a9b54a{HTTP/1.1,[http/1.1]}{0.0.0.0:4567}
[Thread-0] INFO org.eclipse.jetty.server.Server - Started @600ms
But when I send a request from any browser on my computer, it returns always empty response. I have configuration for the database and all and tried the same configuration with the same data on another computer and it works right away. I have look for the TCP connection status with TCPview and I saw that connection directly goes into time_wait state. Since it does not occur on the other computer I have tested, I'm guessing that the problem does not come from the program or database, but something causes this especially on my computer. Any opinion is appreciated. Thanks.