java.lang.NullPointerException:com.cloudera.server.cmf.cluster.RulesCluster createServicesIfNeeded

  • Post author:
  • Post category:java


在CM添加组件是遇到如下错误:

发生服务器错误。将以下信息发送至 Cloudera。

路径: http://10.0.41.131:7180/cmf/clusters/1/add-service/roleAssignments

版本: Cloudera Express 5.7.0 (#76 built by jenkins on 20160401-1334 git: ec0e7e69444280aa311511998bd83e8e6572f61c)

java.lang.NullPointerException:

at RulesCluster.java line 378

in com.cloudera.server.cmf.cluster.RulesCluster createServicesIfNeeded()

堆栈踪迹:

RulesCluster.java line 378

in com.cloudera.server.cmf.cluster.RulesCluster createServicesIfNeeded()

RulesCluster.java line 258

in com.cloudera.server.cmf.cluster.RulesCluster doRoleAssignment()

RulesCluster.java line 347

in com.cloudera.server.cmf.cluster.RulesCluster computeServiceRoleHostMap()

AddServiceWizardController2.java line 338

in com.cloudera.server.web.cmf.wizard.service.AddServiceWizardController2 buildRoleAssignmentsData()

AddServiceWizardController2.java line 272

in com.cloudera.server.web.cmf.wizard.service.AddServiceWizardController2 renderAssignmentsStep()

<generated> line -1

in com.cloudera.server.web.cmf.wizard.service.AddServiceWizardController2$$FastClassByCGLIB$$d99fd210 invoke()

MethodProxy.java line 191

in net.sf.cglib.proxy.MethodProxy invoke()

Cglib2AopProxy.java line 688

in org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation invokeJoinpoint()

ReflectiveMethodInvocation.java line 150

in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()

MethodSecurityInterceptor.java line 61

in org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor invoke()

ReflectiveMethodInvocation.java line 172

in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()

Cglib2AopProxy.java line 621

in org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor intercept()

<generated> line -1

in com.cloudera.server.web.cmf.wizard.service.AddServiceWizardController2$$EnhancerByCGLIB$$616646d0 renderAssignmentsStep()

NativeMethodAccessorImpl.java line -2

in sun.reflect.NativeMethodAccessorImpl invoke0()

NativeMethodAccessorImpl.java line 57

in sun.reflect.NativeMethodAccessorImpl invoke()

DelegatingMethodAccessorImpl.java line 43

in sun.reflect.DelegatingMethodAccessorImpl invoke()

Method.java line 606

in java.lang.reflect.Method invoke()

HandlerMethodInvoker.java line 176

in org.springframework.web.bind.annotation.support.HandlerMethodInvoker invokeHandlerMethod()

AnnotationMethodHandlerAdapter.java line 436

in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter invokeHandlerMethod()

AnnotationMethodHandlerAdapter.java line 424

in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter handle()

DispatcherServlet.java line 790

in org.springframework.web.servlet.DispatcherServlet doDispatch()

DispatcherServlet.java line 719

in org.springframework.web.servlet.DispatcherServlet doService()

FrameworkServlet.java line 669

in org.springframework.web.servlet.FrameworkServlet processRequest()

FrameworkServlet.java line 574

in org.springframework.web.servlet.FrameworkServlet doGet()

HttpServlet.java line 707

in javax.servlet.http.HttpServlet service()

HttpServlet.java line 820

in javax.servlet.http.HttpServlet service()

ServletHolder.java line 511

in org.mortbay.jetty.servlet.ServletHolder handle()

ServletHandler.java line 1221

in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()

UserAgentFilter.java line 78

in org.mortbay.servlet.UserAgentFilter doFilter()

GzipFilter.java line 131

in org.mortbay.servlet.GzipFilter doFilter()

ServletHandler.java line 1212

in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()

JAMonServletFilter.java line 48

in com.jamonapi.http.JAMonServletFilter doFilter()

ServletHandler.java line 1212

in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()

JavaMelodyFacade.java line 109

in com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter doFilter()

ServletHandler.java line 1212

in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()

FilterChainProxy.java line 311

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

FilterSecurityInterceptor.java line 116

in org.springframework.security.web.access.intercept.FilterSecurityInterceptor invoke()

FilterSecurityInterceptor.java line 83

in org.springframework.security.web.access.intercept.FilterSecurityInterceptor doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

ExceptionTranslationFilter.java line 113

in org.springframework.security.web.access.ExceptionTranslationFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

SessionManagementFilter.java line 101

in org.springframework.security.web.session.SessionManagementFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

AnonymousAuthenticationFilter.java line 113

in org.springframework.security.web.authentication.AnonymousAuthenticationFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

RememberMeAuthenticationFilter.java line 139

in org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

SecurityContextHolderAwareRequestFilter.java line 54

in org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

RequestCacheAwareFilter.java line 45

in org.springframework.security.web.savedrequest.RequestCacheAwareFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

AbstractAuthenticationProcessingFilter.java line 182

in org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

LogoutFilter.java line 105

in org.springframework.security.web.authentication.logout.LogoutFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

SecurityContextPersistenceFilter.java line 87

in org.springframework.security.web.context.SecurityContextPersistenceFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

ConcurrentSessionFilter.java line 125

in org.springframework.security.web.session.ConcurrentSessionFilter doFilter()

FilterChainProxy.java line 323

in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()

FilterChainProxy.java line 173

in org.springframework.security.web.FilterChainProxy doFilter()

DelegatingFilterProxy.java line 237

in org.springframework.web.filter.DelegatingFilterProxy invokeDelegate()

DelegatingFilterProxy.java line 167

in org.springframework.web.filter.DelegatingFilterProxy doFilter()

ServletHandler.java line 1212

in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()

CharacterEncodingFilter.java line 88

in org.springframework.web.filter.CharacterEncodingFilter doFilterInternal()

OncePerRequestFilter.java line 76

in org.springframework.web.filter.OncePerRequestFilter doFilter()

ServletHandler.java line 1212

in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()

ServletHandler.java line 399

in org.mortbay.jetty.servlet.ServletHandler handle()

SecurityHandler.java line 216

in org.mortbay.jetty.security.SecurityHandler handle()

SessionHandler.java line 182

in org.mortbay.jetty.servlet.SessionHandler handle()

SecurityHandler.java line 216

in org.mortbay.jetty.security.SecurityHandler handle()

ContextHandler.java line 767

in org.mortbay.jetty.handler.ContextHandler handle()

WebAppContext.java line 450

in org.mortbay.jetty.webapp.WebAppContext handle()

HandlerWrapper.java line 152

in org.mortbay.jetty.handler.HandlerWrapper handle()

StatisticsHandler.java line 53

in org.mortbay.jetty.handler.StatisticsHandler handle()

HandlerWrapper.java line 152

in org.mortbay.jetty.handler.HandlerWrapper handle()

Server.java line 326

in org.mortbay.jetty.Server handle()

HttpConnection.java line 542

in org.mortbay.jetty.HttpConnection handleRequest()

HttpConnection.java line 928

in org.mortbay.jetty.HttpConnection$RequestHandler headerComplete()

HttpParser.java line 549

in org.mortbay.jetty.HttpParser parseNext()

HttpParser.java line 212

in org.mortbay.jetty.HttpParser parseAvailable()

HttpConnection.java line 404

in org.mortbay.jetty.HttpConnection handle()

SelectChannelEndPoint.java line 410

in org.mortbay.io.nio.SelectChannelEndPoint run()

QueuedThreadPool.java line 582

in org.mortbay.thread.QueuedThreadPool$PoolThread run()

解决办法:

更换浏览器

或者

清空当前浏览器的缓存



版权声明:本文为lxpbs8851原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。