Errors after updating from 5.1.2 to 7.1.5
We just recently upgraded our server from TeamCity Enterprise 5.1.2 to TeamCity Enterprise 7.1.5.
Many items are working, however, there are quite a few that aren't working and almost all of them contain the following exception/stack trace. It all seems to revolve around retrieving information about the agents.
The Agents tab doesn't display anything.
Manually running a build, doesn't work.
Drilling into a build configuration doesn't work
Trying to run a custom build pops up the dialog but then throws an exception similar to below.
Any ideas short of restoring the database and the server back to 5.1.2 and trying again?
Error message: javax.el.ELException: Cannot read property: availableAgents
TeamCity: 7.1.5 (build 24400)
Operating system: Windows XP (5.1, x86)
Java: 1.6.0_31-b05 (Sun Microsystems Inc.)
Servlet container: Apache Tomcat/7.0.23Trace: javax.servlet.jsp.JspException: javax.el.ELException: Cannot read property: availableAgents at org.apache.jsp.runCustomBuildGeneral_jsp$Helper.invoke(runCustomBuildGeneral_jsp.java:1067) at org.apache.jsp.tag.web.forms.select_tag.doTag(select_tag.java:236) at org.apache.jsp.runCustomBuildGeneral_jsp._jspx_meth_forms_005fselect_005f0(runCustomBuildGeneral_jsp.java:288) at org.apache.jsp.runCustomBuildGeneral_jsp._jspService(runCustomBuildGeneral_jsp.java:159) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at jetbrains.spring.web.TeamCityJSPServletImpl.service(TeamCityJSPServletImpl.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at jetbrains.spring.web.JspController.doHandle(JspController.java:0) at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:73) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:0) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954) at org.apache.jsp.runCustomBuild_jsp._jspService(runCustomBuild_jsp.java:133) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at jetbrains.spring.web.TeamCityJSPServletImpl.service(TeamCityJSPServletImpl.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at jetbrains.spring.web.JspController.doHandle(JspController.java:0) at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:73) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:0) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:0) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at jetbrains.buildServer.web.ParametersProviderCalculationContextFilter.doFilter(ParametersProviderCalculationContextFilter.java:6) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at jetbrains.buildServer.web.DisableSessionIdFromUrlFilter.doFilter(DisableSessionIdFromUrlFilter.java:5) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at jetbrains.buildServer.web.DiagnosticFilter.doFilter(DiagnosticFilter.java:55) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:7) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: javax.el.ELException: Cannot read property: availableAgents at jetbrains.buildServer.web.jsp.TCBeanELResolver.getValue(TCBeanELResolver.java:45) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:67) at org.apache.el.parser.AstValue.getValue(AstValue.java:169) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:985) at org.apache.jsp.runCustomBuildGeneral_jsp._jspx_meth_c_005fset_005f3(runCustomBuildGeneral_jsp.java:321) at org.apache.jsp.runCustomBuildGeneral_jsp.access$1(runCustomBuildGeneral_jsp.java:310) at org.apache.jsp.runCustomBuildGeneral_jsp$Helper.invoke0(runCustomBuildGeneral_jsp.java:964) at org.apache.jsp.runCustomBuildGeneral_jsp$Helper.invoke(runCustomBuildGeneral_jsp.java:1045) ... 88 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at jetbrains.buildServer.web.jsp.TCBeanELResolver.getValue(TCBeanELResolver.java:67) ... 96 more Caused by: java.lang.RuntimeException: Unexpected parameter kind: D at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage$13.process(AgentTypeDatabaseStorage.java:10) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage$13.process(AgentTypeDatabaseStorage.java:5) at jetbrains.buildServer.serverSide.db.queries.GenericQuery.processResultSet(GenericQuery.java:445) at jetbrains.buildServer.serverSide.db.queries.GenericQuery.doExecuteQuery(GenericQuery.java:432) at jetbrains.buildServer.serverSide.db.queries.GenericQuery.access$600(GenericQuery.java:28) at jetbrains.buildServer.serverSide.db.queries.GenericQuery$9.action(GenericQuery.java:408) at jetbrains.buildServer.serverSide.db.queries.GenericQuery.underPreparedStatement(GenericQuery.java:485) at jetbrains.buildServer.serverSide.db.queries.GenericQuery.doExecuteQuery(GenericQuery.java:405) at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:92) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage.loadAgentTypeData(AgentTypeDatabaseStorage.java:83) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage.access$700(AgentTypeDatabaseStorage.java:94) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage$7.run(AgentTypeDatabaseStorage.java:1) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage$7.run(AgentTypeDatabaseStorage.java) at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:857) at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:314) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage.loadAgentTypeData(AgentTypeDatabaseStorage.java:23) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage.access$500(AgentTypeDatabaseStorage.java:188) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage$5.apply(AgentTypeDatabaseStorage.java:1) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage$5.apply(AgentTypeDatabaseStorage.java) at jetbrains.buildServer.util.SynchroDictionary.get(SynchroDictionary.java:33) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage.getAgentTypeData(AgentTypeDatabaseStorage.java:32) at jetbrains.buildServer.serverSide.agentTypes.AgentTypeDatabaseStorage.getAgentType(AgentTypeDatabaseStorage.java:40) at jetbrains.buildServer.serverSide.AgentTypesCompatibilityCalculator.explainCompatibilityForAgentType(AgentTypesCompatibilityCalculator.java:12) at jetbrains.buildServer.serverSide.AgentTypesCompatibilityCalculator.explainCompatibility(AgentTypesCompatibilityCalculator.java:3) at jetbrains.buildServer.serverSide.CachingCompatibilityCalculator.getOrCalculate(CachingCompatibilityCalculator.java:0) at jetbrains.buildServer.serverSide.CachingCompatibilityCalculator.checkBuildTypeCompatibilities(CachingCompatibilityCalculator.java:34) at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.getCompatibleAgents(BuildTypeImpl.java:60) at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.getCanRunAndCompatibleAgents(BuildTypeImpl.java:305) at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildType.access$201(SecuredBuildType.java:148) at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildType$3.run(SecuredBuildType.java:1) at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildType$3.run(SecuredBuildType.java) at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:24) at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAsSystem(SecurityContextImpl.java:19) at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildType.getCanRunAndCompatibleAgents(SecuredBuildType.java:179) at jetbrains.buildServer.controllers.RunBuildBean.getAvailableAgents(RunBuildBean.java:99) ... 101 more
Please sign in to leave a comment.
Dave,
Looks like some installation files corruption.
I'd try to:
- stop the TeamCity server, delete content of <TeamCity home>\work and <TeamCity home>\temp , start the server again to check for the error
- if that does not help, repeat the above steps, but also reinstall TeamCity server (see upgrade instructions). Make sure to delete the current content of at least <TeamCity home>\webapps