org.springframework.web.client.RestClientException: Error running rest call; nested exception is org.springframework.web.client.HttpClientErrorException: 401 Authentication required

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Jasvinder Singh
, 1 year ago
Error running rest call; nested exception is org.springframework.web.client.HttpClientErrorException: 401 Authentication required
via Stack Overflow by pratim_b
, 1 year ago
Error running rest call; nested exception is java.lang.IllegalArgumentException: Null name not allowed
via Stack Overflow by Purple
, 5 months ago
Error running rest call; nested exception is org.springframework.web.client.HttpClientErrorException: 401 Unauthorized
via Stack Overflow by Jaz Brok
, 7 months ago
Error running rest call; nested exception is java.lang.IllegalArgumentException: Null name not allowed
via Apache's JIRA Issue Tracker by Greg Senia, 11 months ago
Error running rest call; nested exception is org.springframework.web.client.HttpClientErrorException: 404 Not Found
org.springframework.web.client.HttpClientErrorException: 401 Authentication required
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:614)
at org.springframework.security.kerberos.client.KerberosRestTemplate.doExecuteSubject(KerberosRestTemplate.java:202)
at org.springframework.security.kerberos.client.KerberosRestTemplate.access$100(KerberosRestTemplate.java:67)
at org.springframework.security.kerberos.client.KerberosRestTemplate$1.run(KerberosRestTemplate.java:191)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at org.springframework.security.kerberos.client.KerberosRestTemplate.doExecute(KerberosRestTemplate.java:187)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:530)
at com.datametica.hiveconnection.hiveconnectioncheck.HivePortCheck.main(HivePortCheck.java:57)

Users with the same issue

Once, 1 week ago
2 times, 1 month ago
Once, 1 month ago
Once, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.