• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SSLHandshake Error while connection to remote server

 
Ranch Hand
Posts: 41
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello JavaRanch,

While i am trying to post a request to a remote server i am receiving the SSLHandShake Error. I am using apache-commons HTTPClient and PostMethod classes to post the request.
As i tried for the first time while coding it worked well and good. But all of the sudden while testing its showing the error as mentioned.

Below is the code which i used to post


As my application is in testing phase, i got some exceptions while trying to connect to the remote server. After verifying the logs i came to know that the error is caused due to SSLHandshaking.
Below is the ErrorTrace.



As i have taken care of the socketConnectionTimouts and other connection issue, i want to know whether there is any point i am missing out in my code that caused this error.

Thanks in Advance...

 
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While debugging a testing SSL issue: I have

Server A ----> https ----> Server B (the code on B is set up to run for 5 mins + display some logs)

a .If I wait until the end, every thing is fine.

b. If After 2 mins, I just shut down Server B and I got the same exception like yours, displayed.

So some where the SSL connection was dropped by B either it was re-started and/or completely shut down voluntarily or due to network issue.

Now, just run 10 times your POST and see what happen?

with or without

-Djavax.net.debug=ssl

OR

System.setProperty("javax.net.debug", "ssl");
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic