Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 407064 - [upstream] parameterized build not working with Jenkins 1.480.3
Summary: [upstream] parameterized build not working with Jenkins 1.480.3
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-02 07:20 EDT by Andre Bossert CLA
Modified: 2016-03-06 06:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Bossert CLA 2013-05-02 07:20:22 EDT
I've Jenkins 1.480.3 and want to start parametrized build:

Running of build failed
Running build 'job_generator_4_mylyn' failed
Unexpected error: Unexpected response from Hudson server for '/job/job_generator_4_mylyn/build': Bad Request
Unexpected response from Hudson server for '/job/job_generator_4_mylyn/build': Bad Request

Normal build, without parameters works.

Win7 x64
JDK 7u21
Eclipse 3.7.2
Mylyn 3.8.3
Comment 1 Andre Bossert CLA 2013-05-02 07:30:42 EDT
Mylyn Builds 1.0.3
Comment 2 Steffen Pingel CLA 2013-05-02 08:06:55 EDT
Do you have " Prevent Cross Site Request Forgery exploits" enabled under Configure System?
Comment 3 Steffen Pingel CLA 2013-05-02 08:16:54 EDT
Can you check if you have any errors in the Jenkins log? I found this on our test server:

Caused by: java.lang.NullPointerException
        at hudson.model.FileParameterValue.<init>(FileParameterValue.java:73)
        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)

It looks like file parameters are not properly supported. What kind of parameters does your build expect?
Comment 4 Andre Bossert CLA 2013-05-02 10:42:09 EDT
I've started clean Jenkins without any plugins, no security settings and defined one test job with one text parameter. This error log was printed, strange...

SEVERE: Error while serving http://md15dvwc:8080/job/Test/build
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:28
8)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.j
ava:90)
        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:574)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
        at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
java:53)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
        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:9
5)
        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.ja
va:76)
        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
        at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
        at org.kohsuke.stapler.compression.CompressionFilter.doFilter(Compressio
nFilter.java:50)
        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.jav
a:227)
        at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Error: This page expects a form submission
        at org.kohsuke.stapler.RequestImpl.getSubmittedForm(RequestImpl.java:754
)
        at hudson.model.ParametersDefinitionProperty._doBuild(ParametersDefiniti
onProperty.java:112)
        at hudson.model.AbstractProject.doBuild(AbstractProject.java:1657)
        ... 49 more
Comment 5 Andre Bossert CLA 2013-05-02 11:16:23 EDT
Now i've installed Active Directory plugin and enabled security. In Mylyn i've disabled Anonymous and now i can build with parameters.
Comment 6 Andre Bossert CLA 2013-05-02 11:31:56 EDT
Now after created more jobs it does not work anymore... very strange... may be something wrong with my Win 7 system or java version i'm using...
Comment 7 Steffen Pingel CLA 2013-05-02 19:13:28 EDT
There is a similar issue tracked here: https://issues.jenkins-ci.org/browse/JENKINS-17110 which is apparently fixed in 1.509.1 to fix a problem that was added in 1.480.3: https://issues.jenkins-ci.org/browse/JENKINS-16844.
Comment 8 Andre Bossert CLA 2013-05-03 06:24:34 EDT
Thanks for the information. I've updated to 1.509.1 and now it looks good for "normal" job parameters. This is an Jenkins issue so i can close it.

Like you described in comment 3 there are other parameters that are not supported.
I've created enhancement request for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=407158
Comment 9 Andre Bossert CLA 2013-05-03 06:25:57 EDT
This is an Jenkins issue, fixed in 1.509.1
Comment 10 Steffen Pingel CLA 2013-05-03 08:45:40 EDT
Thanks for verifying!
Comment 11 Andre Bossert CLA 2016-03-06 06:10:28 EST
not_eclipse