Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Capturing javax.net.ssl.debug output

843811Apr 13 2008 — edited Apr 15 2008
Hi,
I am running an SSL connection code inside a JSP file.

I would like to capture the output of the entire process.
System.setProperty("javax.net.ssl.debug", "all");
ByteArrayOutputStream errorStream = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(errorStream, true);
System.setOut(ps);
System.setErr(ps);
...
// Print debug information.
out.println(errorStream.toString());
It does not print anything, the buffer is empty. any idea why ?

Thanks,
Efi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2008
Added on Apr 13 2008
5 comments
3,018 views