Erik Bergenholtz created AMBARI-21681:
-----------------------------------------

             Summary: Unable to login
                 Key: AMBARI-21681
                 URL: https://issues.apache.org/jira/browse/AMBARI-21681
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.4.2
         Environment: Oracle Enterprise Linux 6.4
            Reporter: Erik Bergenholtz
            Priority: Critical


For each attempted login, the following exception is observed in the 
/var/log/ambari-server/ambari-server.log file: 
{code}
08 Aug 2017 12:27:01,313 ERROR [ambari-client-thread-29] ReadHandler:102 - 
Caught a runtime exception executing a query 

java.lang.NullPointerException 

at 
org.apache.ambari.server.controller.internal.ActiveWidgetLayoutResourceProvide 
r.getResources(ActiveWidgetLayoutResourceProvider.java:171) 

at 
org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedRes 
ourceProviderWrapper.queryForResources(ClusterControllerImpl.java:967) 

at 
org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResource 
s(ClusterControllerImpl.java:141) 

at org.apache.ambari.server.api.query.QueryImpl.doQuery(QueryImpl.java:529) 

at 
org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.ja 
va:482) 

at 
org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java: 
454) 

at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:222) 

at 
org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.ja 
va:77) 

at 
org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:145 
) 

at 
org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.ja 
va:126) 

at 
org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.ja 
va:90) 

at 
org.apache.ambari.server.api.services.UserService.getUser(UserService.java:69) 


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 

at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j 
ava:43) 

at java.lang.reflect.Method.invoke(Method.java:498) 

at 
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvok 
erFactory.java:60) 

at 
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatc 
hProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider. 
java:205) 

at 
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher. 
dispatch(ResourceJavaMethodDispatcher.java:75) 

at 
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java 
:302) 

at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRul 
e.java:147) 

at 
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRul 
e.java:108) 

at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRul 
e.java:147) 

at 
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResour 
ceClassesRule.java:84) 

at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebAp 
plicationImpl.java:1542) 

at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebAp 
plicationImpl.java:1473) 

at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApp 
licationImpl.java:1419) 

at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApp 
licationImpl.java:1409) 

at 
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:40 
9) 

at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer 
.java:558) 

at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer 
.java:733) 

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) 

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1507) 

at 
org.apache.ambari.server.api.UserNameOverrideFilter.doFilter(UserNameOverrideF 
ilter.java:106) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:330) 

at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.in 
voke(FilterSecurityInterceptor.java:118) 

at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.do 
Filter(FilterSecurityInterceptor.java:84) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.apache.ambari.server.security.authorization.AmbariAuthorizationFilter.doFi 
lter(AmbariAuthorizationFilter.java:257) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(Ex 
ceptionTranslationFilter.java:113) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.session.SessionManagementFilter.doFilter(Sess 
ionManagementFilter.java:103) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.authentication.AnonymousAuthenticationFilter. 
doFilter(AnonymousAuthenticationFilter.java:113) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestF 
ilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter 
(RequestCacheAwareFilter.java:45) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.apache.ambari.server.security.authorization.jwt.JwtAuthenticationFilter.do 
Filter(JwtAuthenticationFilter.java:96) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.authentication.www.BasicAuthenticationFilter. 
doFilter(BasicAuthenticationFilter.java:201) 

at 
org.apache.ambari.server.security.authentication.AmbariAuthenticationFilter.do 
Filter(AmbariAuthenticationFilter.java:88) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.apache.ambari.server.security.authorization.AmbariUserAuthorizationFilter. 
doFilter(AmbariUserAuthorizationFilter.java:91) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFi 
lter(SecurityContextPersistenceFilter.java:87) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChain 
Proxy.java:192) 

at 
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.ja 
va:160) 

at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(Delegating 
FilterProxy.java:237) 

at 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilter 
Proxy.java:167) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.apache.ambari.server.api.MethodOverrideFilter.doFilter(MethodOverrideFilte 
r.java:72) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter. 
java:47) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.apache.ambari.server.security.AbstractSecurityHeaderFilter.doFilter(Abstra 
ctSecurityHeaderFilter.java:109) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82) 

at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:294) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) 

at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) 

at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) 

at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:2 
31) 

at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1 
086) 

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427) 

at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:19 
3) 

at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:10 
20) 

at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) 

at 
org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHa 
ndlerList.java:212) 

at 
org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHa 
ndlerList.java:201) 

at 
org.apache.ambari.server.controller.AmbariHandlerList.handle(AmbariHandlerList 
.java:139) 

at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116 
) 

at org.eclipse.jetty.server.Server.handle(Server.java:370) 

at 
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConn 
ection.java:494) 

at 
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpCon 
nection.java:973) 

at 
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete( 
AbstractHttpConnection.java:1035) 

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:641) 

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:231) 

at 
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:8 
2) 

at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196) 

at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.ja 
va:696) 

at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.jav 
a:53) 

at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:60 
8) 

at 
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543 
) 

at java.lang.Thread.run(Thread.java:748) 

08 Aug 2017 12:27:01,315 ERROR [ambari-client-thread-29] 
ContainerResponse:419 - The RuntimeException could not be mapped to a 
response, re-throwing to the HTTP container 

java.lang.NullPointerException 

at 
org.apache.ambari.server.controller.internal.ActiveWidgetLayoutResourceProvide 
r.getResources(ActiveWidgetLayoutResourceProvider.java:171) 

at 
org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedRes 
ourceProviderWrapper.queryForResources(ClusterControllerImpl.java:967) 

at 
org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResource 
s(ClusterControllerImpl.java:141) 

at org.apache.ambari.server.api.query.QueryImpl.doQuery(QueryImpl.java:529) 

at 
org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.ja 
va:482) 

at 
org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java: 
454) 

at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:222) 

at 
org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.ja 
va:77) 

at 
org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:145 
) 

at 
org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.ja 
va:126) 

at 
org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.ja 
va:90) 

at 
org.apache.ambari.server.api.services.UserService.getUser(UserService.java:69) 


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 

at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j 
ava:43) 

at java.lang.reflect.Method.invoke(Method.java:498) 

at 
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvok 
erFactory.java:60) 

at 
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatc 
hProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider. 
java:205) 

at 
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher. 
dispatch(ResourceJavaMethodDispatcher.java:75) 

at 
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java 
:302) 

at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRul 
e.java:147) 

at 
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRul 
e.java:108) 

at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRul 
e.java:147) 

at 
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResour 
ceClassesRule.java:84) 

at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebAp 
plicationImpl.java:1542) 

at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebAp 
plicationImpl.java:1473) 

at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApp 
licationImpl.java:1419) 

at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApp 
licationImpl.java:1409) 

at 
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:40 
9) 

at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer 
.java:558) 

at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer 
.java:733) 

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) 

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1507) 

at 
org.apache.ambari.server.api.UserNameOverrideFilter.doFilter(UserNameOverrideF 
ilter.java:106) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:330) 

at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.in 
voke(FilterSecurityInterceptor.java:118) 

at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.do 
Filter(FilterSecurityInterceptor.java:84) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.apache.ambari.server.security.authorization.AmbariAuthorizationFilter.doFi 
lter(AmbariAuthorizationFilter.java:257) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(Ex 
ceptionTranslationFilter.java:113) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.session.SessionManagementFilter.doFilter(Sess 
ionManagementFilter.java:103) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.authentication.AnonymousAuthenticationFilter. 
doFilter(AnonymousAuthenticationFilter.java:113) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestF 
ilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter 
(RequestCacheAwareFilter.java:45) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.apache.ambari.server.security.authorization.jwt.JwtAuthenticationFilter.do 
Filter(JwtAuthenticationFilter.java:96) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.authentication.www.BasicAuthenticationFilter. 
doFilter(BasicAuthenticationFilter.java:201) 

at 
org.apache.ambari.server.security.authentication.AmbariAuthenticationFilter.do 
Filter(AmbariAuthenticationFilter.java:88) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.apache.ambari.server.security.authorization.AmbariUserAuthorizationFilter. 
doFilter(AmbariUserAuthorizationFilter.java:91) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFi 
lter(SecurityContextPersistenceFilter.java:87) 

at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter( 
FilterChainProxy.java:342) 

at 
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChain 
Proxy.java:192) 

at 
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.ja 
va:160) 

at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(Delegating 
FilterProxy.java:237) 

at 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilter 
Proxy.java:167) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.apache.ambari.server.api.MethodOverrideFilter.doFilter(MethodOverrideFilte 
r.java:72) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter. 
java:47) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.apache.ambari.server.security.AbstractSecurityHeaderFilter.doFilter(Abstra 
ctSecurityHeaderFilter.java:109) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82) 

at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:294) 

at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.j 
ava:1478) 

at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) 

at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) 

at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) 

at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:2 
31) 

at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1 
086) 

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427) 

at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:19 
3) 

at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:10 
20) 

at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) 

at 
org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHa 
ndlerList.java:212) 

at 
org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHa 
ndlerList.java:201) 

at 
org.apache.ambari.server.controller.AmbariHandlerList.handle(AmbariHandlerList 
.java:139) 

at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116 
) 

at org.eclipse.jetty.server.Server.handle(Server.java:370) 

at 
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConn 
ection.java:494) 

at 
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpCon 
nection.java:973) 

at 
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete( 
AbstractHttpConnection.java:1035) 

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:641) 

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:231) 

at 
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:8 
2) 

at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196) 

at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.ja 
va:696) 

at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.jav 
a:53) 

at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:60 
8) 

at 
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543 
) 

at java.lang.Thread.run(Thread.java:748) 

08 Aug 2017 12:27:01,316  WARN [ambari-client-thread-29] ServletHandler:561 - 
Error Processing URI: /api/v1/users/bdcsce_admin - 
(java.lang.NullPointerException) null 
{code}

A quick look at the ambari db shows that there are references to widget ids in 
the users table that do not exist in the widget_layout table

{code}
mysql> select user_name, active_widget_layouts from users; 
+---------------+----------------------------+ 
| user_name     | active_widget_layouts      | 
+---------------+----------------------------+ 
| admin         | NULL                       | 
| ambari_bdcsce | NULL                       | 
| ambari_devops | NULL                       | 
| ambari_em     | NULL                       | 
| bdcsce_admin  | [{"id":"51"},{"id":"101"}] | 
+---------------+----------------------------+ 
5 rows in set (0.00 sec) 


mysql> select * from widget_layout; 
+----+------------------------+-----------------+---------+-----------+------- 
------------------+------------+ 
| id | layout_name            | section_name    | scope   | user_name | 
display_name            | cluster_id | 
+----+------------------------+-----------------+---------+-----------+------- 
------------------+------------+ 
|  1 | default_system_heatmap | SYSTEM_HEATMAPS | CLUSTER | ambari    | 
Heatmaps                |          2 | 
|  2 | default_hdfs_dashboard | HDFS_SUMMARY    | CLUSTER | ambari    | 
Standard HDFS Dashboard |          2 | 
|  3 | default_hdfs_heatmap   | HDFS_HEATMAPS   | CLUSTER | ambari    | HDFS 
Heatmaps           |          2 | 
|  4 | default_yarn_dashboard | YARN_SUMMARY    | CLUSTER | ambari    | 
Standard YARN Dashboard |          2 | 
|  5 | default_yarn_heatmap   | YARN_HEATMAPS   | CLUSTER | ambari    | YARN 
Heatmaps           |          2 | 
+----+------------------------+-----------------+---------+-----------+------- 
------------------+------------+ 
5 rows in set (0.00 sec 
{code}

This issue appears to be the same as what is reported in this thread: 
https://community.hortonworks.com/questions/20239/unable-to-log-in-to-ambari-ui-npe500-server-error.html
 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to