title: Getting javax.net.ssl.SSLProtocolException: end of file
body: <p>After I upgraded the IHS server from 7.0.0.33 to 7.0.0.37..</p>
  
  <p>In the latest IHS server SSLv3 is completely disabled..</p>
  
  <p>My following piece of code </p>
  
  <pre><code>HttpURLConnection urlConn = (HttpURLConnection)url.openConnection();
  urlConn.setUseCaches(false);
  urlConn.setRequestMethod("POST");
  urlConn.setDoOutput(true);
  DataOutputStream os = new DataOutputStream(urlConn.getOutputStream());  
  os.writeBytes( obj.toString());
  os.flush();
  os.close();
  </code></pre>
  
  <p>I found that </p>
  
  <pre><code> DataOutputStream os = new DataOutputStream(urlConn.getOutputStream()); 
  </code></pre>
  
  <p>Here the code is breaking and showing the "protocol not supported"
  after that its throwing the following error</p>
  
  <pre><code>[5/13/15 14:00:47:730 GMT] 0000001c SystemErr     R javax.net.ssl.SSLProtocolException: end of file
      at com.ibm.jsse.bv.a(Unknown Source)
      at com.ibm.jsse.bv.startHandshake(Unknown Source)
      at com.ibm.net.ssl.www2.protocol.https.b.o(b.java:136)
      at com.ibm.net.ssl.www2.protocol.https.i.connect(i.java:28)
      at com.ibm.net.ssl.www2.protocol.http.bc.getOutputStream(bc.java:44)
      at com.ibm.net.ssl.www2.protocol.https.l.getOutputStream(l.java:23)
      at com.corio.tsr.webservices.SRAutomationWebServiceClient.getJsonObject(SRAutomationWebServiceClient.java:166)
      at com.corio.tsr.jms.receiver.SRAutomationMessageBean.onMessage(Unknown Source)
      at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1013)
      at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:746)
      at $Proxy2.onMessage(Unknown Source)
      at com.ibm.ws.sib.api.jmsra.impl.JmsJcaEndpointInvokerImpl.invokeEndpoint(JmsJcaEndpointInvokerImpl.java:201)
      at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:627)
      at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:463)
      at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:394)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
  </code></pre>
  
  <p>Can any one suggest what can I do or any clue on how to get rid of this error</p>