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

Could not initialize class org.libvirt.Connect

    Details

    • Similar Issues:

      Description

      It's not possible to add a libvirt slaves host beause of the following error.

      Stacktrace:
      java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect
      at hudson.plugins.libvirt.Hypervisor.makeConnection(Hypervisor.java:86)
      at hudson.plugins.libvirt.Hypervisor.getDomains(Hypervisor.java:142)
      at hudson.plugins.libvirt.Hypervisor.retrieveVirtualMachines(Hypervisor.java:103)
      at hudson.plugins.libvirt.Hypervisor.<init>(Hypervisor.java:77)
      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:532)
      at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:424)
      at org.kohsuke.stapler.RequestImpl.access$300(RequestImpl.java:76)
      at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:631)
      at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377)
      at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:373)
      at hudson.model.Descriptor.newInstance(Descriptor.java:559)
      at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:887)
      at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:874)
      at hudson.util.DescribableList.rebuildHetero(DescribableList.java:184)
      at jenkins.model.GlobalCloudConfiguration.configure(GlobalCloudConfiguration.java:23)
      at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:2571)
      at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:2534)
      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:616)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Thread.java:636)

        Attachments

          Activity

            People

            • Assignee:
              gkr G. Kr.
              Reporter:
              lucasces Lucas Ces Santos
            • Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: