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

"Oops!" page shows up when opening a console view

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Since last upgrade of the plugin (1.4, if I'm not wrong), when trying opening a console view of a job in progress, Jenkins "Oops!" page shows up with the following stack trace:

      java.io.NotSerializableException: org.jvnet.hudson.plugins.collapsingconsolesections.CollapsingSectionNote$DescriptorImpl
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
      	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
      	at java.util.ArrayList.writeObject(ArrayList.java:570)
      	at sun.reflect.GeneratedMethodAccessor573.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
      	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
      	at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:165)
      	at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:146)
      	at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:262)
      	at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:94)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:727)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:841)
      	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:727)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:841)
      	at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:727)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:841)
      	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:727)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:841)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:630)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:224)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      	at org.eclipse.jetty.server.Server.handle(Server.java:370)
      	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
      	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
      	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      	at java.lang.Thread.run(Thread.java:662)
      

      I temporarily reverted back to former version (1.3), which has been working fine for months.

        Attachments

          Activity

          Hide
          henriquer Henrique Rodrigues added a comment -

          This issue affects me as well. Reverting to 1.3 was the workaround used.

          Show
          henriquer Henrique Rodrigues added a comment - This issue affects me as well. Reverting to 1.3 was the workaround used.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          I don't see the issue in 1.509.4, but the class is definitely broken by changes in 1.4

          Show
          oleg_nenashev Oleg Nenashev added a comment - I don't see the issue in 1.509.4, but the class is definitely broken by changes in 1.4
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          The fix is ready: https://github.com/jenkinsci/collapsing-console-sections-plugin/pull/4
          BTW, I should implement more tests in order to avoid such issues in future

          Show
          oleg_nenashev Oleg Nenashev added a comment - The fix is ready: https://github.com/jenkinsci/collapsing-console-sections-plugin/pull/4 BTW, I should implement more tests in order to avoid such issues in future
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          I've attached a 1.4.1-SNAPSHOT build with a fix. Could someone validate the changes? Thanks in advance...

          Show
          oleg_nenashev Oleg Nenashev added a comment - I've attached a 1.4.1-SNAPSHOT build with a fix. Could someone validate the changes? Thanks in advance...
          Hide
          pedersen Björn Pedersen added a comment -

          I tested the snapshot and it seems to fix the problem here.

          Show
          pedersen Björn Pedersen added a comment - I tested the snapshot and it seems to fix the problem here.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          pom.xml
          src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotator.java
          src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotatorFactory.java
          src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionNote.java
          src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionsConfiguration.java
          src/test/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotatorTest.java
          http://jenkins-ci.org/commit/collapsing-console-sections-plugin/987e633ee65506dea1763cdc1aa07ffa8fa4bda4
          Log:
          [FIXED JENKINS-20304] - Non-serialize classes

          Data classes are serializable now.
          Resolves https://issues.jenkins-ci.org/browse/JENKINS-20304

          Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: pom.xml src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotator.java src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotatorFactory.java src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionNote.java src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionsConfiguration.java src/test/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotatorTest.java http://jenkins-ci.org/commit/collapsing-console-sections-plugin/987e633ee65506dea1763cdc1aa07ffa8fa4bda4 Log: [FIXED JENKINS-20304] - Non-serialize classes Data classes are serializable now. Resolves https://issues.jenkins-ci.org/browse/JENKINS-20304 Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          pom.xml
          src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotator.java
          src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotatorFactory.java
          src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionNote.java
          src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionsConfiguration.java
          src/test/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotatorTest.java
          http://jenkins-ci.org/commit/collapsing-console-sections-plugin/ed38d77c022208e97e42a08aef74dba263c12766
          Log:
          Merge pull request #4 from synopsys-arc-oss/master

          [FIXED JENKINS-20304] - Switched to serializable classes

          Compare: https://github.com/jenkinsci/collapsing-console-sections-plugin/compare/dec513907819...ed38d77c0222

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: pom.xml src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotator.java src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotatorFactory.java src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionNote.java src/main/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionsConfiguration.java src/test/java/org/jvnet/hudson/plugins/collapsingconsolesections/CollapsingSectionAnnotatorTest.java http://jenkins-ci.org/commit/collapsing-console-sections-plugin/ed38d77c022208e97e42a08aef74dba263c12766 Log: Merge pull request #4 from synopsys-arc-oss/master [FIXED JENKINS-20304] - Switched to serializable classes Compare: https://github.com/jenkinsci/collapsing-console-sections-plugin/compare/dec513907819...ed38d77c0222
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Thanks for testing. I'll kick-off the hot-fix version today

          Show
          oleg_nenashev Oleg Nenashev added a comment - Thanks for testing. I'll kick-off the hot-fix version today

            People

            Assignee:
            oleg_nenashev Oleg Nenashev
            Reporter:
            rdesgroppes Régis Desgroppes
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: