[ 
https://issues.apache.org/jira/browse/HADOOP-9156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allen Wittenauer updated HADOOP-9156:
-------------------------------------
    Labels: BB2015-05-TBR  (was: )

> NullPointerException when using curl to access HTTP Kerberos SPNEGO in 
> hadoop-auth-examples
> -------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-9156
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9156
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>         Environment: Ubuntu Linux 12.04
>            Reporter: Jingguo Yao
>            Assignee: Jingguo Yao
>              Labels: BB2015-05-TBR
>         Attachments: HADOOP-9156.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> When running example as specified by section "Accessing a Hadoop Auth 
> protected URL Using curl" in 
> http://hadoop.apache.org/docs/current/hadoop-auth/Examples.html. The 
> following exception is thrown:
> SEVERE: Servlet.service() for servlet whoServlet threw exception
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.security.authentication.util.KerberosName.getShortName(KerberosName.java:372)
>       at 
> org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler$2.run(KerberosAuthenticationHandler.java:311)
>       at 
> org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler$2.run(KerberosAuthenticationHandler.java:291)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.Subject.doAs(Subject.java:396)
>       at 
> org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler.authenticate(KerberosAuthenticationHandler.java:291)
>       at 
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:349)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>       at 
> org.apache.hadoop.security.authentication.examples.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:58)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>       at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>       at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>       at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>       at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>       at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
>       at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
>       at 
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>       at java.lang.Thread.run(Thread.java:662)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to