title: javax.net.ssl.SSLException: Invalid Padding length: 190
body: <p>We are using JRE 1.7 build 101 in our application. We are using SSL communication from our application to another Network Device. This network device will act as SSL server and our application connect as SSL Client.</p>
  
  <p>We using https communication. Server enable TLSv1 and its used for SSL communication.</p>
  
  <p>From Debug enabled below Cipher Suite used for this communication.
  Cipher Suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA</p>
  
  <p>When we do test connectivity it works fine. But when we read huge amount of lines from Network Device we are getting below exception.</p>
  
  <p><strong>javax.net.ssl.SSLException: Invalid Padding length: 190</strong></p>
  
  <pre><code>   javax.net.ssl.SSLException: Invalid Padding length: 190
  
              at sun.security.ssl.Alerts.getSSLException(Unknown Source)
  
              at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
  
              at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
  
              at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
  
              at sun.security.ssl.AppInputStream.read(Unknown Source)
  
              at java.io.BufferedInputStream.fill(Unknown Source)
  
              at java.io.BufferedInputStream.read1(Unknown Source)
  
              at java.io.BufferedInputStream.read(Unknown Source)
  
              at java.io.FilterInputStream.read(Unknown Source)
  
              at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
  
              at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
  
              at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
  
              at sun.nio.cs.StreamDecoder.read(Unknown Source)
  
              at java.io.InputStreamReader.read(Unknown Source)
  
              at java.io.BufferedReader.fill(Unknown Source)
  
              at java.io.BufferedReader.readLine(Unknown Source)
  
              at java.io.BufferedReader.readLine(Unknown Source)
  
              at SSLUtil.readFromInputStream(SSLUtil.java:205)
  </code></pre>
  
  <p>Any one faced this issue?? Any suggestion to debug this issue.
  Each time Invalid Padding length: 190 ( this value is different)</p>