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

          lucasces Lucas Ces Santos created issue -
          lucasces Lucas Ces Santos made changes -
          Field Original Value New Value
          Summary Could not initialize class org.libvirt.Connectl Could not initialize class org.libvirt.Connect
          Hide
          luca_jenkins Luca Ingianni added a comment -

          Apparently fixed in 1.451 - after an update all was well.

          Show
          luca_jenkins Luca Ingianni added a comment - Apparently fixed in 1.451 - after an update all was well.
          tastybug Philipp Bartsch made changes -
          Assignee Philipp Bartsch [ tastybug ]
          tastybug Philipp Bartsch made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          tastybug Philipp Bartsch added a comment -

          Fixed in 1.7

          Show
          tastybug Philipp Bartsch added a comment - Fixed in 1.7
          tastybug Philipp Bartsch made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          rkorthaus René Korthaus added a comment -

          I get a similar error after upgrading Jenkins to latest 1.586, I think it is related to https://issues.jenkins-ci.org/browse/JENKINS-24521. Downgrading to 1.585 fixes the issue.

          Here's the stack:

          javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/lib/jenkins/plugins/libvirt-slave/WEB-INF/lib/libvirt-slave.jar!/hudson/plugins/libvirt/VirtualMachineSlave/configure-entries.jelly:9:124: Could not initialize class org.libvirt.Connect
          at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:103)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875)
          at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:391)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875)
          at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:211)
          at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
          at org.kohsuke.stapler.Stapler.service(Stapler.java:237)
          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: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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:86)
          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:1482)
          at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
          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.headerComplete(AbstractHttpConnection.java:949)
          at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
          at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
          at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
          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.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/var/lib/jenkins/plugins/libvirt-slave/WEB-INF/lib/libvirt-slave.jar!/hudson/plugins/libvirt/VirtualMachineSlave/configure-entries.jelly:9:124: Could not initialize class org.libvirt.Connect
          at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:745)
          at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:289)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
          at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
          at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
          at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
          at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)
          at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)
          at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
          at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
          at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
          at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
          at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
          at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
          at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
          at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
          at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
          at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
          at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
          at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
          at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)
          at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
          at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
          at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:95)
          ... 67 more
          Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect
          at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.(LibVirtConnectImpl.java:23)
          at hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:97)
          at hudson.plugins.libvirt.Hypervisor.getOrCreateConnection(Hypervisor.java:137)
          at hudson.plugins.libvirt.Hypervisor.getDomains(Hypervisor.java:214)
          at hudson.plugins.libvirt.Hypervisor.getVirtualMachines(Hypervisor.java:262)
          at hudson.plugins.libvirt.VirtualMachineSlave$DescriptorImpl.getDefinedVirtualMachines(VirtualMachineSlave.java:167)
          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.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
          at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
          at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
          at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
          at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
          at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
          at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
          at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)
          at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:94)
          at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:89)
          at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
          ... 122 more

          Show
          rkorthaus René Korthaus added a comment - I get a similar error after upgrading Jenkins to latest 1.586, I think it is related to https://issues.jenkins-ci.org/browse/JENKINS-24521 . Downgrading to 1.585 fixes the issue. Here's the stack: javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar: file:/var/lib/jenkins/plugins/libvirt-slave/WEB-INF/lib/libvirt-slave.jar!/hudson/plugins/libvirt/VirtualMachineSlave/configure-entries.jelly:9:124: Could not initialize class org.libvirt.Connect at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:103) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:391) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:211) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648) at org.kohsuke.stapler.Stapler.service(Stapler.java:237) 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: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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:86) 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:1482) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) 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.headerComplete(AbstractHttpConnection.java:949) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) 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.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.commons.jelly.JellyTagException: jar: file:/var/lib/jenkins/plugins/libvirt-slave/WEB-INF/lib/libvirt-slave.jar!/hudson/plugins/libvirt/VirtualMachineSlave/configure-entries.jelly:9:124: Could not initialize class org.libvirt.Connect at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:745) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:289) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95) at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53) at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:95) ... 67 more Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.(LibVirtConnectImpl.java:23) at hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:97) at hudson.plugins.libvirt.Hypervisor.getOrCreateConnection(Hypervisor.java:137) at hudson.plugins.libvirt.Hypervisor.getDomains(Hypervisor.java:214) at hudson.plugins.libvirt.Hypervisor.getVirtualMachines(Hypervisor.java:262) at hudson.plugins.libvirt.VirtualMachineSlave$DescriptorImpl.getDefinedVirtualMachines(VirtualMachineSlave.java:167) 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.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258) at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:94) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:89) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) ... 122 more
          rkorthaus René Korthaus made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          gkr G. Kr. added a comment -

          same issue with jenkins 1.587 / libvirt-slave-plugin 1.8.4 on Debian Wheezy 7.7
          $ java -version
          java version "1.7.0_65"
          OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-5~deb7u1)
          OpenJDK Server VM (build 24.65-b04, mixed mode)

          javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
          at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
          at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
          at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
          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: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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:86)
          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:1482)
          at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
          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.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect
          at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.<init>(LibVirtConnectImpl.java:23)
          at hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:97)
          at hudson.plugins.libvirt.Hypervisor$DescriptorImpl.doTestConnection(Hypervisor.java:455)
          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:121)
          at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
          ... 63 more

          Show
          gkr G. Kr. added a comment - same issue with jenkins 1.587 / libvirt-slave-plugin 1.8.4 on Debian Wheezy 7.7 $ java -version java version "1.7.0_65" OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-5~deb7u1) OpenJDK Server VM (build 24.65-b04, mixed mode) javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) 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: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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:86) 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:1482) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) 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.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.<init>(LibVirtConnectImpl.java:23) at hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:97) at hudson.plugins.libvirt.Hypervisor$DescriptorImpl.doTestConnection(Hypervisor.java:455) 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:121) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ... 63 more
          Hide
          gkr G. Kr. added a comment -

          the dependency org.libvirt only works with JNA [3.4.1,4.0.0]
          http://libvirt.org/java.html

          Show
          gkr G. Kr. added a comment - the dependency org.libvirt only works with JNA [3.4.1,4.0.0] http://libvirt.org/java.html
          Hide
          danielbeck Daniel Beck added a comment -

          The plugin should bundle its own JNA and usePluginFirstClassLoader. Core needed to use JNA 4 due to numerous bugs in 3.x.

          Show
          danielbeck Daniel Beck added a comment - The plugin should bundle its own JNA and usePluginFirstClassLoader. Core needed to use JNA 4 due to numerous bugs in 3.x.
          Hide
          jekeller Jacob Keller added a comment -

          I also have this problem. Is the only current work-around to downgrade Core?

          Show
          jekeller Jacob Keller added a comment - I also have this problem. Is the only current work-around to downgrade Core?
          Hide
          gkr G. Kr. added a comment -

          AFAIK downgrade is the only solution atm

          is anyone working on this issue?

          Show
          gkr G. Kr. added a comment - AFAIK downgrade is the only solution atm is anyone working on this issue?
          Hide
          jekeller Jacob Keller added a comment -

          I was able to just convert the slaves to SSH which works ok, but I lose the added functionality of the libvirt on/off changes.

          What generally needs to be done to fix this? I don't mind having a go at the libvirt plugin, but I don't have a whole lot of experience at what exactly is wrong.

          Show
          jekeller Jacob Keller added a comment - I was able to just convert the slaves to SSH which works ok, but I lose the added functionality of the libvirt on/off changes. What generally needs to be done to fix this? I don't mind having a go at the libvirt plugin, but I don't have a whole lot of experience at what exactly is wrong.
          Hide
          sox Florent Poinsaut added a comment -

          Hello,

          Does this issue have another workaround that downgrade Jenkins or use SSH ?

          If not, I could fork this plugin but I lack of information to upgrade it.
          Can someone help me to realize this work ?

          Thanks in advance.

          Regards,

          Show
          sox Florent Poinsaut added a comment - Hello, Does this issue have another workaround that downgrade Jenkins or use SSH ? If not, I could fork this plugin but I lack of information to upgrade it. Can someone help me to realize this work ? Thanks in advance. Regards,
          Hide
          gkr G. Kr. added a comment -

          i tried to just bundle the old JNA as indicated by Daniel Beck. Alas I couldn't get it to work. it was still loading the new JNA or the plugin was failing to load completely.

          i think the "best" solution would be to get the plugin itself use a more recent version of libvirt-java and get it to work with the jna used in jenkins, although not sure how much effort this is.

          maybe tastybug could answer this

          Show
          gkr G. Kr. added a comment - i tried to just bundle the old JNA as indicated by Daniel Beck. Alas I couldn't get it to work. it was still loading the new JNA or the plugin was failing to load completely. i think the "best" solution would be to get the plugin itself use a more recent version of libvirt-java and get it to work with the jna used in jenkins, although not sure how much effort this is. maybe tastybug could answer this
          Hide
          danielbeck Daniel Beck added a comment -

          G. Kr. Do you have the sources for your change somewhere?

          Show
          danielbeck Daniel Beck added a comment - G. Kr. Do you have the sources for your change somewhere?
          Hide
          gkr G. Kr. added a comment - - edited

          attached jenkins-12532-test.patch how i tried to package old jna for libvirt plugin

          this does not work!

          following errors occur:
          WARNING: Failed to scout hudson.plugins.libvirt.VirtualMachineManagement
          java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of hudson/PluginFirstClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/jenkinsci/maven/plugins/hpi/RunMojo$2) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type LoggerFactory; used in the signature
          at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:299)
          at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
          at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
          at hudson.plugins.libvirt.VirtualMachineManagement.<clinit>(VirtualMachineManagement.java:26)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:274)
          at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:677)
          at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:337)

          Jan 8, 2015 10:48:53 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
          WARNING: Failed to instantiate Key[type=hudson.plugins.libvirt.VirtualMachineManagement, annotation=[none]]; skipping this component
          java.lang.NoClassDefFoundError: Could not initialize class hudson.plugins.libvirt.VirtualMachineManagement

          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:534)
          at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86)
          at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
          at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)
          at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
          at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
          at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
          at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
          at com.google.inject.Scopes$1$1.get(Scopes.java:65)
          at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:426)

          at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
          at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)
          at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051)
          at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
          at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:388)
          at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:379)
          at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:343)
          at hudson.ExtensionList.load(ExtensionList.java:300)
          at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253)
          at hudson.ExtensionList.iterator(ExtensionList.java:143)
          at hudson.ExtensionList.get(ExtensionList.java:134)
          at com.cloudbees.plugins.credentials.SystemCredentialsProvider.getInstance(SystemCredentialsProvider.java:445)
          at com.cloudbees.plugins.credentials.SystemCredentialsProvider$ProviderImpl.getCredentials(SystemCredentialsProvider.java:531)
          at com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:462)
          at com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:416)
          at hudson.plugins.libvirt.Hypervisor.lookupSystemCredentials(Hypervisor.java:381)
          at hudson.plugins.libvirt.Hypervisor.createBuilder(Hypervisor.java:117)
          at hudson.plugins.libvirt.Hypervisor.getOrCreateConnection(Hypervisor.java:131)
          at hudson.plugins.libvirt.Hypervisor.getDomains(Hypervisor.java:214)
          at hudson.plugins.libvirt.Hypervisor.getVirtualMachines(Hypervisor.java:262)
          at hudson.plugins.libvirt.VirtualMachineLauncher.lookupVirtualMachineHandle(VirtualMachineLauncher.java:77)
          at hudson.plugins.libvirt.VirtualMachineLauncher.launch(VirtualMachineLauncher.java:125)
          at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:240)
          at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
          at java.util.concurrent.FutureTask.run(FutureTask.java:166)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:701)
          Jan 8, 2015 10:48:53 AM hudson.plugins.libvirt.Hypervisor getOrCreateConnection
          INFO: Trying to establish a connection to hypervisor URI: qemu+ssh://gkr@192.168.122.1:22/system?no_tty=1 as gkr/******
          : Connection reset by peer recv data: Permission denied (publickey,password).
          Jan 8, 2015 10:48:53 AM hudson.plugins.libvirt.Hypervisor getOrCreateConnection
          SEVERE: Failed to establish connection to hypervisor URI: qemu+ssh://gkr@192.168.122.1:22/system?no_tty=1 as gkr/******
          : Connection reset by peer.VirtException: org.libvirt.LibvirtException: Cannot recv data: Permission denied (publickey,password).
          at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.<init>(LibVirtConnectImpl.java:25)
          at hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:97)
          at hudson.plugins.libvirt.Hypervisor.getOrCreateConnection(Hypervisor.java:137)
          at hudson.plugins.libvirt.Hypervisor.getDomains(Hypervisor.java:214)
          at hudson.plugins.libvirt.Hypervisor.getVirtualMachines(Hypervisor.java:262)
          at hudson.plugins.libvirt.VirtualMachineLauncher.lookupVirtualMachineHandle(VirtualMachineLauncher.java:77)
          at hudson.plugins.libvirt.VirtualMachineLauncher.launch(VirtualMachineLauncher.java:125)
          at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:240)
          at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
          at java.util.concurrent.FutureTask.run(FutureTask.java:166)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:701)
          : Connection reset by peervirtException: Cannot recv data: Permission denied (publickey,password).
          at org.libvirt.ErrorHandler.processError(Unknown Source)
          at org.libvirt.Connect.processError(Unknown Source)
          at org.libvirt.Connect.<init>(Unknown Source)
          at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.<init>(LibVirtConnectImpl.java:23)
          ... 13 more

          Show
          gkr G. Kr. added a comment - - edited attached jenkins-12532-test.patch how i tried to package old jna for libvirt plugin this does not work! following errors occur: WARNING: Failed to scout hudson.plugins.libvirt.VirtualMachineManagement java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of hudson/PluginFirstClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/jenkinsci/maven/plugins/hpi/RunMojo$2) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type LoggerFactory; used in the signature at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:299) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) at hudson.plugins.libvirt.VirtualMachineManagement.<clinit>(VirtualMachineManagement.java:26) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:274) at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:677) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:337) Jan 8, 2015 10:48:53 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error WARNING: Failed to instantiate Key[type=hudson.plugins.libvirt.VirtualMachineManagement, annotation= [none] ]; skipping this component java.lang.NoClassDefFoundError: Could not initialize class hudson.plugins.libvirt.VirtualMachineManagement 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:534) at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:65) at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:426) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051) at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001) at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:388) at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:379) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:343) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.iterator(ExtensionList.java:143) at hudson.ExtensionList.get(ExtensionList.java:134) at com.cloudbees.plugins.credentials.SystemCredentialsProvider.getInstance(SystemCredentialsProvider.java:445) at com.cloudbees.plugins.credentials.SystemCredentialsProvider$ProviderImpl.getCredentials(SystemCredentialsProvider.java:531) at com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:462) at com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:416) at hudson.plugins.libvirt.Hypervisor.lookupSystemCredentials(Hypervisor.java:381) at hudson.plugins.libvirt.Hypervisor.createBuilder(Hypervisor.java:117) at hudson.plugins.libvirt.Hypervisor.getOrCreateConnection(Hypervisor.java:131) at hudson.plugins.libvirt.Hypervisor.getDomains(Hypervisor.java:214) at hudson.plugins.libvirt.Hypervisor.getVirtualMachines(Hypervisor.java:262) at hudson.plugins.libvirt.VirtualMachineLauncher.lookupVirtualMachineHandle(VirtualMachineLauncher.java:77) at hudson.plugins.libvirt.VirtualMachineLauncher.launch(VirtualMachineLauncher.java:125) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:240) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Jan 8, 2015 10:48:53 AM hudson.plugins.libvirt.Hypervisor getOrCreateConnection INFO: Trying to establish a connection to hypervisor URI: qemu+ssh://gkr@192.168.122.1:22/system?no_tty=1 as gkr/****** : Connection reset by peer recv data: Permission denied (publickey,password). Jan 8, 2015 10:48:53 AM hudson.plugins.libvirt.Hypervisor getOrCreateConnection SEVERE: Failed to establish connection to hypervisor URI: qemu+ssh://gkr@192.168.122.1:22/system?no_tty=1 as gkr/****** : Connection reset by peer.VirtException: org.libvirt.LibvirtException: Cannot recv data: Permission denied (publickey,password). at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.<init>(LibVirtConnectImpl.java:25) at hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:97) at hudson.plugins.libvirt.Hypervisor.getOrCreateConnection(Hypervisor.java:137) at hudson.plugins.libvirt.Hypervisor.getDomains(Hypervisor.java:214) at hudson.plugins.libvirt.Hypervisor.getVirtualMachines(Hypervisor.java:262) at hudson.plugins.libvirt.VirtualMachineLauncher.lookupVirtualMachineHandle(VirtualMachineLauncher.java:77) at hudson.plugins.libvirt.VirtualMachineLauncher.launch(VirtualMachineLauncher.java:125) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:240) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) : Connection reset by peervirtException: Cannot recv data: Permission denied (publickey,password). at org.libvirt.ErrorHandler.processError(Unknown Source) at org.libvirt.Connect.processError(Unknown Source) at org.libvirt.Connect.<init>(Unknown Source) at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.<init>(LibVirtConnectImpl.java:23) ... 13 more
          gkr G. Kr. made changes -
          Attachment jenkins-12532-test.patch [ 28335 ]
          Hide
          danielbeck Daniel Beck added a comment -

          Just rip out slf4j from the class mentioned, it's unused anyway. Plus, you have two plugin elements for maven-hpi-plugin, accompanied by a huge warning upon hpi:run – merge these.

          Then at least Jenkins loads without problems, and the UI works. Since I don't use libvirt I have no way to proceed further.

          Show
          danielbeck Daniel Beck added a comment - Just rip out slf4j from the class mentioned, it's unused anyway. Plus, you have two plugin elements for maven-hpi-plugin, accompanied by a huge warning upon hpi:run – merge these. Then at least Jenkins loads without problems, and the UI works. Since I don't use libvirt I have no way to proceed further.
          Hide
          gkr G. Kr. added a comment -

          Hi Daniel, your help is very much appreciated, I am not used to maven, not to speak of development for jenkins.
          your suggestion worked.

          Show
          gkr G. Kr. added a comment - Hi Daniel, your help is very much appreciated, I am not used to maven, not to speak of development for jenkins. your suggestion worked.
          Hide
          danielbeck Daniel Beck added a comment -

          So... does the plugin itself work now, i.e. does that change fix this reported issue?

          If so, time to file a pull request on GitHub

          Show
          danielbeck Daniel Beck added a comment - So... does the plugin itself work now, i.e. does that change fix this reported issue? If so, time to file a pull request on GitHub
          Hide
          gkr G. Kr. added a comment -

          pull request done, i hope it will get merged

          Show
          gkr G. Kr. added a comment - pull request done, i hope it will get merged
          Hide
          sox Florent Poinsaut added a comment -

          Nice job !

          I take a look to this page : https://wiki.jenkins-ci.org/display/JENKINS/Pull+Request+to+Repositories

          However, if your pull request doesn't seem to be getting any attention after a week or so, then unfortunately we don't have existing developers reviewing incoming pull requests. Perhaps the repository is not actively maintained any more. In this case, we don't want your pull request to be in limbo forever, and hence we'd like you to escalate as follows:

          • If you are comfortable with the change and you feel it should be merged in the absence of a review, please drop us an e-mail on the dev list and ask for commit access (please provide your GitHub account name and the repository name you would like to contribute to). See the later section for more information about what you should be careful about. As explained in Governance Document#Howtojointheproject, we give out commit access to anyone who asks for it. Once the committership is granted, please merge the change, and consider making a new release.
          • If you feel that the code really needs to be reviewed by someone more knowledgeable, then similarly drop us an e-mail on the dev list and tell us why/what should be reviewed. And

          If your job is not merged next week, you can ask it by mail.

          Regards,

          Show
          sox Florent Poinsaut added a comment - Nice job ! I take a look to this page : https://wiki.jenkins-ci.org/display/JENKINS/Pull+Request+to+Repositories However, if your pull request doesn't seem to be getting any attention after a week or so, then unfortunately we don't have existing developers reviewing incoming pull requests. Perhaps the repository is not actively maintained any more. In this case, we don't want your pull request to be in limbo forever, and hence we'd like you to escalate as follows: If you are comfortable with the change and you feel it should be merged in the absence of a review, please drop us an e-mail on the dev list and ask for commit access (please provide your GitHub account name and the repository name you would like to contribute to). See the later section for more information about what you should be careful about. As explained in Governance Document#Howtojointheproject, we give out commit access to anyone who asks for it. Once the committership is granted, please merge the change, and consider making a new release. If you feel that the code really needs to be reviewed by someone more knowledgeable, then similarly drop us an e-mail on the dev list and tell us why/what should be reviewed. And If your job is not merged next week, you can ask it by mail. Regards,
          Hide
          sox Florent Poinsaut added a comment -

          Hello,

          Could you tell me if you did this request ?
          Otherwise I can do it for you with pleasure.

          Thanks a lot.

          Regards,

          Show
          sox Florent Poinsaut added a comment - Hello, Could you tell me if you did this request ? Otherwise I can do it for you with pleasure. Thanks a lot. Regards,
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: G.Kr
          Path:
          pom.xml
          src/main/java/hudson/plugins/libvirt/VirtualMachineManagement.java
          http://jenkins-ci.org/commit/libvirt-slave-plugin/fb3cbbec03f8bc0ec323a3cd4121128699e54085
          Log:
          package old JNA version 3.3.0 with the plugin

          fixes #JENKINS-12523
          https://issues.jenkins-ci.org/browse/JENKINS-12523

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: G.Kr Path: pom.xml src/main/java/hudson/plugins/libvirt/VirtualMachineManagement.java http://jenkins-ci.org/commit/libvirt-slave-plugin/fb3cbbec03f8bc0ec323a3cd4121128699e54085 Log: package old JNA version 3.3.0 with the plugin fixes # JENKINS-12523 https://issues.jenkins-ci.org/browse/JENKINS-12523
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: g-k-r
          Path:
          pom.xml
          src/main/java/hudson/plugins/libvirt/VirtualMachineManagement.java
          http://jenkins-ci.org/commit/libvirt-slave-plugin/f01db463cea91000c693eb169b46fb722ac6dcfe
          Log:
          Merge pull request #10 from g-k-r/JENKINS-12523

          package old JNA version 3.3.0 with the plugin

          Compare: https://github.com/jenkinsci/libvirt-slave-plugin/compare/06470747e503...f01db463cea9

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: g-k-r Path: pom.xml src/main/java/hudson/plugins/libvirt/VirtualMachineManagement.java http://jenkins-ci.org/commit/libvirt-slave-plugin/f01db463cea91000c693eb169b46fb722ac6dcfe Log: Merge pull request #10 from g-k-r/ JENKINS-12523 package old JNA version 3.3.0 with the plugin Compare: https://github.com/jenkinsci/libvirt-slave-plugin/compare/06470747e503...f01db463cea9
          Hide
          mcrowe Mike Crowe added a comment -

          It looks like this problem has been fixed in Git but there's not been a release that contains the fix since then. Is there any chance of a release of the plugin?

          Thanks.

          Show
          mcrowe Mike Crowe added a comment - It looks like this problem has been fixed in Git but there's not been a release that contains the fix since then. Is there any chance of a release of the plugin? Thanks.
          Hide
          gkr G. Kr. added a comment -

          i wanted to integrate one more PR, will try to do the snapshot release tomorrow. would you be able to test ?

          Show
          gkr G. Kr. added a comment - i wanted to integrate one more PR, will try to do the snapshot release tomorrow. would you be able to test ?
          Hide
          mcrowe Mike Crowe added a comment -

          > would you be able to test ?

          Yes I can.

          Show
          mcrowe Mike Crowe added a comment - > would you be able to test ? Yes I can.
          Hide
          ssbarnea Sorin Sbarnea added a comment -

          Am I wrong or the libvirt plugin is kinda useless due to this bug. Still it seems to be listed in the production repository.

          Show
          ssbarnea Sorin Sbarnea added a comment - Am I wrong or the libvirt plugin is kinda useless due to this bug. Still it seems to be listed in the production repository.
          Hide
          gkr G. Kr. added a comment -

          fixed with release 1.8.5

          Show
          gkr G. Kr. added a comment - fixed with release 1.8.5
          gkr G. Kr. made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Assignee Philipp Bartsch [ tastybug ] G. Kr. [ gkr ]
          Resolution Fixed [ 1 ]
          Hide
          mcrowe Mike Crowe added a comment -

          1.8.5 works for me. Thanks for all your your hard work!

          Show
          mcrowe Mike Crowe added a comment - 1.8.5 works for me. Thanks for all your your hard work!
          Hide
          karlkatzke Karl Katzke added a comment - - edited

          I get the same issue as G. Kr. with Plugin 1.8.5, Jenkins 1.6.20, and OpenJDK 1.7

          javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
          	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
          	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
          	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:132)
          	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:129)
          	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
          	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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
          	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:171)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
          	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:1482)
          	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
          	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.runWorker(ThreadPoolExecutor.java:1145)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          	at java.lang.Thread.run(Thread.java:745)
          Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect
          	at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.<init>(LibVirtConnectImpl.java:23)
          	at hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:97)
          	at hudson.plugins.libvirt.Hypervisor$DescriptorImpl.doTestConnection(Hypervisor.java:455)
          	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:121)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
          	... 65 more
          
          
          Show
          karlkatzke Karl Katzke added a comment - - edited I get the same issue as G. Kr. with Plugin 1.8.5, Jenkins 1.6.20, and OpenJDK 1.7 javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) 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:132) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:129) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49) 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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) 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:171) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) 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:1482) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) 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.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.libvirt.Connect at hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.<init>(LibVirtConnectImpl.java:23) at hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:97) at hudson.plugins.libvirt.Hypervisor$DescriptorImpl.doTestConnection(Hypervisor.java:455) 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:121) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ... 65 more
          karlkatzke Karl Katzke made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          gkr G. Kr. added a comment -

          Hi Karl Katzke,

          can you confirm that jenkins 1.6.20 is the first version to fail again ?

          Show
          gkr G. Kr. added a comment - Hi Karl Katzke , can you confirm that jenkins 1.6.20 is the first version to fail again ?
          Hide
          karlkatzke Karl Katzke added a comment -

          Nope, sadly, I can't. I'm just setting this up for the first time.

          Show
          karlkatzke Karl Katzke added a comment - Nope, sadly, I can't. I'm just setting this up for the first time.
          Hide
          gkr G. Kr. added a comment -

          I assume you verified that the native libvirt is installed on the jenkins master host.

          it would be great if you could try an earlier version of jenkins from here:
          http://mirrors.jenkins-ci.org/war/
          the native packages are linked at http://jenkins-ci.org/
          e.g. for debian http://pkg.jenkins-ci.org/debian/

          Show
          gkr G. Kr. added a comment - I assume you verified that the native libvirt is installed on the jenkins master host. it would be great if you could try an earlier version of jenkins from here: http://mirrors.jenkins-ci.org/war/ the native packages are linked at http://jenkins-ci.org/ e.g. for debian http://pkg.jenkins-ci.org/debian/
          Hide
          karlkatzke Karl Katzke added a comment - - edited

          I can confirm that the JNA is installed (prereq to libvirt), and that libvirt is installed:

          kkatzke@jenkins:~$ java -jar /usr/share/java/jna.jar
          Java Native Access (JNA) API Version 4
          Version: 4.1.0 (b4)
           Native: 4.0.0 (1a6047467b59e8748f975e03016ce3d9)
           Prefix: linux-x86-64
          kkatzke@jenkins:~$ java -jar /usr/share/java/libvirt.jar
          no main manifest attribute, in /usr/share/java/libvirt.jar
          kkatzke@jenkins:~$ java -version
          java version "1.7.0_79"
          OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
          OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
          

          It is, by the way, libvirt-0.5.1.jar – I built it from source earlier today.

          Interestingly, when I try to click the "Use Native Java libvirt client" checkbox, I get this error:

          com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey cannot be cast to com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
          
          Show
          karlkatzke Karl Katzke added a comment - - edited I can confirm that the JNA is installed (prereq to libvirt), and that libvirt is installed: kkatzke@jenkins:~$ java -jar /usr/share/java/jna.jar Java Native Access (JNA) API Version 4 Version: 4.1.0 (b4) Native: 4.0.0 (1a6047467b59e8748f975e03016ce3d9) Prefix: linux-x86-64 kkatzke@jenkins:~$ java -jar /usr/share/java/libvirt.jar no main manifest attribute, in /usr/share/java/libvirt.jar kkatzke@jenkins:~$ java -version java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode) It is, by the way, libvirt-0.5.1.jar – I built it from source earlier today. Interestingly, when I try to click the "Use Native Java libvirt client" checkbox, I get this error: com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey cannot be cast to com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
          Hide
          karlkatzke Karl Katzke added a comment -

          I didn't actually compile Jenkins myself. I'm pulling the Jenkins packages from http://pkg.jenkins-ci.org/debian

          I did compile my own libvirt.jar since the libvirt library that Ubuntu supplies does not seem to come with the Java bindings.

          Show
          karlkatzke Karl Katzke added a comment - I didn't actually compile Jenkins myself. I'm pulling the Jenkins packages from http://pkg.jenkins-ci.org/debian I did compile my own libvirt.jar since the libvirt library that Ubuntu supplies does not seem to come with the Java bindings.
          Hide
          gkr G. Kr. added a comment -

          cannot reproduce Karl Katzke's problem with jenkins 1.620 and libvirt 0.9.12 and libvirt 1.2.9

          Karl Katzke if the problem for you persists please create a new bug report and include details of your OS. e.g. virsh --version

          Show
          gkr G. Kr. added a comment - cannot reproduce Karl Katzke 's problem with jenkins 1.620 and libvirt 0.9.12 and libvirt 1.2.9 Karl Katzke if the problem for you persists please create a new bug report and include details of your OS. e.g. virsh --version
          gkr G. Kr. made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          gkr G. Kr. added a comment -

          closing as fixed

          Show
          gkr G. Kr. added a comment - closing as fixed
          gkr G. Kr. made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 142889 ] JNJira + In-Review [ 205630 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: