FAQ
Hi

I try to use API v6.
CM5 response 500 Internal server error when use /hosts API.

Condition:
1 node(cdh1:ip=10.211.55.101) is installed Cloudera Manager Agent.
loop {
   Add host(cdh2) to CM5 by using v6 API.
   Get hosts from CM5 by using v6 API.
   Delete hosts to CM5 by using v6 API.
}

API sometimes response Internal Server error when call Get and Delete.

Sample code here.
https://gist.github.com/Mahito/11025483

I found error in /var/log/cloudera-scm-server/cloudera-scm-server.log.

2014-04-18 10:31:45,200 WARN
[1441499112@scm-web-205:api.ApiExceptionMapper@150] Unexpected exception.
java.lang.NullPointerException
at
com.cloudera.api.dao.impl.HostManagerDaoImpl$HostnameComparator.compare(HostManagerDaoImpl.java:45)
at
com.cloudera.api.dao.impl.HostManagerDaoImpl$HostnameComparator.compare(HostManagerDaoImpl.java:40)
at java.util.Arrays.mergeSort(Arrays.java:1270)
at java.util.Arrays.sort(Arrays.java:1210)
at java.util.Collections.sort(Collections.java:157)
at
com.cloudera.api.dao.impl.HostManagerDaoImpl.deleteAllHosts(HostManagerDaoImpl.java:96)
at sun.reflect.GeneratedMethodAccessor943.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
at com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
at com.sun.proxy.$Proxy114.deleteAllHosts(Unknown Source)
at
com.cloudera.api.v1.impl.HostsResourceImpl.deleteAllHosts(HostsResourceImpl.java:89)
at sun.reflect.GeneratedMethodAccessor942.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:158)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:243)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doDelete(AbstractHTTPServlet.java:174)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:219)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
at
com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter.doFilter(JavaMelodyFacade.java:109)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at com.cloudera.api.ApiBasicAuthFilter.doFilter(ApiBasicAuthFilter.java:44)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at
org.mortbay.jetty.handler.StatisticsHandler.handle(StatisticsHandler.java:53)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
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)



GUI shows error too.

Server Error

A server error has occurred. Send the following information to Cloudera.

*Path: http://10.211.55.100:7180/cmf/hardware/hosts*

*Version: Cloudera Express 5.0.0 (#215 built by jenkins on 20140331-1424
git: 50c701f3e920b1fcf524bf5fa061d65902cde804)*
*java.lang.NullPointerException*:
at *ComparisonChain.java line 72*
in com.google.common.collect.ComparisonChain$1 compare()
  Stack Trace:

    1. *ComparisonChain.java line 72*
    in com.google.common.collect.ComparisonChain$1 compare()
    2. *Humanize.java line 623*
    in com.cloudera.server.web.common.Humanize$1 compare()
    3. *Humanize.java line 620*
    in com.cloudera.server.web.common.Humanize$1 compare()
    4. *Arrays.java line 1270*
    in java.util.Arrays mergeSort()
    5. *Arrays.java line 1210*
    in java.util.Arrays sort()
    6. *Collections.java line 157*
    in java.util.Collections sort()
    7. *Humanize.java line 732*
    in com.cloudera.server.web.common.Humanize sortImpl()
    8. *Humanize.java line 737*
    in com.cloudera.server.web.common.Humanize sortHosts()
    9. *HardwareController.java line 116*
    in com.cloudera.server.web.cmf.HardwareController hardwareHosts()
    10. *<generated> line -1*
    in
    com.cloudera.server.web.cmf.HardwareController$$FastClassByCGLIB$$fcce8e79
    invoke()
    11. *MethodProxy.java line 191*
    in net.sf.cglib.proxy.MethodProxy invoke()
    12. *Cglib2AopProxy.java line 617*
    in
    org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor
    intercept()
    13. *<generated> line -1*
    in
    com.cloudera.server.web.cmf.HardwareController$$EnhancerByCGLIB$$8811709e
    hardwareHosts()
    14. *line -1*
    in sun.reflect.GeneratedMethodAccessor948 invoke()
    15. *DelegatingMethodAccessorImpl.java line 25*
    in sun.reflect.DelegatingMethodAccessorImpl invoke()
    16. *Method.java line 597*
    in java.lang.reflect.Method invoke()
    17. *HandlerMethodInvoker.java line 176*
    in org.springframework.web.bind.annotation.support.HandlerMethodInvoker
    invokeHandlerMethod()
    18. *AnnotationMethodHandlerAdapter.java line 436*
    in
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
    invokeHandlerMethod()
    19. *AnnotationMethodHandlerAdapter.java line 424*
    in
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
    handle()
    20. *DispatcherServlet.java line 790*
    in org.springframework.web.servlet.DispatcherServlet doDispatch()
    21. *DispatcherServlet.java line 719*
    in org.springframework.web.servlet.DispatcherServlet doService()
    22. *FrameworkServlet.java line 669*
    in org.springframework.web.servlet.FrameworkServlet processRequest()
    23. *FrameworkServlet.java line 574*
    in org.springframework.web.servlet.FrameworkServlet doGet()
    24. *HttpServlet.java line 707*
    in javax.servlet.http.HttpServlet service()
    25. *HttpServlet.java line 820*
    in javax.servlet.http.HttpServlet service()
    26. *ServletHolder.java line 511*
    in org.mortbay.jetty.servlet.ServletHolder handle()
    27. *ServletHandler.java line 1221*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    28. *UserAgentFilter.java line 78*
    in org.mortbay.servlet.UserAgentFilter doFilter()
    29. *GzipFilter.java line 131*
    in org.mortbay.servlet.GzipFilter doFilter()
    30. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    31. *JAMonServletFilter.java line 48*
    in com.jamonapi.http.JAMonServletFilter doFilter()
    32. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    33. *JavaMelodyFacade.java line 109*
    in com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter doFilter()
    34. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    35. *FilterChainProxy.java line 311*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    36. *FilterSecurityInterceptor.java line 116*
    in
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor
    invoke()
    37. *FilterSecurityInterceptor.java line 83*
    in
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor
    doFilter()
    38. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    39. *ExceptionTranslationFilter.java line 113*
    in org.springframework.security.web.access.ExceptionTranslationFilter
    doFilter()
    40. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    41. *SessionManagementFilter.java line 101*
    in org.springframework.security.web.session.SessionManagementFilter
    doFilter()
    42. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    43. *AnonymousAuthenticationFilter.java line 113*
    in
    org.springframework.security.web.authentication.AnonymousAuthenticationFilter
    doFilter()
    44. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    45. *RememberMeAuthenticationFilter.java line 146*
    in
    org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter
    doFilter()
    46. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    47. *SecurityContextHolderAwareRequestFilter.java line 54*
    in
    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter
    doFilter()
    48. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    49. *RequestCacheAwareFilter.java line 45*
    in org.springframework.security.web.savedrequest.RequestCacheAwareFilter
    doFilter()
    50. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    51. *AbstractAuthenticationProcessingFilter.java line 182*
    in
    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
    doFilter()
    52. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    53. *LogoutFilter.java line 105*
    in org.springframework.security.web.authentication.logout.LogoutFilter
    doFilter()
    54. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    55. *SecurityContextPersistenceFilter.java line 87*
    in
    org.springframework.security.web.context.SecurityContextPersistenceFilter
    doFilter()
    56. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    57. *ConcurrentSessionFilter.java line 125*
    in org.springframework.security.web.session.ConcurrentSessionFilter
    doFilter()
    58. *FilterChainProxy.java line 323*
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    59. *FilterChainProxy.java line 173*
    in org.springframework.security.web.FilterChainProxy doFilter()
    60. *DelegatingFilterProxy.java line 237*
    in org.springframework.web.filter.DelegatingFilterProxy invokeDelegate()
    61. *DelegatingFilterProxy.java line 167*
    in org.springframework.web.filter.DelegatingFilterProxy doFilter()
    62. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    63. *CharacterEncodingFilter.java line 88*
    in org.springframework.web.filter.CharacterEncodingFilter
    doFilterInternal()
    64. *OncePerRequestFilter.java line 76*
    in org.springframework.web.filter.OncePerRequestFilter doFilter()
    65. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    66. *ServletHandler.java line 399*
    in org.mortbay.jetty.servlet.ServletHandler handle()
    67. *SecurityHandler.java line 216*
    in org.mortbay.jetty.security.SecurityHandler handle()
    68. *SessionHandler.java line 182*
    in org.mortbay.jetty.servlet.SessionHandler handle()
    69. *SecurityHandler.java line 216*
    in org.mortbay.jetty.security.SecurityHandler handle()
    70. *ContextHandler.java line 766*
    in org.mortbay.jetty.handler.ContextHandler handle()
    71. *WebAppContext.java line 450*
    in org.mortbay.jetty.webapp.WebAppContext handle()
    72. *HandlerWrapper.java line 152*
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    73. *StatisticsHandler.java line 53*
    in org.mortbay.jetty.handler.StatisticsHandler handle()
    74. *HandlerWrapper.java line 152*
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    75. *Server.java line 326*
    in org.mortbay.jetty.Server handle()
    76. *HttpConnection.java line 542*
    in org.mortbay.jetty.HttpConnection handleRequest()
    77. *HttpConnection.java line 928*
    in org.mortbay.jetty.HttpConnection$RequestHandler headerComplete()
    78. *HttpParser.java line 549*
    in org.mortbay.jetty.HttpParser parseNext()
    79. *HttpParser.java line 212*
    in org.mortbay.jetty.HttpParser parseAvailable()
    80. *HttpConnection.java line 404*
    in org.mortbay.jetty.HttpConnection handle()
    81. *SelectChannelEndPoint.java line 410*
    in org.mortbay.io.nio.SelectChannelEndPoint run()
    82. *QueuedThreadPool.java line 582*
    in org.mortbay.thread.QueuedThreadPool$PoolThread run(


To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

  • Meng Ke at Apr 23, 2014 at 2:31 am
    Hi, @mahito, have you found any solutions to this error?


    在 2014年4月18日星期五UTC+8下午1时02分16秒,Mahito OGURA写道:
    Hi

    I try to use API v6.
    CM5 response 500 Internal server error when use /hosts API.

    Condition:
    1 node(cdh1:ip=10.211.55.101) is installed Cloudera Manager Agent.
    loop {
    Add host(cdh2) to CM5 by using v6 API.
    Get hosts from CM5 by using v6 API.
    Delete hosts to CM5 by using v6 API.
    }

    API sometimes response Internal Server error when call Get and Delete.

    Sample code here.
    https://gist.github.com/Mahito/11025483

    I found error in /var/log/cloudera-scm-server/cloudera-scm-server.log.

    2014-04-18 10:31:45,200 WARN
    [1441499112@scm-web-205:api.ApiExceptionMapper@150] Unexpected exception.
    java.lang.NullPointerException
    at
    com.cloudera.api.dao.impl.HostManagerDaoImpl$HostnameComparator.compare(HostManagerDaoImpl.java:45)
    at
    com.cloudera.api.dao.impl.HostManagerDaoImpl$HostnameComparator.compare(HostManagerDaoImpl.java:40)
    at java.util.Arrays.mergeSort(Arrays.java:1270)
    at java.util.Arrays.sort(Arrays.java:1210)
    at java.util.Collections.sort(Collections.java:157)
    at
    com.cloudera.api.dao.impl.HostManagerDaoImpl.deleteAllHosts(HostManagerDaoImpl.java:96)
    at sun.reflect.GeneratedMethodAccessor943.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    com.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
    at com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
    at com.sun.proxy.$Proxy114.deleteAllHosts(Unknown Source)
    at
    com.cloudera.api.v1.impl.HostsResourceImpl.deleteAllHosts(HostsResourceImpl.java:89)
    at sun.reflect.GeneratedMethodAccessor942.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    at
    org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)
    at
    org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
    at
    org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
    at
    org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
    at
    org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    at
    org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
    at
    org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
    at
    org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
    at
    org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
    at
    org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:158)
    at
    org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:243)
    at
    org.apache.cxf.transport.servlet.AbstractHTTPServlet.doDelete(AbstractHTTPServlet.java:174)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
    at
    org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:219)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
    at
    com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter.doFilter(JavaMelodyFacade.java:109)
    at
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
    at
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
    at
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at com.cloudera.api.ApiBasicAuthFilter.doFilter(ApiBasicAuthFilter.java:44)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
    at
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    at
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    at
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at
    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
    at
    org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at
    org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at
    org.mortbay.jetty.handler.StatisticsHandler.handle(StatisticsHandler.java:53)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at
    org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    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)



    GUI shows error too.

    Server Error

    A server error has occurred. Send the following information to Cloudera.

    *Path: http://10.211.55.100:7180/cmf/hardware/hosts
    <http://10.211.55.100:7180/cmf/hardware/hosts>*

    *Version: Cloudera Express 5.0.0 (#215 built by jenkins on 20140331-1424
    git: 50c701f3e920b1fcf524bf5fa061d65902cde804)*
    *java.lang.NullPointerException*:
    at *ComparisonChain.java line 72*
    in com.google.common.collect.ComparisonChain$1 compare()
    Stack Trace:

    1. *ComparisonChain.java line 72*
    in com.google.common.collect.ComparisonChain$1 compare()
    2. *Humanize.java line 623*
    in com.cloudera.server.web.common.Humanize$1 compare()
    3. *Humanize.java line 620*
    in com.cloudera.server.web.common.Humanize$1 compare()
    4. *Arrays.java line 1270*
    in java.util.Arrays mergeSort()
    5. *Arrays.java line 1210*
    in java.util.Arrays sort()
    6. *Collections.java line 157*
    in java.util.Collections sort()
    7. *Humanize.java line 732*
    in com.cloudera.server.web.common.Humanize sortImpl()
    8. *Humanize.java line 737*
    in com.cloudera.server.web.common.Humanize sortHosts()
    9. *HardwareController.java line 116*
    in com.cloudera.server.web.cmf.HardwareController hardwareHosts()
    10. *<generated> line -1*
    in
    com.cloudera.server.web.cmf.HardwareController$$FastClassByCGLIB$$fcce8e79
    invoke()
    11. *MethodProxy.java line 191*
    in net.sf.cglib.proxy.MethodProxy invoke()
    12. *Cglib2AopProxy.java line 617*
    in
    org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor
    intercept()
    13. *<generated> line -1*
    in
    com.cloudera.server.web.cmf.HardwareController$$EnhancerByCGLIB$$8811709e
    hardwareHosts()
    14. *line -1*
    in sun.reflect.GeneratedMethodAccessor948 invoke()
    15. *DelegatingMethodAccessorImpl.java line 25*
    in sun.reflect.DelegatingMethodAccessorImpl invoke()
    16. *Method.java line 597*
    in java.lang.reflect.Method invoke()
    17. *HandlerMethodInvoker.java line 176*
    in
    org.springframework.web.bind.annotation.support.HandlerMethodInvoker
    invokeHandlerMethod()
    18. *AnnotationMethodHandlerAdapter.java line 436*
    in
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
    invokeHandlerMethod()
    19. *AnnotationMethodHandlerAdapter.java line 424*
    in
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
    handle()
    20. *DispatcherServlet.java line 790*
    in org.springframework.web.servlet.DispatcherServlet doDispatch()
    21. *DispatcherServlet.java line 719*
    in org.springframework.web.servlet.DispatcherServlet doService()
    22. *FrameworkServlet.java line 669*
    in org.springframework.web.servlet.FrameworkServlet processRequest()
    23. *FrameworkServlet.java line 574*
    in org.springframework.web.servlet.FrameworkServlet doGet()
    24. *HttpServlet.java line 707*
    in javax.servlet.http.HttpServlet service()
    25. *HttpServlet.java line 820*
    in javax.servlet.http.HttpServlet service()
    26. *ServletHolder.java line 511*
    in org.mortbay.jetty.servlet.ServletHolder handle()
    27. *ServletHandler.java line 1221*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    28. *UserAgentFilter.java line 78*
    in org.mortbay.servlet.UserAgentFilter doFilter()
    29. *GzipFilter.java line 131*
    in org.mortbay.servlet.GzipFilter doFilter()
    30. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    31. *JAMonServletFilter.java line 48*
    in com.jamonapi.http.JAMonServletFilter doFilter()
    32. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    33. *JavaMelodyFacade.java line 109*
    in com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter doFilter()
    34. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    35. *FilterChainProxy.java line 311*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    36. *FilterSecurityInterceptor.java line 116*
    in
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor
    invoke()
    37. *FilterSecurityInterceptor.java line 83*
    in
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor
    doFilter()
    38. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    39. *ExceptionTranslationFilter.java line 113*
    in org.springframework.security.web.access.ExceptionTranslationFilter
    doFilter()
    40. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    41. *SessionManagementFilter.java line 101*
    in org.springframework.security.web.session.SessionManagementFilter
    doFilter()
    42. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    43. *AnonymousAuthenticationFilter.java line 113*
    in
    org.springframework.security.web.authentication.AnonymousAuthenticationFilter
    doFilter()
    44. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    45. *RememberMeAuthenticationFilter.java line 146*
    in
    org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter
    doFilter()
    46. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    47. *SecurityContextHolderAwareRequestFilter.java line 54*
    in
    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter
    doFilter()
    48. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    49. *RequestCacheAwareFilter.java line 45*
    in
    org.springframework.security.web.savedrequest.RequestCacheAwareFilter
    doFilter()
    50. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    51. *AbstractAuthenticationProcessingFilter.java line 182*
    in
    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
    doFilter()
    52. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    53. *LogoutFilter.java line 105*
    in org.springframework.security.web.authentication.logout.LogoutFilter
    doFilter()
    54. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    55. *SecurityContextPersistenceFilter.java line 87*
    in
    org.springframework.security.web.context.SecurityContextPersistenceFilter
    doFilter()
    56. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    57. *ConcurrentSessionFilter.java line 125*
    in org.springframework.security.web.session.ConcurrentSessionFilter
    doFilter()
    58. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    59. *FilterChainProxy.java line 173*
    in org.springframework.security.web.FilterChainProxy doFilter()
    60. *DelegatingFilterProxy.java line 237*
    in org.springframework.web.filter.DelegatingFilterProxy
    invokeDelegate()
    61. *DelegatingFilterProxy.java line 167*
    in org.springframework.web.filter.DelegatingFilterProxy doFilter()
    62. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    63. *CharacterEncodingFilter.java line 88*
    in org.springframework.web.filter.CharacterEncodingFilter
    doFilterInternal()
    64. *OncePerRequestFilter.java line 76*
    in org.springframework.web.filter.OncePerRequestFilter doFilter()
    65. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    66. *ServletHandler.java line 399*
    in org.mortbay.jetty.servlet.ServletHandler handle()
    67. *SecurityHandler.java line 216*
    in org.mortbay.jetty.security.SecurityHandler handle()
    68. *SessionHandler.java line 182*
    in org.mortbay.jetty.servlet.SessionHandler handle()
    69. *SecurityHandler.java line 216*
    in org.mortbay.jetty.security.SecurityHandler handle()
    70. *ContextHandler.java line 766*
    in org.mortbay.jetty.handler.ContextHandler handle()
    71. *WebAppContext.java line 450*
    in org.mortbay.jetty.webapp.WebAppContext handle()
    72. *HandlerWrapper.java line 152*
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    73. *StatisticsHandler.java line 53*
    in org.mortbay.jetty.handler.StatisticsHandler handle()
    74. *HandlerWrapper.java line 152*
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    75. *Server.java line 326*
    in org.mortbay.jetty.Server handle()
    76. *HttpConnection.java line 542*
    in org.mortbay.jetty.HttpConnection handleRequest()
    77. *HttpConnection.java line 928*
    in org.mortbay.jetty.HttpConnection$RequestHandler headerComplete()
    78. *HttpParser.java line 549*
    in org.mortbay.jetty.HttpParser parseNext()
    79. *HttpParser.java line 212*
    in org.mortbay.jetty.HttpParser parseAvailable()
    80. *HttpConnection.java line 404*
    in org.mortbay.jetty.HttpConnection handle()
    81. *SelectChannelEndPoint.java line 410*
    in org.mortbay.io.nio.SelectChannelEndPoint run()
    82. *QueuedThreadPool.java line 582*
    in org.mortbay.thread.QueuedThreadPool$PoolThread run(

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Mahito OGURA at Apr 23, 2014 at 4:18 am
    Hi, Meng

    I haven't find any solutions.
    This problem may happen cloudera manager agent ack timing.
    When this problem happen, response error continue 10~15 seconds and after
    response 200 status code.

    2014年4月23日水曜日 11時31分29秒 UTC+9 Meng Ke:
    Hi, @mahito, have you found any solutions to this error?


    在 2014年4月18日星期五UTC+8下午1时02分16秒,Mahito OGURA写道:
    Hi

    I try to use API v6.
    CM5 response 500 Internal server error when use /hosts API.

    Condition:
    1 node(cdh1:ip=10.211.55.101) is installed Cloudera Manager Agent.
    loop {
    Add host(cdh2) to CM5 by using v6 API.
    Get hosts from CM5 by using v6 API.
    Delete hosts to CM5 by using v6 API.
    }

    API sometimes response Internal Server error when call Get and Delete.

    Sample code here.
    https://gist.github.com/Mahito/11025483

    I found error in /var/log/cloudera-scm-server/cloudera-scm-server.log.

    2014-04-18 10:31:45,200 WARN
    [1441499112@scm-web-205:api.ApiExceptionMapper@150] Unexpected exception.
    java.lang.NullPointerException
    at
    com.cloudera.api.dao.impl.HostManagerDaoImpl$HostnameComparator.compare(HostManagerDaoImpl.java:45)
    at
    com.cloudera.api.dao.impl.HostManagerDaoImpl$HostnameComparator.compare(HostManagerDaoImpl.java:40)
    at java.util.Arrays.mergeSort(Arrays.java:1270)
    at java.util.Arrays.sort(Arrays.java:1210)
    at java.util.Collections.sort(Collections.java:157)
    at
    com.cloudera.api.dao.impl.HostManagerDaoImpl.deleteAllHosts(HostManagerDaoImpl.java:96)
    at sun.reflect.GeneratedMethodAccessor943.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    com.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
    at
    com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
    at com.sun.proxy.$Proxy114.deleteAllHosts(Unknown Source)
    at
    com.cloudera.api.v1.impl.HostsResourceImpl.deleteAllHosts(HostsResourceImpl.java:89)
    at sun.reflect.GeneratedMethodAccessor942.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    at
    org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)
    at
    org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
    at
    org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
    at
    org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
    at
    org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    at
    org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
    at
    org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
    at
    org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
    at
    org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
    at
    org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:158)
    at
    org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:243)
    at
    org.apache.cxf.transport.servlet.AbstractHTTPServlet.doDelete(AbstractHTTPServlet.java:174)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
    at
    org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:219)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
    at
    com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter.doFilter(JavaMelodyFacade.java:109)
    at
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
    at
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
    at
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    com.cloudera.api.ApiBasicAuthFilter.doFilter(ApiBasicAuthFilter.java:44)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
    at
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at
    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
    at
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    at
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    at
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at
    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at
    org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
    at
    org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at
    org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at
    org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at
    org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
    at
    org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at
    org.mortbay.jetty.handler.StatisticsHandler.handle(StatisticsHandler.java:53)
    at
    org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at
    org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    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)



    GUI shows error too.

    Server Error

    A server error has occurred. Send the following information to Cloudera.

    *Path: http://10.211.55.100:7180/cmf/hardware/hosts
    <http://10.211.55.100:7180/cmf/hardware/hosts>*

    *Version: Cloudera Express 5.0.0 (#215 built by jenkins on 20140331-1424
    git: 50c701f3e920b1fcf524bf5fa061d65902cde804)*
    *java.lang.NullPointerException*:
    at *ComparisonChain.java line 72*
    in com.google.common.collect.ComparisonChain$1 compare()
    Stack Trace:

    1. *ComparisonChain.java line 72*
    in com.google.common.collect.ComparisonChain$1 compare()
    2. *Humanize.java line 623*
    in com.cloudera.server.web.common.Humanize$1 compare()
    3. *Humanize.java line 620*
    in com.cloudera.server.web.common.Humanize$1 compare()
    4. *Arrays.java line 1270*
    in java.util.Arrays mergeSort()
    5. *Arrays.java line 1210*
    in java.util.Arrays sort()
    6. *Collections.java line 157*
    in java.util.Collections sort()
    7. *Humanize.java line 732*
    in com.cloudera.server.web.common.Humanize sortImpl()
    8. *Humanize.java line 737*
    in com.cloudera.server.web.common.Humanize sortHosts()
    9. *HardwareController.java line 116*
    in com.cloudera.server.web.cmf.HardwareController hardwareHosts()
    10. *<generated> line -1*
    in
    com.cloudera.server.web.cmf.HardwareController$$FastClassByCGLIB$$fcce8e79
    invoke()
    11. *MethodProxy.java line 191*
    in net.sf.cglib.proxy.MethodProxy invoke()
    12. *Cglib2AopProxy.java line 617*
    in
    org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor
    intercept()
    13. *<generated> line -1*
    in
    com.cloudera.server.web.cmf.HardwareController$$EnhancerByCGLIB$$8811709e
    hardwareHosts()
    14. *line -1*
    in sun.reflect.GeneratedMethodAccessor948 invoke()
    15. *DelegatingMethodAccessorImpl.java line 25*
    in sun.reflect.DelegatingMethodAccessorImpl invoke()
    16. *Method.java line 597*
    in java.lang.reflect.Method invoke()
    17. *HandlerMethodInvoker.java line 176*
    in
    org.springframework.web.bind.annotation.support.HandlerMethodInvoker
    invokeHandlerMethod()
    18. *AnnotationMethodHandlerAdapter.java line 436*
    in
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
    invokeHandlerMethod()
    19. *AnnotationMethodHandlerAdapter.java line 424*
    in
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
    handle()
    20. *DispatcherServlet.java line 790*
    in org.springframework.web.servlet.DispatcherServlet doDispatch()
    21. *DispatcherServlet.java line 719*
    in org.springframework.web.servlet.DispatcherServlet doService()
    22. *FrameworkServlet.java line 669*
    in org.springframework.web.servlet.FrameworkServlet processRequest()
    23. *FrameworkServlet.java line 574*
    in org.springframework.web.servlet.FrameworkServlet doGet()
    24. *HttpServlet.java line 707*
    in javax.servlet.http.HttpServlet service()
    25. *HttpServlet.java line 820*
    in javax.servlet.http.HttpServlet service()
    26. *ServletHolder.java line 511*
    in org.mortbay.jetty.servlet.ServletHolder handle()
    27. *ServletHandler.java line 1221*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    28. *UserAgentFilter.java line 78*
    in org.mortbay.servlet.UserAgentFilter doFilter()
    29. *GzipFilter.java line 131*
    in org.mortbay.servlet.GzipFilter doFilter()
    30. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    31. *JAMonServletFilter.java line 48*
    in com.jamonapi.http.JAMonServletFilter doFilter()
    32. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    33. *JavaMelodyFacade.java line 109*
    in com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter
    doFilter()
    34. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    35. *FilterChainProxy.java line 311*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    36. *FilterSecurityInterceptor.java line 116*
    in
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor
    invoke()
    37. *FilterSecurityInterceptor.java line 83*
    in
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor
    doFilter()
    38. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    39. *ExceptionTranslationFilter.java line 113*
    in org.springframework.security.web.access.ExceptionTranslationFilter
    doFilter()
    40. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    41. *SessionManagementFilter.java line 101*
    in org.springframework.security.web.session.SessionManagementFilter
    doFilter()
    42. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    43. *AnonymousAuthenticationFilter.java line 113*
    in
    org.springframework.security.web.authentication.AnonymousAuthenticationFilter
    doFilter()
    44. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    45. *RememberMeAuthenticationFilter.java line 146*
    in
    org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter
    doFilter()
    46. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    47. *SecurityContextHolderAwareRequestFilter.java line 54*
    in
    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter
    doFilter()
    48. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    49. *RequestCacheAwareFilter.java line 45*
    in
    org.springframework.security.web.savedrequest.RequestCacheAwareFilter
    doFilter()
    50. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    51. *AbstractAuthenticationProcessingFilter.java line 182*
    in
    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
    doFilter()
    52. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    53. *LogoutFilter.java line 105*
    in
    org.springframework.security.web.authentication.logout.LogoutFilter
    doFilter()
    54. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    55. *SecurityContextPersistenceFilter.java line 87*
    in
    org.springframework.security.web.context.SecurityContextPersistenceFilter
    doFilter()
    56. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    57. *ConcurrentSessionFilter.java line 125*
    in org.springframework.security.web.session.ConcurrentSessionFilter
    doFilter()
    58. *FilterChainProxy.java line 323*
    in
    org.springframework.security.web.FilterChainProxy$VirtualFilterChain
    doFilter()
    59. *FilterChainProxy.java line 173*
    in org.springframework.security.web.FilterChainProxy doFilter()
    60. *DelegatingFilterProxy.java line 237*
    in org.springframework.web.filter.DelegatingFilterProxy
    invokeDelegate()
    61. *DelegatingFilterProxy.java line 167*
    in org.springframework.web.filter.DelegatingFilterProxy doFilter()
    62. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    63. *CharacterEncodingFilter.java line 88*
    in org.springframework.web.filter.CharacterEncodingFilter
    doFilterInternal()
    64. *OncePerRequestFilter.java line 76*
    in org.springframework.web.filter.OncePerRequestFilter doFilter()
    65. *ServletHandler.java line 1212*
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    66. *ServletHandler.java line 399*
    in org.mortbay.jetty.servlet.ServletHandler handle()
    67. *SecurityHandler.java line 216*
    in org.mortbay.jetty.security.SecurityHandler handle()
    68. *SessionHandler.java line 182*
    in org.mortbay.jetty.servlet.SessionHandler handle()
    69. *SecurityHandler.java line 216*
    in org.mortbay.jetty.security.SecurityHandler handle()
    70. *ContextHandler.java line 766*
    in org.mortbay.jetty.handler.ContextHandler handle()
    71. *WebAppContext.java line 450*
    in org.mortbay.jetty.webapp.WebAppContext handle()
    72. *HandlerWrapper.java line 152*
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    73. *StatisticsHandler.java line 53*
    in org.mortbay.jetty.handler.StatisticsHandler handle()
    74. *HandlerWrapper.java line 152*
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    75. *Server.java line 326*
    in org.mortbay.jetty.Server handle()
    76. *HttpConnection.java line 542*
    in org.mortbay.jetty.HttpConnection handleRequest()
    77. *HttpConnection.java line 928*
    in org.mortbay.jetty.HttpConnection$RequestHandler headerComplete()
    78. *HttpParser.java line 549*
    in org.mortbay.jetty.HttpParser parseNext()
    79. *HttpParser.java line 212*
    in org.mortbay.jetty.HttpParser parseAvailable()
    80. *HttpConnection.java line 404*
    in org.mortbay.jetty.HttpConnection handle()
    81. *SelectChannelEndPoint.java line 410*
    in org.mortbay.io.nio.SelectChannelEndPoint run()
    82. *QueuedThreadPool.java line 582*
    in org.mortbay.thread.QueuedThreadPool$PoolThread run(

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Sskaje at Apr 23, 2014 at 6:59 am
    I’ve figured out my problem, similar to yours.
    https://sskaje.me/2014/04/delete-unexpected-127-0-0-1-cloudera-manager/

    In my case, I got similar exception like yours in the landing page, and the first visits to /cmf/hardware/hosts with exceptions trace and then 500 only.
    I restarted cm and the upgrading guide brought 127.0.0.1 out, so I tried to delete it and then everything fine.


    sskaje
    sskaje@gmail.com


    On Apr 23, 2014, at 12:18, Mahito OGURA wrote:

    Hi, Meng

    I haven't find any solutions.
    This problem may happen cloudera manager agent ack timing.
    When this problem happen, response error continue 10~15 seconds and after response 200 status code.

    2014年4月23日水曜日 11時31分29秒 UTC+9 Meng Ke:
    Hi, @mahito, have you found any solutions to this error?


    在 2014年4月18日星期五UTC+8下午1时02分16秒,Mahito OGURA写道:
    Hi

    I try to use API v6.
    CM5 response 500 Internal server error when use /hosts API.

    Condition:
    1 node(cdh1:ip=10.211.55.101) is installed Cloudera Manager Agent.
    loop {
    Add host(cdh2) to CM5 by using v6 API.
    Get hosts from CM5 by using v6 API.
    Delete hosts to CM5 by using v6 API.
    }

    API sometimes response Internal Server error when call Get and Delete.

    Sample code here.
    https://gist.github.com/Mahito/11025483

    I found error in /var/log/cloudera-scm-server/cloudera-scm-server.log.

    2014-04-18 10:31:45,200 WARN [1441499112@scm-web-205:api.ApiExceptionMapper@150] Unexpected exception.
    java.lang.NullPointerException
    at com.cloudera.api.dao.impl.HostManagerDaoImpl$HostnameComparator.compare(HostManagerDaoImpl.java:45)
    at com.cloudera.api.dao.impl.HostManagerDaoImpl$HostnameComparator.compare(HostManagerDaoImpl.java:40)
    at java.util.Arrays.mergeSort(Arrays.java:1270)
    at java.util.Arrays.sort(Arrays.java:1210)
    at java.util.Collections.sort(Collections.java:157)
    at com.cloudera.api.dao.impl.HostManagerDaoImpl.deleteAllHosts(HostManagerDaoImpl.java:96)
    at sun.reflect.GeneratedMethodAccessor943.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
    at com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
    at com.sun.proxy.$Proxy114.deleteAllHosts(Unknown Source)
    at com.cloudera.api.v1.impl.HostsResourceImpl.deleteAllHosts(HostsResourceImpl.java:89)
    at sun.reflect.GeneratedMethodAccessor942.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)
    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
    at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
    at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
    at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:158)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:243)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doDelete(AbstractHTTPServlet.java:174)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:219)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
    at com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter.doFilter(JavaMelodyFacade.java:109)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at com.cloudera.api.ApiBasicAuthFilter.doFilter(ApiBasicAuthFilter.java:44)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.handler.StatisticsHandler.handle(StatisticsHandler.java:53)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    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)


    GUI shows error too.

    Server Error
    A server error has occurred. Send the following information to Cloudera.

    Path: http://10.211.55.100:7180/cmf/hardware/hosts

    Version: Cloudera Express 5.0.0 (#215 built by jenkins on 20140331-1424 git: 50c701f3e920b1fcf524bf5fa061d65902cde804)

    java.lang.NullPointerException:
    at ComparisonChain.java line 72
    in com.google.common.collect.ComparisonChain$1 compare()
    Stack Trace:

    ComparisonChain.java line 72
    in com.google.common.collect.ComparisonChain$1 compare()
    Humanize.java line 623
    in com.cloudera.server.web.common.Humanize$1 compare()
    Humanize.java line 620
    in com.cloudera.server.web.common.Humanize$1 compare()
    Arrays.java line 1270
    in java.util.Arrays mergeSort()
    Arrays.java line 1210
    in java.util.Arrays sort()
    Collections.java line 157
    in java.util.Collections sort()
    Humanize.java line 732
    in com.cloudera.server.web.common.Humanize sortImpl()
    Humanize.java line 737
    in com.cloudera.server.web.common.Humanize sortHosts()
    HardwareController.java line 116
    in com.cloudera.server.web.cmf.HardwareController hardwareHosts()
    <generated> line -1
    in com.cloudera.server.web.cmf.HardwareController$$FastClassByCGLIB$$fcce8e79 invoke()
    MethodProxy.java line 191
    in net.sf.cglib.proxy.MethodProxy invoke()
    Cglib2AopProxy.java line 617
    in org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor intercept()
    <generated> line -1
    in com.cloudera.server.web.cmf.HardwareController$$EnhancerByCGLIB$$8811709e hardwareHosts()
    line -1
    in sun.reflect.GeneratedMethodAccessor948 invoke()
    DelegatingMethodAccessorImpl.java line 25
    in sun.reflect.DelegatingMethodAccessorImpl invoke()
    Method.java line 597
    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 146
    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 766
    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(
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedApr 18, '14 at 5:02a
activeApr 23, '14 at 6:59a
posts4
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Mahito OGURA: 2 posts Sskaje: 2 posts

People

Translate

site design / logo © 2022 Grokbase