Unexpected Error when accessing Audit

Hello,

we have some problems with team city. For some reasons some of our configuration is destoried. For example we have to define the variable build.vcs.number.(?)

Most confusingly is the cast that we are not able to access the audit. We get the following error message:

Unexpected Error

This was not supposed to happen.     Please provide the error details to your TeamCity server maintainer.
If you maintain this TeamCity installation please     report this error to JetBrains.

Error message: bean auditLogData not found within scope
TeamCity: 8.0 (build 27402)
Operating system: Windows Server 2008 R2 (6.1, x86)
Java: 1.7.0_21-b11 (Oracle Corporation)
Servlet container: Apache Tomcat/7.0.37

Trace: java.lang.InstantiationException: bean auditLogData not found within scope
     at org.apache.jsp.admin.audit_jsp._jspService(audit_jsp.java:115)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
     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.access$001(TeamCityJSPServletImpl.java:9)
     at jetbrains.spring.web.TeamCityJSPServletImpl$1.apply(TeamCityJSPServletImpl.java:1)
     at jetbrains.buildServer.util.Util.doUnderContextClassLoader(Util.java:68)
     at jetbrains.spring.web.TeamCityJSPServletImpl.service(TeamCityJSPServletImpl.java:2)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
     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:728)
     at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:33)
     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:749)
     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
     at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
     at org.apache.jsp.tag.webext.includeExtension_tag._jspx_meth_c_005fif_005f3(includeExtension_tag.java:521)
     at org.apache.jsp.tag.webext.includeExtension_tag._jspx_meth_c_005fif_005f0(includeExtension_tag.java:184)
     at org.apache.jsp.tag.webext.includeExtension_tag.doTag(includeExtension_tag.java:148)
     at org.apache.jsp.admin.adminMain_jsp._jspx_meth_ext_005fincludeExtension_005f0(adminMain_jsp.java:245)
     at org.apache.jsp.admin.adminMain_jsp.access$5(adminMain_jsp.java:234)
     at org.apache.jsp.admin.adminMain_jsp$Helper.invoke3(adminMain_jsp.java:332)
     at org.apache.jsp.admin.adminMain_jsp$Helper.invoke(adminMain_jsp.java:363)
     at org.apache.jsp.tag.webpage_tag.doTag(webpage_tag.java:593)
     at org.apache.jsp.admin.adminMain_jsp._jspx_meth_bs_005fpage_005f0(adminMain_jsp.java:141)
     at org.apache.jsp.admin.adminMain_jsp._jspService(adminMain_jsp.java:110)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
     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.access$001(TeamCityJSPServletImpl.java:9)
     at jetbrains.spring.web.TeamCityJSPServletImpl$1.apply(TeamCityJSPServletImpl.java:1)
     at jetbrains.buildServer.util.Util.doUnderContextClassLoader(Util.java:68)
     at jetbrains.spring.web.TeamCityJSPServletImpl.service(TeamCityJSPServletImpl.java:2)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
     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:728)
     at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:33)
     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:749)
     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
     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:728)
     at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:33)
     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: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.DisableSessionIdFromUrlFilter.doFilter(DisableSessionIdFromUrlFilter.java:9)
     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:43)
     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:13)
     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:222)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
     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:1004)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)

Can you tell us a way to fix this problems?

Many thanks,
Moritz  
3 comments

ok, after fixing some configuration errors, (We are not sure why they happend and also the new working audit don't show any changes) we are able to work normal. But for some reasons all our checkout rules are gone.
If we add the svn-Repository we see the following in the change history:

repo.PNG
Why team city does not show the existing checkout rules?

Thanks,
Moritz

0

Hi Moritz,

Can you please detail how did you repear audit? The audit error looks like corrupted installation or issues with disk access.


> If we add the svn-Repository we see the following in the change history:
Could you please detail this? Do you check the files into the version control?

As to missing checkout rules:
Please restart the TeamCity server and attach teamcty-server.log so that we can check there are no errors.
Please also attach the web UI screenshot (with page URL included) which would show no checkout rules and corresponding .BuildServer\config\projects\PROJECTID\buildTypes\BUILDTYPEID.xml  file.

0

Hallo Yegor,

thanks for your  reply.

We repaired the audit after move  some files. (TeamCity reports it cann't find them)
Now it become very strange. After one restart more it seem to be  alright now. The checkout rules are also back again.


Regards and thanks,


Moritz

0

Please sign in to leave a comment.