title: Spring Boot Rest NioSocketWrapper.getSslSupport NullPointerException
body: <h2>Problem</h2>
  
  <p>We are facing issues with a particular client logging in from USA to a service located in a NYC datacenter from Digitalocean. He reports a generic http connection issue. Other clients from Europe don't have problems.</p>
  
  <p>I can also confirm that the client is not able to create a session with the authorization service.</p>
  
  <h2>Architecture</h2>
  
  <p>We have a webapp, a third party SSO provider, an authorization service and a resource service. The services use HTTPS, the webapp doesn't.</p>
  
  <p>The services are Spring Boot (1.4.1.RELEASE) REST controllers with <code>spring-boot-starter-security</code>, <code>spring-boot-starter-web</code> and <code>unirest-java</code> (1.4.9), backed by a MongoDB. </p>
  
  <h2>Logs</h2>
  
  <h3>Resource Service</h3>
  
  <pre><code>2016-10-29 15:37:57.282 ERROR 5 --- [nio-8444-exec-4] o.a.coyote.http11.Http11NioProtocol      : Error reading request, ignored
  
  java.lang.NullPointerException: null
      at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.getSslSupport(NioEndpoint.java:1329) ~[tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:792) ~[tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_11]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_11]
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
  </code></pre>
  
  <h3>Authentication Service</h3>
  
  <pre><code>2016-10-29 15:37:57.279 ERROR 7 --- [nio-8443-exec-6] o.a.coyote.http11.Http11NioProtocol      : Error reading request, ignored
  
  java.lang.NullPointerException: null
      at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.getSslSupport(NioEndpoint.java:1329) ~[tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:792) ~[tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_11]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_11]
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.5.jar!/:8.5.5]
      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
  </code></pre>
  
  <h2>Question</h2>
  
  <p>I have no idea why this exception pops up and only does for this particular client. Can you help me? I will provide further information.</p>