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

Jobs stuck while waiting for an executor (and executors are available)

      I have some similar trace as JENKINS-10567 (may or may not be related)

      there are about 10 items queued in /job/runtest/job/DevPrecheckin/:

      • they are all waiting for the same slave (job tied to the slave)
      • the slave has 8 free executors
      • all 10 items are stuck.

      after removing the first few queued item, was able to recover.
      I am using the LTS version 1.554.3, and can provide more details upon request (mostly because of sensitive info I would need to scrub).

      Jul 28, 2014 12:09:41 PM WARNING hudson.ExpressionFactory2$JexlExpression evaluate
      Caught exception evaluating: item.getCauseOfBlockage() in /job/runtest/job/DevPrecheckin/buildHistory/ajax. Reason: java.lang.NullPointerException
      java.lang.NullPointerException
      
      Jul 28, 2014 12:09:41 PM WARNING hudson.ExpressionFactory2$JexlExpression evaluate
      Caught exception evaluating: item.params in /job/runtest/job/DevPrecheckin/buildHistory/ajax. Reason: java.lang.reflect.InvocationTargetException
      java.lang.reflect.InvocationTargetException
      	at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:622)
      	at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
      	at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
      	at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
      	at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
      	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.parser.EscapingExpression.evaluate(EscapingExpression.java:24)
      	at org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66)
      	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      	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.TagSupport.invokeBody(TagSupport.java:161)
      	at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
      	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      	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.JellyViewScript.run(JellyViewScript.java:81)
      	at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)
      	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.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.TagSupport.invokeBody(TagSupport.java:161)
      	at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)
      	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.TagSupport.invokeBody(TagSupport.java:161)
      	at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
      	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$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:81)
      	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.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:55)
      	at hudson.widgets.HistoryWidget.doAjax(HistoryWidget.java:195)
      	at sun.reflect.GeneratedMethodAccessor483.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:622)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      	at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:79)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      	at org.eclipse.jetty.server.Server.handle(Server.java:370)
      	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      	at org.eclipse.jetty.server.AbstractHttpConnection.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:1146)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:701)
      Caused by: java.lang.NullPointerException
      
      Jul 28, 2014 12:09:41 PM WARNING hudson.ExpressionFactory2$JexlExpression evaluate
      Caught exception evaluating: item.getCauseOfBlockage() in /job/runtest/job/DevPrecheckin/buildHistory/ajax. Reason: java.lang.NullPointerException
      java.lang.NullPointerException
      
      Jul 28, 2014 12:09:46 PM SEVERE hudson.triggers.SafeTimerTask run
      Timer task hudson.model.Queue$MaintainTask@34a07387 failed
      java.lang.NullPointerException
      
      Jul 28, 2014 12:09:50 PM SEVERE hudson.triggers.SafeTimerTask run
      Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@1189caf7 failed
      java.lang.NullPointerException
      

          [JENKINS-24008] Jobs stuck while waiting for an executor (and executors are available)

          Daniel Beck added a comment -

          Are you using plugin-provided parameter types, if so, which? How are the builds triggered?

          Daniel Beck added a comment - Are you using plugin-provided parameter types, if so, which? How are the builds triggered?

          Damien Nozay added a comment -

          Hey Daniel, I'll be in chat, we can summarize our findings after a quick chat.

          Damien Nozay added a comment - Hey Daniel, I'll be in chat, we can summarize our findings after a quick chat.

          Damien Nozay added a comment -

          the parameters to the jobs are standard types: 2 string parameters, 1 text parameter, 1 file parameter.

          querying /queue/api/xml raises

          java.io.IOException: Failed to write params
          	at org.kohsuke.stapler.export.Property.writeTo(Property.java:120)
          	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
          	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
          	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
          	at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
          	at org.kohsuke.stapler.export.Property.writeValue(Property.java:169)
          	at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
          	at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
          	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
          	at org.kohsuke.stapler.export.Model.writeTo(Model.java:154)
          	at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
          	at hudson.model.Api.doXml(Api.java:97)
          	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:622)
          	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
          	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
          	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
          	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
          	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
          	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
          	at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
          	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
          	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
          	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
          	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:79)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
          	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
          	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
          	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
          	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
          	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
          	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
          	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
          	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
          	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
          	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
          	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
          	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
          	at org.eclipse.jetty.server.Server.handle(Server.java:370)
          	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
          	at org.eclipse.jetty.server.AbstractHttpConnection.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:1146)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          	at java.lang.Thread.run(Thread.java:701)
          Caused by: java.lang.reflect.InvocationTargetException
          	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:622)
          	at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
          	at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
          	... 90 more
          Caused by: java.lang.NullPointerException
          

          Damien Nozay added a comment - the parameters to the jobs are standard types: 2 string parameters, 1 text parameter, 1 file parameter. querying /queue/api/xml raises java.io.IOException: Failed to write params at org.kohsuke.stapler.export.Property.writeTo(Property.java:120) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182) at org.kohsuke.stapler.export.Property.writeValue(Property.java:232) at org.kohsuke.stapler.export.Property.writeValue(Property.java:169) at org.kohsuke.stapler.export.Property.writeValue(Property.java:137) at org.kohsuke.stapler.export.Property.writeTo(Property.java:114) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187) at org.kohsuke.stapler.export.Model.writeTo(Model.java:154) at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267) at hudson.model.Api.doXml(Api.java:97) 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:622) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631) at org.kohsuke.stapler.Stapler.service(Stapler.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:79) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.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:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang. Thread .run( Thread .java:701) Caused by: java.lang.reflect.InvocationTargetException 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:622) at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66) at org.kohsuke.stapler.export.Property.writeTo(Property.java:114) ... 90 more Caused by: java.lang.NullPointerException

          Damien Nozay added a comment -
          Jenkins.instance.queue.items.each { println it.id }
          Jenkins.instance.queue.items[0].properties.each { println it }
          
          1052
          pending=false
          searchName=null
          searchIndex=hudson.search.FixedSet@1e171554
          inQueueSince=1406839386074
          buildable=true
          url=queue/item/1052/
          search=hudson.search.Search@7d794d3a
          api=hudson.model.Api@26bd5b31
          blocked=false
          class=class hudson.model.Queue$BuildableItem
          searchUrl=null
          actions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4]
          allActions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4]
          inQueueForString=3 min 9 sec
          causes=[hudson.model.Cause$UserIdCause@4c6b144b]
          future=hudson.model.queue.FutureImpl@2075b176
          displayName=null
          Result: {pending=false, searchName=null, searchIndex=hudson.search.FixedSet@1e171554, inQueueSince=1406839386074, buildable=true, url=queue/item/1052/, search=hudson.search.Search@7d794d3a, api=hudson.model.Api@26bd5b31, blocked=false, class=class hudson.model.Queue$BuildableItem, searchUrl=null, actions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4], allActions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4], inQueueForString=3 min 9 sec, causes=[hudson.model.Cause$UserIdCause@4c6b144b], future=hudson.model.queue.FutureImpl@2075b176, displayName=null}
          

          Damien Nozay added a comment - Jenkins.instance.queue.items.each { println it.id } Jenkins.instance.queue.items[0].properties.each { println it } 1052 pending= false searchName= null searchIndex=hudson.search.FixedSet@1e171554 inQueueSince=1406839386074 buildable= true url=queue/item/1052/ search=hudson.search.Search@7d794d3a api=hudson.model.Api@26bd5b31 blocked= false class= class hudson.model.Queue$BuildableItem searchUrl= null actions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4] allActions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4] inQueueForString=3 min 9 sec causes=[hudson.model.Cause$UserIdCause@4c6b144b] future =hudson.model.queue.FutureImpl@2075b176 displayName= null Result: {pending= false , searchName= null , searchIndex=hudson.search.FixedSet@1e171554, inQueueSince=1406839386074, buildable= true , url=queue/item/1052/, search=hudson.search.Search@7d794d3a, api=hudson.model.Api@26bd5b31, blocked= false , class= class hudson.model.Queue$BuildableItem, searchUrl= null , actions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4], allActions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4], inQueueForString=3 min 9 sec, causes=[hudson.model.Cause$UserIdCause@4c6b144b], future =hudson.model.queue.FutureImpl@2075b176, displayName= null }

          Damien Nozay added a comment -
          Jenkins.instance.queue.items.each {
            println "queue item " + it.id
            it.properties.each { p -> println p }
            println "#############################################"
            
          }
          

          gives

          Result
          
          queue item 1053
          pending=false
          searchName=null
          causeOfBlockage=Waiting for next available executor on dev-precheckin
          searchIndex=hudson.search.FixedSet@75a939b7
          stuck=false
          inQueueSince=1406839798417
          buildable=true
          url=queue/item/1053/
          search=hudson.search.Search@390c59ba
          api=hudson.model.Api@59d6df98
          blocked=false
          class=class hudson.model.Queue$BuildableItem
          searchUrl=null
          actions=[hudson.model.CauseAction@b2b5830, hudson.model.CauseAction@4aaabd0a, hudson.model.ParametersAction@f6101d2]
          params=
          bundleUrl=[redacted]
          RUNTEST_ARGS=[redacted]
          USEEXISTING=0
          runtest.cfg=
          allActions=[hudson.model.CauseAction@b2b5830, hudson.model.CauseAction@4aaabd0a, hudson.model.ParametersAction@f6101d2]
          inQueueForString=5 min 41 sec
          causes=[hudson.model.Cause$UserIdCause@6b05930]
          future=hudson.model.queue.FutureImpl@4f3075d4
          why=Waiting for next available executor on dev-precheckin
          assignedLabel=dev-precheckin
          displayName=null
          #############################################
          queue item 1052
          pending=false
          searchName=null
          searchIndex=hudson.search.FixedSet@1ee7ba0f
          inQueueSince=1406839386074
          buildable=true
          url=queue/item/1052/
          search=hudson.search.Search@7f683ea2
          api=hudson.model.Api@14e83f07
          blocked=false
          class=class hudson.model.Queue$BuildableItem
          searchUrl=null
          actions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4]
          allActions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4]
          inQueueForString=12 min
          causes=[hudson.model.Cause$UserIdCause@4c6b144b]
          future=hudson.model.queue.FutureImpl@2075b176
          displayName=null
          #############################################
          Result: [Lhudson.model.Queue$Item;@1b81ef4a
          

          the item 1052 is causing problems for everything else.
          after removing 1052 it works.
          some users are able to make it fail 100% of the time.

          Damien Nozay added a comment - Jenkins.instance.queue.items.each { println "queue item " + it.id it.properties.each { p -> println p } println "#############################################" } gives Result queue item 1053 pending= false searchName= null causeOfBlockage=Waiting for next available executor on dev-precheckin searchIndex=hudson.search.FixedSet@75a939b7 stuck= false inQueueSince=1406839798417 buildable= true url=queue/item/1053/ search=hudson.search.Search@390c59ba api=hudson.model.Api@59d6df98 blocked= false class= class hudson.model.Queue$BuildableItem searchUrl= null actions=[hudson.model.CauseAction@b2b5830, hudson.model.CauseAction@4aaabd0a, hudson.model.ParametersAction@f6101d2] params= bundleUrl=[redacted] RUNTEST_ARGS=[redacted] USEEXISTING=0 runtest.cfg= allActions=[hudson.model.CauseAction@b2b5830, hudson.model.CauseAction@4aaabd0a, hudson.model.ParametersAction@f6101d2] inQueueForString=5 min 41 sec causes=[hudson.model.Cause$UserIdCause@6b05930] future =hudson.model.queue.FutureImpl@4f3075d4 why=Waiting for next available executor on dev-precheckin assignedLabel=dev-precheckin displayName= null ############################################# queue item 1052 pending= false searchName= null searchIndex=hudson.search.FixedSet@1ee7ba0f inQueueSince=1406839386074 buildable= true url=queue/item/1052/ search=hudson.search.Search@7f683ea2 api=hudson.model.Api@14e83f07 blocked= false class= class hudson.model.Queue$BuildableItem searchUrl= null actions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4] allActions=[hudson.model.ParametersAction@259ebb6f, hudson.model.CauseAction@582387b4] inQueueForString=12 min causes=[hudson.model.Cause$UserIdCause@4c6b144b] future =hudson.model.queue.FutureImpl@2075b176 displayName= null ############################################# Result: [Lhudson.model.Queue$Item;@1b81ef4a the item 1052 is causing problems for everything else. after removing 1052 it works. some users are able to make it fail 100% of the time.

          Damien Nozay added a comment -

          found the issue.

          some folks use "build with params" -> /job/runtest/job/DevPrecheckin/parambuild/ this ALWAYS fails.
          some folks use "build with parameters" -> /job/runtest/job/DevPrecheckin/build this works.

          Damien Nozay added a comment - found the issue. some folks use "build with params" -> /job/runtest/job/DevPrecheckin/parambuild/ this ALWAYS fails. some folks use "build with parameters" -> /job/runtest/job/DevPrecheckin/build this works.

          Daniel Beck added a comment -

          Damien has determined that it seems the Build with Params feature causes this issue. From #jenkins (IRC):

          [00:22:41]  <dnozay>	 danielbeck: found the issue
          [00:22:53]  <dnozay>	 some users click on "build with params"
          [00:23:01]  <dnozay>	 and that fails
          [00:23:07]  <+danielbeck>	 Build with Parameters Plugin?
          [00:23:14]  <dnozay>	 lemme look
          [00:25:13]  <dnozay>	 danielbeck: /parambuild/ so i think yes
          

          Daniel Beck added a comment - Damien has determined that it seems the Build with Params feature causes this issue. From #jenkins (IRC): [00:22:41] <dnozay> danielbeck: found the issue [00:22:53] <dnozay> some users click on "build with params" [00:23:01] <dnozay> and that fails [00:23:07] <+danielbeck> Build with Parameters Plugin? [00:23:14] <dnozay> lemme look [00:25:13] <dnozay> danielbeck: /parambuild/ so i think yes

          tigren zhang added a comment -

          Dear All

          Our Jenkins has the exactly same issue, is there any solution or workaround?

          We don't have "Build With Parameters Plugin" installed so I guess it's not caused by that

          tigren zhang added a comment - Dear All Our Jenkins has the exactly same issue, is there any solution or workaround? We don't have "Build With Parameters Plugin" installed so I guess it's not caused by that

          Andrew P added a comment -

          I believe that I have hit the same issue.
          I am calling the job from a flow. The flow is triggered manually.

          The job makes use of Build with parameters.
          It has a Dynamic Extended Choice Plugin aka Moded Extended Choice Parameter and an Extended Choice Parameter.

          We don't even have to use "Bind with field" to expose the unwanted behavior.
          Just by having both Extended Choice Parameter and Extended Choice Parameter in the same job makes it hang when called from a Flow.

          -----Verisons and modules -------
          Using Jenkins ver. 1.557
          Build Flow Plugin
          Manage jobs orchestration as a dedicated "build flow" top level item
          0.12

          Dynamic Extended Choice Parameter Plug-In
          This plugin is a sample plugin to explain how to write a Hudson plugin.
          1.0.1

          Extended Choice Parameter plugin
          Adds extended functionality to Choice parameter
          0.30

          Extensible Choice Parameter plugin
          Extensible Choice Parameter provides several ways to retrieve choices, including the way to share choices among all jobs.
          1.2.2

          -------Configurations ---------------
          Base job with Bind to Field
          [jenkins@usaxqkr017cczra xx_job1]$ cat config.xml
          <?xml version='1.0' encoding='UTF-8'?>
          <project>
          <actions/>
          <description></description>
          <keepDependencies>false</keepDependencies>
          <properties>
          <hudson.model.ParametersDefinitionProperty>
          <parameterDefinitions>
          <com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition plugin="dynamic_extended_choice_parameter@1.0.1">
          <name>SITE</name>
          <description></description>
          <quoteValue>false</quoteValue>
          <svnPath>false</svnPath>
          <roleBasedFilter>false</roleBasedFilter>
          <visibleItemCount>5</visibleItemCount>
          <type>PT_SINGLE_SELECT</type>
          <value></value>
          <propertyFile>/dimp/zzz/sites/jenkins_choices/management.sites</propertyFile>
          <propertyKey>key</propertyKey>
          <defaultValue></defaultValue>
          <defaultPropertyFile></defaultPropertyFile>
          <defaultPropertyKey></defaultPropertyKey>
          <multiSelectDelimiter>,</multiSelectDelimiter>
          <bindFieldName>INDEX</bindFieldName>
          <projectName></projectName>
          <svnUrl></svnUrl>
          <svnUserName></svnUserName>
          <svnPassword></svnPassword>
          </com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition>
          <com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition plugin="extended-choice-parameter@0.30">
          <name>INDEX</name>
          <description></description>
          <quoteValue>false</quoteValue>
          <visibleItemCount>5</visibleItemCount>
          <type>PT_SINGLE_SELECT</type>
          <value></value>
          <propertyFile></propertyFile>
          <propertyKey>key</propertyKey>
          <defaultValue></defaultValue>
          <defaultPropertyFile></defaultPropertyFile>
          <defaultPropertyKey></defaultPropertyKey>
          <multiSelectDelimiter>,</multiSelectDelimiter>
          </com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition>
          </parameterDefinitions>
          </hudson.model.ParametersDefinitionProperty>
          </properties>
          <scm class="hudson.scm.NullSCM"/>
          <canRoam>true</canRoam>
          <disabled>false</disabled>
          <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
          <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
          <triggers/>
          <concurrentBuild>false</concurrentBuild>
          <builders>
          <hudson.tasks.Shell>
          <command>env</command>
          </hudson.tasks.Shell>
          </builders>
          <publishers/>
          <buildWrappers/>

          Base job without Bind to field
          [jenkins@usaxqkr017cczra xx_job1]$ cat config.xml
          <?xml version='1.0' encoding='UTF-8'?>
          <project>
          <actions/>
          <description></description>
          <keepDependencies>false</keepDependencies>
          <properties>
          <hudson.model.ParametersDefinitionProperty>
          <parameterDefinitions>
          <com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition plugin="dynamic_extended_choice_parameter@1.0.1">
          <name>SITE</name>
          <description></description>
          <quoteValue>false</quoteValue>
          <svnPath>false</svnPath>
          <roleBasedFilter>false</roleBasedFilter>
          <visibleItemCount>5</visibleItemCount>
          <type>PT_SINGLE_SELECT</type>
          <value></value>
          <propertyFile>/dimp/zzz/sites/jenkins_choices/management.sites</propertyFile>
          <propertyKey>key</propertyKey>
          <defaultValue></defaultValue>
          <defaultPropertyFile></defaultPropertyFile>
          <defaultPropertyKey></defaultPropertyKey>
          <multiSelectDelimiter>,</multiSelectDelimiter>
          <bindFieldName></bindFieldName>
          <projectName></projectName>
          <svnUrl></svnUrl>
          <svnUserName></svnUserName>
          <svnPassword></svnPassword>
          </com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition>
          <com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition plugin="extended-choice-parameter@0.30">
          <name>INDEX</name>
          <description></description>
          <quoteValue>false</quoteValue>
          <visibleItemCount>5</visibleItemCount>
          <type>PT_SINGLE_SELECT</type>
          <value></value>
          <propertyFile>/dimp/zzz/sites/jenkins_choices/management.sites</propertyFile>
          <propertyKey>key</propertyKey>
          <defaultValue></defaultValue>
          <defaultPropertyFile></defaultPropertyFile>
          <defaultPropertyKey></defaultPropertyKey>
          <multiSelectDelimiter>,</multiSelectDelimiter>
          </com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition>
          </parameterDefinitions>
          </hudson.model.ParametersDefinitionProperty>
          </properties>
          <scm class="hudson.scm.NullSCM"/>
          <canRoam>true</canRoam>
          <disabled>false</disabled>
          <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
          <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
          <triggers/>
          <concurrentBuild>false</concurrentBuild>
          <builders>
          <hudson.tasks.Shell>
          <command>env</command>
          </hudson.tasks.Shell>
          </builders>
          <publishers/>
          <buildWrappers/>
          </project>

          Flow
          [jenkins@usaxqkr017cczra xx_mod_flow]$ cat config.xml
          <?xml version='1.0' encoding='UTF-8'?>
          <com.cloudbees.plugins.flow.BuildFlow plugin="build-flow-plugin@0.12">
          <actions/>
          <description></description>
          <keepDependencies>false</keepDependencies>
          <properties/>
          <scm class="hudson.scm.NullSCM"/>
          <canRoam>true</canRoam>
          <disabled>false</disabled>
          <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
          <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
          <triggers/>
          <concurrentBuild>false</concurrentBuild>
          <builders/>
          <publishers/>
          <buildWrappers/>
          <icon/>
          <dsl>build("xx_job1")</dsl>
          <buildNeedsWorkspace>false</buildNeedsWorkspace>
          </com.cloudbees.plugins.flow.BuildFlow>

          Where
          cat management.sites
          key=a,b,c

          cat aaa.txt
          key=ddd,eee

          Andrew P added a comment - I believe that I have hit the same issue. I am calling the job from a flow. The flow is triggered manually. The job makes use of Build with parameters. It has a Dynamic Extended Choice Plugin aka Moded Extended Choice Parameter and an Extended Choice Parameter. We don't even have to use "Bind with field" to expose the unwanted behavior. Just by having both Extended Choice Parameter and Extended Choice Parameter in the same job makes it hang when called from a Flow. -----Verisons and modules ------- Using Jenkins ver. 1.557 Build Flow Plugin Manage jobs orchestration as a dedicated "build flow" top level item 0.12 Dynamic Extended Choice Parameter Plug-In This plugin is a sample plugin to explain how to write a Hudson plugin. 1.0.1 Extended Choice Parameter plugin Adds extended functionality to Choice parameter 0.30 Extensible Choice Parameter plugin Extensible Choice Parameter provides several ways to retrieve choices, including the way to share choices among all jobs. 1.2.2 -------Configurations --------------- Base job with Bind to Field [jenkins@usaxqkr017cczra xx_job1] $ cat config.xml <?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> <com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition plugin="dynamic_extended_choice_parameter@1.0.1"> <name>SITE</name> <description></description> <quoteValue>false</quoteValue> <svnPath>false</svnPath> <roleBasedFilter>false</roleBasedFilter> <visibleItemCount>5</visibleItemCount> <type>PT_SINGLE_SELECT</type> <value></value> <propertyFile>/dimp/zzz/sites/jenkins_choices/management.sites</propertyFile> <propertyKey>key</propertyKey> <defaultValue></defaultValue> <defaultPropertyFile></defaultPropertyFile> <defaultPropertyKey></defaultPropertyKey> <multiSelectDelimiter>,</multiSelectDelimiter> <bindFieldName>INDEX</bindFieldName> <projectName></projectName> <svnUrl></svnUrl> <svnUserName></svnUserName> <svnPassword></svnPassword> </com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition> <com.cwctravel.hudson.plugins.extended_ choice _parameter.ExtendedChoiceParameterDefinition plugin="extended-choice-parameter@0.30"> <name>INDEX</name> <description></description> <quoteValue>false</quoteValue> <visibleItemCount>5</visibleItemCount> <type>PT_SINGLE_SELECT</type> <value></value> <propertyFile></propertyFile> <propertyKey>key</propertyKey> <defaultValue></defaultValue> <defaultPropertyFile></defaultPropertyFile> <defaultPropertyKey></defaultPropertyKey> <multiSelectDelimiter>,</multiSelectDelimiter> </com.cwctravel.hudson.plugins.extended_ choice _parameter.ExtendedChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> </properties> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers/> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.Shell> <command>env</command> </hudson.tasks.Shell> </builders> <publishers/> <buildWrappers/> Base job without Bind to field [jenkins@usaxqkr017cczra xx_job1] $ cat config.xml <?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> <com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition plugin="dynamic_extended_choice_parameter@1.0.1"> <name>SITE</name> <description></description> <quoteValue>false</quoteValue> <svnPath>false</svnPath> <roleBasedFilter>false</roleBasedFilter> <visibleItemCount>5</visibleItemCount> <type>PT_SINGLE_SELECT</type> <value></value> <propertyFile>/dimp/zzz/sites/jenkins_choices/management.sites</propertyFile> <propertyKey>key</propertyKey> <defaultValue></defaultValue> <defaultPropertyFile></defaultPropertyFile> <defaultPropertyKey></defaultPropertyKey> <multiSelectDelimiter>,</multiSelectDelimiter> <bindFieldName></bindFieldName> <projectName></projectName> <svnUrl></svnUrl> <svnUserName></svnUserName> <svnPassword></svnPassword> </com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition> <com.cwctravel.hudson.plugins.extended_ choice _parameter.ExtendedChoiceParameterDefinition plugin="extended-choice-parameter@0.30"> <name>INDEX</name> <description></description> <quoteValue>false</quoteValue> <visibleItemCount>5</visibleItemCount> <type>PT_SINGLE_SELECT</type> <value></value> <propertyFile>/dimp/zzz/sites/jenkins_choices/management.sites</propertyFile> <propertyKey>key</propertyKey> <defaultValue></defaultValue> <defaultPropertyFile></defaultPropertyFile> <defaultPropertyKey></defaultPropertyKey> <multiSelectDelimiter>,</multiSelectDelimiter> </com.cwctravel.hudson.plugins.extended_ choice _parameter.ExtendedChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> </properties> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers/> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.Shell> <command>env</command> </hudson.tasks.Shell> </builders> <publishers/> <buildWrappers/> </project> Flow [jenkins@usaxqkr017cczra xx_mod_flow] $ cat config.xml <?xml version='1.0' encoding='UTF-8'?> <com.cloudbees.plugins.flow.BuildFlow plugin="build-flow-plugin@0.12"> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers/> <concurrentBuild>false</concurrentBuild> <builders/> <publishers/> <buildWrappers/> <icon/> <dsl>build("xx_job1")</dsl> <buildNeedsWorkspace>false</buildNeedsWorkspace> </com.cloudbees.plugins.flow.BuildFlow> Where cat management.sites key=a,b,c cat aaa.txt key=ddd,eee

          Andrew P added a comment -

          PS: Removing the "This build is parameterized" tick will remove the unwanted behavior

          Andrew P added a comment - PS: Removing the "This build is parameterized" tick will remove the unwanted behavior

            Unassigned Unassigned
            dnozay Damien Nozay
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: