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 while creating KerberosServiceRequestToken object from deserialized class. #223

Open
chirag519086 opened this issue Jun 14, 2024 · 0 comments

Comments

@chirag519086
Copy link

Spring authorization server stores KerberosServiceRequestToken object in the database.
While storing the object serialization takes place and serialized object gets stored in table.
But "KerberosTicketValidation ticketValidation" field is marked as transient, so it is not serialized or stored.

While retrieving KerberosServiceRequestToken from database, de-serialization takes place and it goes to create KerberosServiceRequestToken object with deserialized fields by MixIn class.

However, while creating new object of KerberosServiceRequestToken requires "KerberosTicketValidation ticketValidation" field in the constructor. But as deserialized class doesn't contain transient field, constructor call gives NullPointerException because it uses ticketValidation subject and username to create JassSubjectHolder.

image

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

1 participant