[JIRA] Resolved: (CC-843) Dashboard buildloop listener causes nullpointer exception

"Dan Rollo (JIRA)" <[email protected]> Tue, 29 Mar 2011 00:41:43 -0500 (CDT)
Newsgroups gmane.comp.java.cruise-control.devel
Message-ID <178951313.1301377303428.JavaMail.root@chidmzhosting02.thoughtworks.com>
     [ http://jira.public.thoughtworks.org/browse/CC-843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Rollo resolved CC-843.
--------------------------

    Resolution: Fixed

Fixed in svn rev# 4095.

> Dashboard buildloop listener causes nullpointer exception
> ---------------------------------------------------------
>
>                 Key: CC-843
>                 URL: http://jira.public.thoughtworks.org/browse/CC-843
>             Project: CruiseControl
>          Issue Type: Bug
>          Components: Core Application
>    Affects Versions: 2.7.3
>         Environment: Windows server 2003
>            Reporter: Erik W. Rasmussen
>
> When running the binary distribution using Jetty the following exception occurs when the dashboard is called from cruisecontrol:
> 2008-08-08 23:38:10,111  WARN org.mortbay.jetty.servlet.ServletHandler:577 - /dashboard/buildloop/listener: 
> java.lang.NullPointerException
> 	at net.sourceforge.cruisecontrol.dashboard.web.ConfigInterceptor.postHandle(ConfigInterceptor.java:65)
> 	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:864)
> 	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
> 	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
> 	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
> 	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1563)
> 	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1515)
> 	at org.mortbay.http.HttpServer.service(HttpServer.java:956)
> 	at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
> 	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
> 	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
> 	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
> 	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> 	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> As far as I can tell this is caused by the net.sourceforge.cruisecontrol.dashboard.web.BuildLoopController class returning null as ModelAndView object. The problem can be alleviated by commenting out the "<ref bean="configInterceptor" />" element in the interceptorInjector bean in spring-tabs-servlet.xml. This however in turn causes Velocity to return the following error:
> 2008-08-08 23:30:41,429 ERROR org.springframework.ui.velocity.CommonsLoggingLogSystem:43 - Left side ($has_dashboard_config) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. partial/partial_warning.vm [line 1, column 29]
> because the parameter is now missing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.public.thoughtworks.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar