Unexpected Error for custom Report tab

I am getting an error when viewing a zipped code coverage report of 'Unexpected error'. If I don't use a zip file and and output to a path the report works fine. Also if I go directly to the zipped artifact and browse the html files this also works.

This seems like it may be a some permission error possibly? Any other ideas of what I am doing wrong?

I am using Team City 5.0.2
UnexpectedError.png

3 comments
Comment actions Permalink

Hello David,

  Could you please provide:

  - a screenshot for you artifacts tab of a build with report
  - a screenshot of your report tab configuration screen

  Please also take a look (or attach) at TeamCity server console or TeamCity/log/teamcity-server.log file.
  Most likely, TeamCity cannot find/open the artifact zip file.

  Regards,
  KIR

0
Comment actions Permalink

Hi KIR,

Ahhhh I think I have just seen the problem in the log file, says (Access is denied)

Ok dung a little deeper and it looks like the zipped artifacts were not zipped instead a folder was created. I have tried zip and rar with no success.

Eg
Metering/bin/Release => converage.zip
Metering/bin/Release => converage.jar

Thanks

David

Requested Report Tab
ReportTab.png
Artifact

NOTE: I did have coverage.zip previously
Artifacts.png


Log


[2010-03-15 17:01:40,128]   WARN - erSide.artifacts.ArtifactsInfo - java.io.FileNotFoundException: D:\BuildServer\system\artifacts\Smart\Metering Code Coverage & Unit Testing\11534\coverage.zip (Access is denied)
java.io.FileNotFoundException: D:\BuildServer\system\artifacts\Smart\Metering Code Coverage & Unit Testing\11534\coverage.zip (Access is denied)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.<init>(FileInputStream.java:106)
 at jetbrains.buildServer.serverSide.artifacts.ArtifactsInfo.createInputStream(ArtifactsInfo.java:147)
 at jetbrains.buildServer.controllers.artifacts.RepositoryArchiveController.getArchivedFileStream(RepositoryArchiveController.java:9)
 at jetbrains.buildServer.controllers.artifacts.RepositoryArchiveController.doHandle(RepositoryArchiveController.java:57)
 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:79)
 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:14)
 at jetbrains.buildServer.web.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:12)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:5)
 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: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:293)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
 at java.lang.Thread.run(Thread.java:595)
[2010-03-15 17:01:40,159]  ERROR -   jetbrains.buildServer.SERVER - Error in JSP, request dump:
Path: /runtimeError.jsp
Method: GET


java.lang.NullPointerException: in is null
 at java.util.zip.ZipInputStream.<init>(ZipInputStream.java:55)
 at jetbrains.buildServer.controllers.artifacts.RepositoryArchiveController.getArchivedFileStream(RepositoryArchiveController.java:9)
 at jetbrains.buildServer.controllers.artifacts.RepositoryArchiveController.doHandle(RepositoryArchiveController.java:57)
 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:79)
 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:14)
 at jetbrains.buildServer.web.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:12)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:5)
 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: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:293)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
 at java.lang.Thread.run(Thread.java:595)

Message was edited by: David Wong

0
Comment actions Permalink

Hello David,

  TeamCity can zip artifacts on the fly only in the upcoming TeamCity 5.1 version, which is available in EAP.
  Till than, you have to prepare zip file manually.

  Sorry

  Regards,
  KIR

0

Please sign in to leave a comment.