Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ValidatorException: PKIX path building failed: unable to find valid certificate path

 
Tahir Akram
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello;

I am getting an following exception while hitting on a HTTPS URL. The strange thing is some times this exception comes and some time it works just fine.

ValidatorException: PKIX path building failed: unable to find valid certification path to requested target

I am unable to understand why it is happening.
What thing on my end need to be managed for HTTPS communication to avoid this exception?

I am sharing my code with you people, if you can give me any idea about it.

Exception trace is:


And my java code is:

 
greg stark
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The connection works just fine for me.

The strange thing is some times this exception comes and some time it works just fine.


Sounds like a thread-safety issue, of which I do not have the talent to debug. All I can suggest is to check your code again for thread-safety issues.
 
Tahir Akram
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks greg stark for your reply.

But this is itself one thread which hits that URL. This request is not originating from a web server. I wonder if I understand your point well...
[ December 15, 2008: Message edited by: Tahir Akram ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic