Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when getting JWT validator by Issuer #2210

Closed
pubudu538 opened this issue Mar 31, 2024 · 1 comment
Closed

NullPointerException when getting JWT validator by Issuer #2210

pubudu538 opened this issue Mar 31, 2024 · 1 comment
Assignees
Milestone

Comments

@pubudu538
Copy link
Contributor

Description:
SEVERE: Exception while executing runnable io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed@7a0bfdbf
java.lang.NullPointerException: Cannot invoke "org.wso2.apk.enforcer.subscription.SubscriptionDataStore.getJWTValidatorByIssuer(String, String)" because the return value of "org.wso2.apk.enforcer.subscription.SubscriptionDataHolder.getSubscriptionDataStore(String)" is null
at org.wso2.apk.enforcer.security.jwt.Oauth2Authenticator.getJwtValidationInfo(Oauth2Authenticator.java:476)
at org.wso2.apk.enforcer.security.jwt.Oauth2Authenticator.authenticate(Oauth2Authenticator.java:136)
at org.wso2.apk.enforcer.security.AuthFilter.authenticate(AuthFilter.java:175)
at org.wso2.apk.enforcer.security.AuthFilter.handleRequest(AuthFilter.java:131)
at org.wso2.apk.enforcer.api.API.executeFilterChain(API.java:42)

Suggested Labels:

Suggested Assignees:

Affected Product Version:

OS, DB, other environment details and versions:

Steps to reproduce:

Related Issues:

@pubudu538
Copy link
Contributor Author

Fixed with #2206

@Krishanx92 Krishanx92 added this to the 1.1.0-beta milestone Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants