Support Article
NullPointerException on validating token with ProcessJWT activit
SA-96962
Summary
User has configured an authentication service which use the out-of-the-box ProcessJWT activity to validate the signed JWT token received.
NullPointerException while validating token using the ProcessJWT activity.
Error Messages
Unable to process the Json Web Token
java.lang.NullPointerException
at com.pega.pegarules.session.external.authorization.KeystoreData.addPublicKeyCertificatesToAliasMap(KeystoreData.java:493) ~[prenginext.jar:?]
at com.pega.pegarules.session.external.authorization.KeystoreData.<init>(KeystoreData.java:561) ~[prenginext.jar:?]
at com.pega.pegarules.session.internal.authorization.KeyStoreCacheImpl.put(KeyStoreCacheImpl.java:457) ~[prprivate.jar:?] ...
Steps to Reproduce
- Log in to the application
- Create a custom type authentication service
- In the Authentication activity, call the pxProcessJWT activity to validate the token received
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Apply HFix-59110.
Published January 6, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.