Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4039

Downloading ZIP gives response 500 in browser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      I get the following trace when downloading files from the workspace as zip.
      Sometimes it seemed to work, sometimes not. Maybe the error is only for larger
      zip files.

      It worked in the older Hudson ver. 1.314, so I reverted to that version.

      [webapp 2009/07/15 12:13:33] - Error while serving
      http://buildserver:8080/job/Server_Setup/ws/setups/product4.0.001//*zip*/serverSetup.zip
      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 org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:176)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:92)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:53)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:179)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Unknown Source)
      Caused by: hudson.util.IOException2: remote file operation failed
      at hudson.FilePath.act(FilePath.java:647)
      at hudson.FilePath.act(FilePath.java:635)
      at hudson.FilePath.archive(FilePath.java:313)
      at hudson.FilePath.archive(FilePath.java:333)
      at hudson.FilePath.createZipArchive(FilePath.java:287)
      at hudson.model.DirectoryBrowserSupport.serveFile(DirectoryBrowserSupport.java:202)
      at hudson.model.AbstractProject.doWs(AbstractProject.java:1247)
      ... 35 more
      Caused by: java.io.IOException: Unable to serialize
      hudson.FilePath$FileCallableWrapper@1ba3afe
      at hudson.remoting.UserRequest.serialize(UserRequest.java:145)
      at hudson.remoting.UserRequest.<init>(UserRequest.java:61)
      at hudson.remoting.Channel.call(Channel.java:513)
      at hudson.FilePath.act(FilePath.java:642)
      ... 41 more
      Caused by: java.io.NotSerializableException: hudson.FilePath$ZipArchiverFactory
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
      at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
      at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
      at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
      at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.writeObject(Unknown Source)
      at hudson.remoting.UserRequest._serialize(UserRequest.java:134)
      at hudson.remoting.UserRequest.serialize(UserRequest.java:143)
      ... 44 more

      [Winstone 2009/07/15 12:13:33] - Untrapped Error in Servlet
      hudson.util.IOException2: remote file operation failed
      at hudson.FilePath.act(FilePath.java:647)
      at hudson.FilePath.act(FilePath.java:635)
      at hudson.FilePath.archive(FilePath.java:313)
      at hudson.FilePath.archive(FilePath.java:333)
      at hudson.FilePath.createZipArchive(FilePath.java:287)
      at hudson.model.DirectoryBrowserSupport.serveFile(DirectoryBrowserSupport.java:202)
      at hudson.model.AbstractProject.doWs(AbstractProject.java:1247)
      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 org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:176)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:92)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:53)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:179)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.io.IOException: Unable to serialize
      hudson.FilePath$FileCallableWrapper@1ba3afe
      at hudson.remoting.UserRequest.serialize(UserRequest.java:145)
      at hudson.remoting.UserRequest.<init>(UserRequest.java:61)
      at hudson.remoting.Channel.call(Channel.java:513)
      at hudson.FilePath.act(FilePath.java:642)
      ... 41 more
      Caused by: java.io.NotSerializableException: hudson.FilePath$ZipArchiverFactory
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
      at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
      at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
      at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
      at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.writeObject(Unknown Source)
      at hudson.remoting.UserRequest._serialize(UserRequest.java:134)
      at hudson.remoting.UserRequest.serialize(UserRequest.java:143)
      ... 44 more

      javax.servlet.ServletException: remote file operation failed
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:498)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:179)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Unknown Source)

            Unassigned Unassigned
            patrickpatrick patrickpatrick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: