TeamCity is inaccessible!

I was trying out the Mercurial plugin and now I can no longer access TeamCity

I setup a Mercurial VCS root for a project. I entered the path to hg, the location of the repository, username & password. Test connection failed with abort: error: getaddrinfo failed. I wasn't sure what the issue was as everything looked ok, but I went ahead and created the VCS root. At this point, no TeamCity pages will load, just a blank screen. The server sends some HTML that contains the exception stack trace, but nothing is actually visible.

I am guessing the reason for the getaddrinfo failure is that I have an @ sign in the password and the password is not escaped in the URL passed to hg. Also, the password is being written to the log when hg.exe errors, which is not ideal.

Please let me know how I can resolve this since the build server is no longer available to anyone.

The only thing being written to the TeamCity server log now is the following error:

[2010-06-10 20:11:30,862]  ERROR -   jetbrains.buildServer.SERVER - Error in JSP, request dump:
Path: /overview.jsp
Method: GET
Original page URL: /

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
 at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:36)
 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:646)
 at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
 at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
 at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
 at org.apache.jsp.tag.web.ext.includeExtension_tag._jspx_meth_c_005fif_005f0(includeExtension_tag.java:111)
 at org.apache.jsp.tag.web.ext.includeExtension_tag.doTag(includeExtension_tag.java:73)
 at org.apache.jsp.tag.web.ext.includeExtensions_tag._jspx_meth_ext_005fincludeExtension_005f0(includeExtensions_tag.java:313)
 at org.apache.jsp.tag.web.ext.includeExtensions_tag._jspx_meth_c_005fforEach_005f2(includeExtensions_tag.java:282)
 at org.apache.jsp.tag.web.ext.includeExtensions_tag.doTag(includeExtensions_tag.java:125)
 at org.apache.jsp.tag.web.page_tag.doTag(page_tag.java:340)
 at org.apache.jsp.overview_jsp._jspx_meth_bs_005fpage_005f0(overview_jsp.java:173)
 at org.apache.jsp.overview_jsp._jspService(overview_jsp.java:115)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
 at jetbrains.spring.web.TeamCityJSPServletImpl.service(TeamCityJSPServletImpl.java:2)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at jetbrains.spring.web.JspController.doHandle(JspController.java:9)
 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:875)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
 at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:36)
 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:646)
 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:236)
 at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
 at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
 at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:36)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.SetThreadNameFilter.runChainWithModifiedThreadName(SetThreadNameFilter.java:8)
 at jetbrains.buildServer.web.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:26)
 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:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 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:298)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
 at java.net.URI$Parser.parse(Unknown Source)
 at java.net.URI.<init>(Unknown Source)
 at com.altep.teamcity.plugins.VcsRootInfo.<init>(VcsRootInfo.java:27)
 at com.altep.teamcity.plugins.ContinuousStatusController.doHandle(ContinuousStatusController.java:105)
 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:875)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
 ... 68 more

2 comments

Hello,

   I'd suggest you to remove custom TeamCity plugins and see if it helps.

   The exception listed shows problem in com.altep.teamcity.plugins.VcsRootInfo, and this is a code from externals plugin (ContinuousStatusController).

   Regards,
   KIR

0

Ah ha. I did not notice the exception was from my plugin. I apologize; I freaked out a little bit. Anyway, I removed the plugins and got everything back up and running again. Thank you for your help!

0

Please sign in to leave a comment.