Unable to find hudson/tasks/Ant.stapler

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to find hudson/tasks/Ant.stapler

Folke Lemaitre-3
hi,

After building (mvn install in the hudson/main directory) and deploying the HEAD version of Hudson, I get the following error when trying to save configuration for "Invoke top-level ant". Other configuration changes seem to work fine.

Any idea?

,Folke

exception

javax.servlet.ServletException: Unable to find hudson/tasks/Ant.stapler. Have you put @stapler-constructor javadoc tag on a constructor?
org.kohsuke.stapler.Stapler.invoke (Stapler.java:279)
org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:207)
org.kohsuke.stapler.Stapler.service(Stapler.java:72)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.IllegalArgumentException
: Unable to find hudson/tasks/Ant.stapler. Have you put @stapler-constructor javadoc tag on a constructor?
org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:285)
org.kohsuke.stapler.RequestImpl.bindParameters (RequestImpl.java:225)
org.kohsuke.stapler.RequestImpl.bindParameters(RequestImpl.java:221)
hudson.tasks.Ant$DescriptorImpl.newInstance(Ant.java:180)
hudson.tasks.Ant$DescriptorImpl.newInstance(Ant.java:1)
hudson.model.AbstractProject.buildDescribable(AbstractProject.java:566)
hudson.model.Project.submit(Project.java:154)
hudson.model.Job.doConfigSubmit(Job.java:510)
hudson.model.Project.doConfigSubmit(Project.java :162)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25)
java.lang.reflect.Method.invoke(Method.java:585)
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:95)
org.kohsuke.stapler.Function.bindAndinvoke(Function.java:51)
org.kohsuke.stapler.MetaClass$1.doDispatch (MetaClass.java:63)
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:207)
org.kohsuke.stapler.Stapler.service (Stapler.java:72)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Reply | Threaded
Open this post in threaded view
|

Re: Unable to find hudson/tasks/Ant.stapler

Kohsuke Kawaguchi
Administrator
Hmm, can you run clean build just to double check?

This means that the stapler plugin that should kick in during the core
module build is not kicking in. Can you paste the build log of the
core module?

Hudson is building Hudson fine, so I suspect there's some environment
issue or something like that.


2007/4/27, Folke Lemaitre <[hidden email]>:

> hi,
>
> After building (mvn install in the hudson/main directory) and deploying the
> HEAD version of Hudson, I get the following error when trying to save
> configuration for "Invoke top-level ant". Other configuration changes seem
> to work fine.
>
> Any idea?
>
> ,Folke
>
>
>
> exception javax.servlet.ServletException: Unable to find
> hudson/tasks/Ant.stapler. Have you put @stapler-constructor javadoc tag on a
> constructor?
>  org.kohsuke.stapler.Stapler.invoke
> (Stapler.java:279)
> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
>
>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:207)
>  org.kohsuke.stapler.Stapler.service(Stapler.java:72)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
> root cause java.lang.IllegalArgumentException
> : Unable to find hudson/tasks/Ant.stapler. Have you put @stapler-constructor
> javadoc tag on a constructor?
> org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:285)
>  org.kohsuke.stapler.RequestImpl.bindParameters
> (RequestImpl.java:225)
> org.kohsuke.stapler.RequestImpl.bindParameters(RequestImpl.java:221)
>  hudson.tasks.Ant$DescriptorImpl.newInstance(Ant.java:180)
>  hudson.tasks.Ant$DescriptorImpl.newInstance(Ant.java:1)
>
> hudson.model.AbstractProject.buildDescribable(AbstractProject.java:566)
>  hudson.model.Project.submit(Project.java:154)
>  hudson.model.Job.doConfigSubmit(Job.java:510)
>  hudson.model.Project.doConfigSubmit(Project.java
> :162)
>  sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
> :25)
>  java.lang.reflect.Method.invoke(Method.java:585)
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:95)
> org.kohsuke.stapler.Function.bindAndinvoke(Function.java:51)
>  org.kohsuke.stapler.MetaClass$1.doDispatch
> (MetaClass.java:63)
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:207)
>  org.kohsuke.stapler.Stapler.service
> (Stapler.java:72)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>


--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Unable to find hudson/tasks/Ant.stapler

Kohsuke Kawaguchi
Administrator

Another possible reason is that if your IDE had already built the Ant
class, running "mvn install" would have the side effect of not
generating the .stapler file --- this is because Maven skips compiling
this file.

I think that's the likely cause of the problem.


Kohsuke Kawaguchi wrote:

> Hmm, can you run clean build just to double check?
>
> This means that the stapler plugin that should kick in during the core
> module build is not kicking in. Can you paste the build log of the
> core module?
>
> Hudson is building Hudson fine, so I suspect there's some environment
> issue or something like that.
>
>
> 2007/4/27, Folke Lemaitre <[hidden email]>:
>> hi,
>>
>> After building (mvn install in the hudson/main directory) and deploying the
>> HEAD version of Hudson, I get the following error when trying to save
>> configuration for "Invoke top-level ant". Other configuration changes seem
>> to work fine.
>>
>> Any idea?
>>
>> ,Folke
>>
>>
>>
>> exception javax.servlet.ServletException: Unable to find
>> hudson/tasks/Ant.stapler. Have you put @stapler-constructor javadoc tag on a
>> constructor?
>>  org.kohsuke.stapler.Stapler.invoke
>> (Stapler.java:279)
>> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
>>
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:207)
>>  org.kohsuke.stapler.Stapler.service(Stapler.java:72)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>
>> root cause java.lang.IllegalArgumentException
>> : Unable to find hudson/tasks/Ant.stapler. Have you put @stapler-constructor
>> javadoc tag on a constructor?
>> org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:285)
>>  org.kohsuke.stapler.RequestImpl.bindParameters
>> (RequestImpl.java:225)
>> org.kohsuke.stapler.RequestImpl.bindParameters(RequestImpl.java:221)
>>  hudson.tasks.Ant$DescriptorImpl.newInstance(Ant.java:180)
>>  hudson.tasks.Ant$DescriptorImpl.newInstance(Ant.java:1)
>>
>> hudson.model.AbstractProject.buildDescribable(AbstractProject.java:566)
>>  hudson.model.Project.submit(Project.java:154)
>>  hudson.model.Job.doConfigSubmit(Job.java:510)
>>  hudson.model.Project.doConfigSubmit(Project.java
>> :162)
>>  sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
>> :25)
>>  java.lang.reflect.Method.invoke(Method.java:585)
>> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:95)
>> org.kohsuke.stapler.Function.bindAndinvoke(Function.java:51)
>>  org.kohsuke.stapler.MetaClass$1.doDispatch
>> (MetaClass.java:63)
>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
>> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>>
>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:207)
>>  org.kohsuke.stapler.Stapler.service
>> (Stapler.java:72)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>
>>
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Unable to find hudson/tasks/Ant.stapler

Folke Lemaitre-3
Doing clean followed by install fixed the issue for me. The IDE might indeed be the issue as well, since I use eclipse, but the clean/install is good enough for me...

Thanks for the help,
Folke


On 4/30/07, Kohsuke Kawaguchi <[hidden email]> wrote:

Another possible reason is that if your IDE had already built the Ant
class, running "mvn install" would have the side effect of not
generating the .stapler file --- this is because Maven skips compiling
this file.

I think that's the likely cause of the problem.


Kohsuke Kawaguchi wrote:

> Hmm, can you run clean build just to double check?
>
> This means that the stapler plugin that should kick in during the core
> module build is not kicking in. Can you paste the build log of the
> core module?
>
> Hudson is building Hudson fine, so I suspect there's some environment
> issue or something like that.
>
>
> 2007/4/27, Folke Lemaitre <[hidden email]>:
>> hi,
>>
>> After building (mvn install in the hudson/main directory) and deploying the
>> HEAD version of Hudson, I get the following error when trying to save
>> configuration for "Invoke top-level ant". Other configuration changes seem
>> to work fine.
>>
>> Any idea?

>>
>> ,Folke
>>
>>
>>
>> exception javax.servlet.ServletException: Unable to find
>> hudson/tasks/Ant.stapler. Have you put @stapler-constructor javadoc tag on a
>> constructor?
>>  org.kohsuke.stapler.Stapler.invoke
>> (Stapler.java:279)
>> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>> org.kohsuke.stapler.NameBasedDispatcher.dispatch (NameBasedDispatcher.java:30)
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
>>
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:207)
>>  org.kohsuke.stapler.Stapler.service (Stapler.java:72)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>
>> root cause java.lang.IllegalArgumentException
>> : Unable to find hudson/tasks/Ant.stapler. Have you put @stapler-constructor
>> javadoc tag on a constructor?
>> org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:285)
>>  org.kohsuke.stapler.RequestImpl.bindParameters
>> (RequestImpl.java :225)
>> org.kohsuke.stapler.RequestImpl.bindParameters(RequestImpl.java:221)
>>  hudson.tasks.Ant$DescriptorImpl.newInstance(Ant.java:180)
>>  hudson.tasks.Ant$DescriptorImpl.newInstance(Ant.java :1)
>>
>> hudson.model.AbstractProject.buildDescribable(AbstractProject.java:566)
>>  hudson.model.Project.submit(Project.java:154)
>>  hudson.model.Job.doConfigSubmit(Job.java:510)
>>  hudson.model.Project.doConfigSubmit(Project.java

>> :162)
>>  sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39)
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
>> :25)
>>  java.lang.reflect.Method.invoke(Method.java:585)
>> org.kohsuke.stapler.Function$InstanceFunction.invoke (Function.java:95)
>> org.kohsuke.stapler.Function.bindAndinvoke(Function.java:51)
>>  org.kohsuke.stapler.MetaClass$1.doDispatch
>> (MetaClass.java:63)
>> org.kohsuke.stapler.NameBasedDispatcher.dispatch (NameBasedDispatcher.java:30)
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
>> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>>
>> org.kohsuke.stapler.NameBasedDispatcher.dispatch (NameBasedDispatcher.java:30)
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:270)
>>  org.kohsuke.stapler.Stapler.invoke(Stapler.java:207)
>>  org.kohsuke.stapler.Stapler.service
>> ( Stapler.java:72)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>
>>
>
>


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]




--
Adres: Nieuwevaart 232, 9000 Gent, Belgium
Phone: +32486291702
Photos: http://picasaweb.google.com/folke.lemaitre
Music: http://www.last.fm/user/flemaitr/
Digg: http://digg.com/users/Zypher