Results 1 to 2 of 2
  1. #1
    mpahlenig is offline Member
    Join Date
    Jan 2010
    Posts
    2
    Rep Power
    0

    Default Javax.net.ssl.SSException when connecting to URL

    Hi,

    I'm getting the exception below when I'm executing httpClient.executeMethod(postMeth) in my java code.

    Please help.


    javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLExceptio n(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLExceptio n(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAle rt(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRec ord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.perform InitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRe cord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write (Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.HttpConnection.flush RequestOutputStream(HttpConnection.java:828)
    at org.apache.commons.httpclient.HttpMethodBase.write Request(HttpMethodBase.java:2116)
    at org.apache.commons.httpclient.HttpMethodBase.execu te(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:323)
    at za.co.rmb.securitieslending.SLHttpClient.testCon(S LHttpClient.java:98)
    at za.co.rmb.securitieslending.SLHttpClient.main(SLHt tpClient.java:494)
    2010-02-03 11:20:49,742 [main] ERROR za.co.rmb.securitieslending.SLHttpClient - za.co.rmb.securitieslending.exceptions.FileDownLoa dException: Problems encountered while logging in.
    2010-02-03 11:20:49,742 [main] INFO za.co.rmb.securitieslending.SLHttpClient - https.protocols = null
    2010-02-03 11:20:49,742 [main] INFO za.co.rmb.securitieslending.SLHttpClient - SLHttpClient: logout()
    2010-02-03 11:20:49,742 [main] INFO za.co.rmb.securitieslending.SLHttpClient - Logging out ...
    2010-02-03 11:20:49,762 [main] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (javax.net.ssl.SSLException) caught when processing request: Received fatal alert: bad_record_mac
    2010-02-03 11:20:49,762 [main] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request
    2010-02-03 11:20:49,802 [main] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (javax.net.ssl.SSLException) caught when processing request: Received fatal alert: bad_record_mac
    2010-02-03 11:20:49,802 [main] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request
    2010-02-03 11:20:49,812 [main] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (javax.net.ssl.SSLException) caught when processing request: Received fatal alert: bad_record_mac
    2010-02-03 11:20:49,812 [main] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request
    2010-02-03 11:20:49,822 [main] ERROR za.co.rmb.securitieslending.SLHttpClient - Problems encountered while logging out.
    javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLExceptio n(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLExceptio n(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAle rt(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRec ord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.perform InitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRe cord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write (Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.HttpConnection.flush RequestOutputStream(HttpConnection.java:828)
    at org.apache.commons.httpclient.HttpMethodBase.write Request(HttpMethodBase.java:2116)
    at org.apache.commons.httpclient.HttpMethodBase.execu te(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:323)
    at za.co.rmb.securitieslending.SLHttpClient.logout(SL HttpClient.java:462)
    at za.co.rmb.securitieslending.SLHttpClient.main(SLHt tpClient.java:504)
    2010-02-03 11:20:49,822 [main] ERROR za.co.rmb.securitieslending.SLHttpClient - za.co.rmb.securitieslending.exceptions.FileDownLoa dException: Problems encountered while logging out.

  2. #2
    Rhez is offline Member
    Join Date
    Oct 2009
    Posts
    17
    Rep Power
    0

Similar Threads

  1. connecting to a database
    By mxb7642 in forum JDBC
    Replies: 5
    Last Post: 09-08-2009, 09:39 AM
  2. connecting to a database
    By kswiss in forum NetBeans
    Replies: 4
    Last Post: 06-25-2009, 07:22 PM
  3. Help connecting
    By xcallmejudasx in forum JDBC
    Replies: 3
    Last Post: 04-16-2009, 08:09 PM
  4. javax.microedition.io/ javax.bluetooth
    By ahtiven in forum New To Java
    Replies: 3
    Last Post: 01-13-2009, 03:54 PM
  5. map javax.swing.text.Element to javax.swing.text.View
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 08:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •