Failing to get a Kerberos ticket for delegation after the server was running for a few hours

Solution Verified - Updated -

Issue

After some time, the Kerberos ticket is not valid anymore and causes the java.lang.NullPointerException

INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION= java.lang.NullPointerException
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.auth.BasicScheme.authenticate(BasicScheme.java:162)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:239)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:202)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:263)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
[stdout] (default task-393) REQ-TRX= USER= SESSION=     at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
INFO  [stdout] (default task-393) REQ-TRX= USER= SESSION=     at com.example.spnego.SPNegoMethodExecutor.execute(SPNegoMethodExecutor.java:66)

Environment

  • SPNEGO/KERBEROS
  • Elytron
  • Red Hat JBoss Enterprise Application Platform (JBoss EAP)
    • 7.2.9
    • 7.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content