0 Replies Latest reply on Sep 18, 2013 4:26 PM by 8d7a146c-c27d-42a0-91a6-35c44bcd6003 Branched from an earlier discussion.

    Re: SSL intermittent problem when using DH-based ciphers in Java 7 with Linux

    8d7a146c-c27d-42a0-91a6-35c44bcd6003

      We are facing this issue as well here is exception.

       

      18.09.2013 10:13:33.048 *INFO* [10.100.183.102 [1379517213047] GET /services/drugs/search HTTP/1.1] com.prime.memberportal.cache.StringCacheKeyGenerator com.prime.memberportal.dao.model.ConditionSearchRequest{"condition":"HYZAAR"}

      18.09.2013 10:13:33.189 *WARN* [10.100.183.102 [1379517213174] <parse>] servletengine I/O error in execution: {} javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Invalid Padding length: 22

      at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1476)

      at sun.security.ssl.AppInputStream.read(AppInputStream.java:92)

      at java.io.InputStream.read(InputStream.java:101)

      at com.day.j2ee.servletengine.ServletHandlerImpl.parseRequest(ServletHandlerImpl.java:450)

      at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:301)

      at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644)

      at java.lang.Thread.run(Thread.java:724)

      Caused by: javax.net.ssl.SSLHandshakeException: Invalid Padding length: 22

      at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

      at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)

      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:974)

      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)

      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)

      at sun.security.ssl.SSLSocketImpl.getSession(SSLSocketImpl.java:2171)

      at com.day.j2ee.servletengine.ServletHandlerImpl.getCipherSuite(ServletHandlerImpl.java:978)

      at com.day.j2ee.servletengine.RequestImpl.recycle(RequestImpl.java:269)

      at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:289)

      ... 2 more

      Caused by: javax.crypto.BadPaddingException: Invalid Padding length: 22

      at sun.security.ssl.CipherBox.removePadding(CipherBox.java:684)

      at sun.security.ssl.CipherBox.decrypt(CipherBox.java:423)

      at sun.security.ssl.InputRecord.decrypt(InputRecord.java:154)

      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:969)

      ... 8 more

       

      Some application in JVM running over HTTPS making call to external web services over HTTPS ...it works well but everyfew hundred call this exception are thrown and after few days JVM is crashing..

      It is verified on 721 and 740 ..

      OS details: Linux lxlcqp001t 2.6.32-358.18.1.el6.x86_64 #1 SMP Fri Aug 2 17:04:38 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux 

      Any suggestion?

       

      Thanks Chandra