Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
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 May 24th, 2013, 05:01 PM
Registered User
Join Date: May 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 7 NoSuchFieldError: AuthorityKeyIdentifier

Hello, I have been trying to dig into the book for some weeks now and the going in the later stages of this book are showing a definite pattern when running the examples.

Case-in-point: attempts to run the chapter 7 class: X509CRLExample would not run without using a much older jar: bcprov-jdk16-140.jar. Reason is the class: NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable does not exist in the newer jar: bcprov-jdk15on-148.jar.

Once I got the example to run I am now confronted with the following exception:
NoSuchFieldError: AuthorityKeyIdentifier
at chapter7.X509CRLExample.createCRL(Unknown Source)
at chapter7.X509CRLExample.main(Unknown Source)

I really don't have the expertise to understand how to resolve this issue (the reason why I bought the book).

The examples in the book must be very much out-of-date with respect to the new BC jar API that is provided.

The examples are working fairly well thru ch. 4 or 5 or so but starting with ch. 6 and 7 nothing will run and therefore my progress on learning Java Crytography is waining.

And, I definitely need the use of Certs, paths, and keystores but with the examples I have now there is no way of making this stuff work without rewriting some of the code to work with the newer jar API.

An exhaustive search for an alternative on the net turns up not much.

Any suggestions welcomed.
Old May 24th, 2013, 05:44 PM
dgh dgh is offline
Wrox Author
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts

Yes, unfortunately some parts of the book are now out of date.

You can find the extra information you need at:


There are also some further references on:




Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4 --> Chapter 5 Continuity?? theboffin BOOK: Professional ASP.NET MVC 4 4 July 8th, 2013 03:36 AM
Chapter 6 - Code Download Missing for this Chapter dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 August 11th, 2009 11:02 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM

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