Wrox Programmer Forums
|
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2006, 12:01 PM
Registered User
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 10 SSL

I could not get the SSL server in chapter 10 to start. I get the following Exception. I am runing Java 1.4.2_07

java.net.SocketException: Export restriction: this JSSE implementation is non-pluggable.
    at javax.net.ssl.DefaultSSLServerSocketFactory.create ServerSocket(DashoA12275)
    at chapter10.SSLServerExample.main(SSLServerExample.j ava:49)
Exception in thread "main"

Bouncycastle is installed, I have the unrestricted policy files installed and the Bouncycastle provider installed. These all pass their tests in chapter 1.
 
Old January 19th, 2006, 05:24 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

I'd only expect to see this if you were trying to replace the default Sun SSL socket factory. The example definitely doesn't do that. It might also happen if you've over written the version of the JSSE that ships with 1.4 with one of the JSSE 1.0.? versions.

There's quite a lengthy discussion on this at:

http://forum.java.sun.com/thread.jsp...137&tstart=210

But other than over writing the JSSE implementation, none of the scenarios really apply to executing the example.

Do any of the above apply in your case?

Regards,

David

 
Old January 20th, 2006, 09:27 AM
Registered User
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I installed a new copy of the JDK 1.4.2_10, and started again. This time it worked a treat.

Could be I broke the JDK a while ago while I was unsuccessful experimenting with JSSE. Then I bought the book.

 
Old January 20th, 2006, 10:58 AM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Thanks for the follow up.

It's more than likely others will have the same problem, so you have probably saved a lot of people a lot of work.

Hope the book is of equal value.

Regards,

David






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 10 gogeo BOOK: Beginning Access 2003 VBA 1 January 22nd, 2006 09:41 AM
Chapter 10 czambran BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 March 29th, 2005 09:35 AM
Chapter 10 columbiasmiles JSP Basics 0 May 17th, 2004 08:09 PM
Chapter 10, Cookies McMug BOOK: Beginning ASP.NET 1.0 3 March 30th, 2004 04:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.