This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
The below code throws the following exception Exception in thread "main" java.lang.NullPointerException at EncryptionProblem.crypt(EncryptionProblem.java:85) at EncryptionProblem.<init>(EncryptionProblem.java:37) at EncryptionProblem.main(EncryptionProblem.java:16) Press any key to continue . . . But runs fine if uncomment the lines 106 & 15, line 15adds the BouncyCastle provider line 106KeyFactory retrieves the Algorithm from BouncyCastle provider Kindly help me executing the same above code without BouncyCastle provider BELOW IS THE COMPLETE CODE ATTACHED (documented lines are deleted)