Code Inspection results can't be displayed

Since a few days, we can't access code inspections results in TC anymore. When clicking on "View full report", it says "Loading" forever.
In the log file, huge stack traces can be found that eventually show a NPE.

Here is what a freshly installed TC 3.1.1 shows in its log file, but we encounter the same error on the 3.1 version we have in production use:

ERROR - jetbrains.buildServer.SERVER - Error in JSP, request dump:
Path: /buildLog/viewLog.jsp
Method: GET
Param: buildId =
Param: buildTypeId =
Param: tab =

org.apache.jasper.JasperException: An exception occurred processing JSP page /plugins/Inspection/inspectionTab.jsp at line 96

93: 94: var IB = {}; //inspection browser 95: 96: ]]>
97: IB.modules = [
98: <%@elvariable id="modules" type="java.util.Map<String, Boolean>"%>
99: <c:forEach items="$" var="path" varStatus="pathIteration"> <c:if test="${!pathIteration.last}">,</c:if></c:forEach>


Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at org.apache.jsp.tag.web.ext.includePlugin_tag._jspx_meth_c_005fif_005f0(includePlugin_tag.java:118)
at org.apache.jsp.tag.web.ext.includePlugin_tag.doTag(includePlugin_tag.java:76)
at org.apache.jsp.buildLog.viewLog_jsp._jspx_meth_ext_005fincludePlugin_005f0(viewLog_jsp.java:1495)
at org.apache.jsp.buildLog.viewLog_jsp._jspx_meth_c_005fotherwise_005f0(viewLog_jsp.java:1467)
at org.apache.jsp.buildLog.viewLog_jsp._jspx_meth_c_005fchoose_005f0(viewLog_jsp.java:1404)
at org.apache.jsp.buildLog.viewLog_jsp._jspx_meth_c_005fif_005f6(viewLog_jsp.java:1137)
at org.apache.jsp.buildLog.viewLog_jsp.access$23(viewLog_jsp.java:1051)
at org.apache.jsp.buildLog.viewLog_jsp$Helper.invoke9(viewLog_jsp.java:1779)
at org.apache.jsp.buildLog.viewLog_jsp$Helper.invoke(viewLog_jsp.java:1825)
at org.apache.jsp.tag.web.refreshable_tag.doTag(refreshable_tag.java:95)
at org.apache.jsp.buildLog.viewLog_jsp._jspx_meth_bs_005frefreshable_005f0(viewLog_jsp.java:1015)
at org.apache.jsp.buildLog.viewLog_jsp.access$19(viewLog_jsp.java:999)
at org.apache.jsp.buildLog.viewLog_jsp$Helper.invoke8(viewLog_jsp.java:1753)
at org.apache.jsp.buildLog.viewLog_jsp$Helper.invoke(viewLog_jsp.java:1822)
at org.apache.jsp.tag.web.page_tag.doTag(page_tag.java:385)
at org.apache.jsp.buildLog.viewLog_jsp._jspx_meth_bs_005fpage_005f0(viewLog_jsp.java:544)
at org.apache.jsp.buildLog.viewLog_jsp._jspService(viewLog_jsp.java:233)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:167)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:239)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1158)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:7)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.el.ELException: Error reading 'paths' on type jetbrains.buildServer.runner.codeInspection.InspectionInfo
at javax.el.BeanELResolver.getValue(BeanELResolver.java:66)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at org.apache.el.parser.AstValue.getValue(AstValue.java:114)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:923)
at org.apache.jsp.plugins.Inspection.inspectionTab_jsp._jspx_meth_c_005fset_005f1(inspectionTab_jsp.java:479)
at org.apache.jsp.plugins.Inspection.inspectionTab_jsp._jspService(inspectionTab_jsp.java:199)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
... 62 more
Caused by: java.lang.NullPointerException
at jetbrains.buildServer.runner.codeInspection.InspectionInfo$4.process(InspectionInfo.java:3)
at jetbrains.buildServer.runner.codeInspection.InspectionInfo$4.process(InspectionInfo.java:5)
at jetbrains.buildServer.serverSide.impl.query.GenericQuery.doExecuteQuery(GenericQuery.java:12)
at jetbrains.buildServer.serverSide.impl.query.GenericQuery.access$100(GenericQuery.java:39)
at jetbrains.buildServer.serverSide.impl.query.GenericQuery$3.run(GenericQuery.java)
at jetbrains.buildServer.serverSide.impl.DBFacade$3.doInConnection(DBFacade.java)
at jetbrains.buildServer.serverSide.impl.DBFacade$4.doInConnection(DBFacade.java:2)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:317)
at jetbrains.buildServer.serverSide.impl.DBFacade._runSql(DBFacade.java:51)
at jetbrains.buildServer.serverSide.impl.DBFacade.runSql(DBFacade.java:91)
at jetbrains.buildServer.serverSide.impl.query.GenericQuery.execute(GenericQuery.java:27)
at jetbrains.buildServer.runner.codeInspection.InspectionInfo.getPaths(InspectionInfo.java:12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
... 71 more

The problem might be related to updating from IDEA 7.0.2 to 7.0.3, however we aren't 100% sure if that was the same same point in time when this issue first occured.

Any help is highly appreciated as Code Inspections are currently unusable for us.

4 comments

Tobias,

Check out feedback mail.

Tobias wrote:

Since a few days, we can't access code inspections results in TC anymore. When clicking on "View full report", it says "Loading" forever.
In the log file, huge stack traces can be found that eventually show a NPE.

Here is what a freshly installed TC 3.1.1 shows in its log file, but we encounter the same error on the 3.1 version we have in production use:

ERROR - jetbrains.buildServer.SERVER - Error in JSP, request dump:
Path: /buildLog/viewLog.jsp
Method: GET
Param: buildId =
Param: buildTypeId =
Param: tab =

org.apache.jasper.JasperException: An exception occurred processing JSP page /plugins/Inspection/inspectionTab.jsp at line 96

93: <script type="text/javascript">
94: var IB = {}; //inspection browser
95:
96: <c:set var="modules" value="${inspectionInfo.paths}"/>
97: IB.modules = [
98: <%@elvariable id="modules" type="java.util.Map<String, Boolean>"%>
99: <c:forEach items="$" var="path" varStatus="pathIteration"> <c:if test="${!pathIteration.last}">,</c:if></c:forEach>


Stacktrace:
Caused by: java.lang.NullPointerException
at jetbrains.buildServer.runner.codeInspection.InspectionInfo$4.process(InspectionInfo.java:3)

The problem might be related to updating from IDEA 7.0.2 to 7.0.3, however we aren't 100% sure if that was the same same point in time when this issue first occured.

Any help is highly appreciated as Code Inspections are currently unusable for us.



--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Thank you for the quick help, the provided patch works.

0

I think I had the same issue when trying to upgrade to 3.1 - I subsequently moved back to TC 3.0.1, but am hoping to have another go at 3.1.1. Can you share the fix for the problem?

Thanks.

0

Johannes Graham wrote:

I think I had the same issue when trying to upgrade to 3.1 - I subsequently moved back to TC 3.0.1, but am hoping to have another go at 3.1.1. Can you share the fix for the problem?

Thanks.

http://jetbrains.net/tracker/issue/TW-4985

--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.