Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.8.0
-
None
-
None
Description
The job tracker gets a NullPointerException:
2006-11-27 06:59:25,148 WARN /: /jobfailures.jsp?jobid=job_0001&kind=map:
java.lang.NullPointerException
at org.apache.hadoop.mapred.jobfailures_jsp.printFailedAttempts(jobfailu
res_jsp.java:57)
at org.apache.hadoop.mapred.jobfailures_jsp.printFailures(jobfailures_js
p.java:103)
at org.apache.hadoop.mapred.jobfailures_jsp._jspService(jobfailures_jsp.
java:168)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427
)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:475)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
67)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:635)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
when there is a lost task tracker. Since the task tracker was lost, when the jsp tries to get the task tracker object for that task, it gets a null value. The jsp needs to protect itself from nulls.