title: Handshake failed - connection prematurally closed error when debugging Solr in Intellij
body: <p>So i was going to debug my Solr filter plugins on Intellij Community Edition. After i ran the program from comand prompt with this command</p>
  
  <pre><code>java -jar start.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8983
  </code></pre>
  
  <p>I started my Intellij debugger with this config:</p>
  
  <pre><code>Transport : socket
  Debugger mode : attach
  Host : localhost
  Port : 8983
  </code></pre>
  
  <p>But when I ran the debugger I got this error:</p>
  
  <pre><code>Error running Debugger: Unable to open debugger port (localhost:8983): 
  java.io.IOException "handshake failed - connection prematurally closed"
  </code></pre>
  
  <p>Any idea how to fix this?</p>