Friday, September 26, 2008

Too many certificates in chain exception

Guess what. this is JDK 1.5 (and 1.6 as well) source code:
sun/security/provider/JavaKeyStore.java:

try {
if (numOfCerts > 0) {
entry.chain = new Certificate[numOfCerts];
}
} catch (OutOfMemoryError e) {
throw new IOException("Too many certificates in chain");
}

This means that if you see this weird exception then your are just running low on memory.

Took me too much time to figure out. :)

Good luck to all.
Mikler ;)

2 comments:

Unknown said...

This class is scattered with these catches. I am raising a bug report. Seems mad

intileo said...

Amazing blog ! what a informative blog this is !!! java is very critical part in todays era…. If you are searching java software developer ? then i would like to suggest you intileo technologies which is highly recommend by me and so many people. Intileo technologies a best it firm locate in gurugram , haryana india. You can visit them :- https://intileo.com/ Or call :- 918470058143