• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • xvfb-plugin
    • None

      Hi I am using the currently released version of Xvfb 1.0.12. When I try to activate it on the project configuration, I get java.lang.NoClassDefFoundError: Could not initialize class org.jenkinsci.plugins.xvfb.XvfbBuildWrapper

      This was working before, I had builds working till July 6, I think I did a Jenkins upgrade after that.

      So I had uninstalled the Xvfb plugin, restarted, deleted old configuration, restarted, installed the current version of Xvfb, restarted and I still get the exception.

      The following is the stack trace

      javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.jenkinsci.plugins.xvfb.XvfbBuildWrapper
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      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:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
      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.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:85)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at org.jenkinsci.plugins.reverse_proxy_auth.ReverseProxySecurityRealm$1.doFilter(ReverseProxySecurityRealm.java:92)
      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.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
      at org.eclipse.jetty.ajp.Ajp13Connection.access$2900(Ajp13Connection.java:45)
      at org.eclipse.jetty.ajp.Ajp13Connection$RequestHandler.headerComplete(Ajp13Connection.java:237)
      at org.eclipse.jetty.ajp.Ajp13Parser.parseNext(Ajp13Parser.java:505)
      at org.eclipse.jetty.ajp.Ajp13Parser.parseAvailable(Ajp13Parser.java:158)
      at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
      at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jenkinsci.plugins.xvfb.XvfbBuildWrapper
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:447)
      at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:690)
      at org.kohsuke.stapler.RequestImpl.access$100(RequestImpl.java:81)
      at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:587)
      at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:400)
      at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:396)
      at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper$XvfbBuildWrapperDescriptor.newInstance(XvfbBuildWrapper.java:128)
      at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper$XvfbBuildWrapperDescriptor.newInstance(XvfbBuildWrapper.java:85)
      at hudson.util.DescribableList.rebuild(DescribableList.java:173)
      at hudson.model.Project.submit(Project.java:228)
      at hudson.plugins.project_inheritance.projects.InheritanceProject.submit(InheritanceProject.java:696)
      at hudson.model.Job.doConfigSubmit(Job.java:1159)
      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:773)
      at hudson.plugins.project_inheritance.projects.InheritanceProject.doConfigSubmit(InheritanceProject.java:661)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      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:728)

          [JENKINS-23800] Xvfb won't activate

          zregvart added a comment -

          Hi Archimedes, on what version of Jenkins do you get this exception, and can you attach the whole jenkins log?

          zregvart added a comment - Hi Archimedes, on what version of Jenkins do you get this exception, and can you attach the whole jenkins log?

          Jenkins 1.572

          Archimedes Trajano added a comment - Jenkins 1.572

          log file

          Archimedes Trajano added a comment - log file

          zregvart added a comment -

          I think that there is something wrong with your Jenkins installation: the ClassNotFoundException preceding the NoClassDefFoundError for com.sonyericsson.rebuild.RebuildValidator indicates that the configuration is referencing the rebuild plugin that is not installed or at least available to jenkins. Check file permissions on the plugins directory, and check the checksum of xvfb.jpi in the plugins directory, for version 1.0.12 it should be:

          $ shasum xvfb.jpi
          73541d5bc014bd65e26374533d120e7b2f23bd78 xvfb.jpi

          If you're behind a corporate proxy/antivirus it could be that it corrupts jar files, so check for that.

          I've downloaded Jenkins version 1.572 and installed Xvfb plugin without problems, so what you're experiencing is local to you.

          zregvart added a comment - I think that there is something wrong with your Jenkins installation: the ClassNotFoundException preceding the NoClassDefFoundError for com.sonyericsson.rebuild.RebuildValidator indicates that the configuration is referencing the rebuild plugin that is not installed or at least available to jenkins. Check file permissions on the plugins directory, and check the checksum of xvfb.jpi in the plugins directory, for version 1.0.12 it should be: $ shasum xvfb.jpi 73541d5bc014bd65e26374533d120e7b2f23bd78 xvfb.jpi If you're behind a corporate proxy/antivirus it could be that it corrupts jar files, so check for that. I've downloaded Jenkins version 1.572 and installed Xvfb plugin without problems, so what you're experiencing is local to you.

          Thanks for confirming that it may be a local issue. I will test it out when I get the chance tonight and close this if I am able to get it working.

          Archimedes Trajano added a comment - Thanks for confirming that it may be a local issue. I will test it out when I get the chance tonight and close this if I am able to get it working.

          Can't really figure out what is causing the RebuildValidator, so i just deleted my Jenkins installation and started over and xfvb is working now.

          Archimedes Trajano added a comment - Can't really figure out what is causing the RebuildValidator, so i just deleted my Jenkins installation and started over and xfvb is working now.

            zregvart zregvart
            trajano Archimedes Trajano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: