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

NPE in SunJaasKerberosTicketValidator with JDK 1.8.0_40 #22

Closed
koraktor opened this issue Apr 1, 2015 · 3 comments
Closed

NPE in SunJaasKerberosTicketValidator with JDK 1.8.0_40 #22

koraktor opened this issue Apr 1, 2015 · 3 comments
Milestone

Comments

@koraktor
Copy link
Contributor

koraktor commented Apr 1, 2015

While updating a project to 1.0.0.RC1 (from a customized 1.0.0.M2) I encountered the following error. The application ran fine with JDK 1.8.0, but updating to JDK 1.8.0_40 did completely break Kerberos authentication.

The error occurs inside SunJaasKerberosTicketValidator.KerberosValidateAction#run because context.getSrcName() is null.

I have no idea why this doesn't work on JDK 1.8.0_40, yet.

  1. This should be fixed for JDK 1.8.0_40 (or any other affected versions). Maybe there is additional configuration needed.
  2. The implementation should be adapted to handle such cases more gracefully (example).
@jvalkeal
Copy link
Contributor

jvalkeal commented Apr 1, 2015

Right, thanks reporting this. Feels like a bug to me in jdk but I agree, it's better to throw something else than npe.

@jvalkeal
Copy link
Contributor

jvalkeal commented May 2, 2015

Related jdk bug may be this https://bugs.openjdk.java.net/browse/JDK-8078439.

@igler
Copy link

igler commented May 2, 2015

Had the same issues and downgrading to JDK 8u31 helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants