[
https://issues.apache.org/jira/browse/AMBARI-11588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Myroslav Papirkovskyy resolved AMBARI-11588.
--------------------------------------------
Resolution: Fixed
Pushed to trunk
> NPE on desiredStateEntity from different stack traces in
> ServiceComponentHostImpl
> ---------------------------------------------------------------------------------
>
> Key: AMBARI-11588
> URL: https://issues.apache.org/jira/browse/AMBARI-11588
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.0
> Reporter: Myroslav Papirkovskyy
> Assignee: Myroslav Papirkovskyy
> Priority: Critical
> Fix For: 2.1.0
>
>
> Copying the email thread with exception trace.
> This happened during Enable Security Wizard.
> {code}
> Exception on cluster GET
> 24 Apr 2015 12:39:16,893 ERROR [qtp-client-108] ReadHandler:91 - Caught a
> runtime exception executing a query
> java.lang.NullPointerException
> at
> org.apache.ambari.server.state.svccomphost.ServiceComponentHostImpl.isRestartRequired(ServiceComponentHostImpl.java:1455)
> at
> org.apache.ambari.server.state.ConfigHelper.calculateIsStaleConfigs(ConfigHelper.java:803)
> at
> org.apache.ambari.server.state.ConfigHelper.isStaleConfigs(ConfigHelper.java:374)
> --
> at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
> at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at
> org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> --
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> at java.lang.Thread.run(Thread.java:745)
> 24 Apr 2015 12:39:16,903 WARN [qtp-client-108] ServletHandler:514 -
> /api/v1/clusters
> java.lang.NullPointerException
> at
> org.apache.ambari.server.state.svccomphost.ServiceComponentHostImpl.isRestartRequired(ServiceComponentHostImpl.java:1455)
> at
> org.apache.ambari.server.state.ConfigHelper.calculateIsStaleConfigs(ConfigHelper.java:803)
> at
> org.apache.ambari.server.state.ConfigHelper.isStaleConfigs(ConfigHelper.java:374)
> --
> at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
> at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at
> org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> {code}
> Do not have the other trace but it came from : return
> getDesiredStateEntity().getMaintenanceState();
> Basically both of these were while server was dealing with creating several
> tasks at once.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)