hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devaraj K (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MAPREDUCE-4048) NullPointerException exception while accessing the Application Master UI
Date Fri, 04 May 2012 12:38:48 GMT

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

Devaraj K updated MAPREDUCE-4048:
---------------------------------

    Status: Patch Available  (was: Open)

Thanks a lot for the review.


{quote}
The patch looks good for the most part, but I would like to see the test also cover badRequest(null),
which is the case that is causing the error.
{quote}
The test was handling both the scenario's with null and without null message. Anyway I have
made it separate cases now in the updated patch.


{quote}
Oh also because the message itself is null, there is no good way to debug the issue. Could
you look at where badRequest is called and see if we need to log the error before displaying
the error page.
{quote}

I have added the logs where there is a chance to call badRequest()  with null message.
                
> NullPointerException exception while accessing the Application Master UI
> ------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-4048
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4048
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 2.0.0, 3.0.0
>            Reporter: Devaraj K
>            Assignee: Devaraj K
>         Attachments: MAPREDUCE-4048-1.patch, MAPREDUCE-4048.patch
>
>
> {code:xml}
> 2012-03-21 10:21:31,838 ERROR [2145015588@qtp-957250718-801] org.apache.hadoop.yarn.webapp.Dispatcher:
error handling URI: /mapreduce/attempts/job_1332261815858_2_8/m/KILLED
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.yarn.webapp.Dispatcher.service(Dispatcher.java:150)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
>         at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
>         at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
>         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
>         at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:900)
>         at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:834)
>         .......
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>         at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> Caused by: java.lang.NullPointerException
>         at com.google.common.base.Joiner.toString(Joiner.java:317)
>         at com.google.common.base.Joiner.appendTo(Joiner.java:97)
>         at com.google.common.base.Joiner.appendTo(Joiner.java:127)
>         at com.google.common.base.Joiner.join(Joiner.java:158)
>         at com.google.common.base.Joiner.join(Joiner.java:166)
>         at org.apache.hadoop.yarn.util.StringHelper.join(StringHelper.java:102)
>         at org.apache.hadoop.mapreduce.v2.app.webapp.AppController.badRequest(AppController.java:319)
>         at org.apache.hadoop.mapreduce.v2.app.webapp.AppController.attempts(AppController.java:286)
>         ... 36 more
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message