You should not create a new descriptor on every call to getDescriptor, this is 
done by Jenkins! So no need to override getDescriptor().

Best thing is to extend from AbstractDescribableImpl.

> Am 09.02.2015 um 21:54 schrieb Ivo Bellin Salarin 
> <[email protected]>:
> 
> Thanks Ulli!
> Yet I have to figure why the prototype.js is asking for null:
> <html><body>
> <h1>404 Not Found</h1>
> <p>Stapler processed this HTTP request as follows, but couldn't find the 
> resource to consume the request
> <pre>
> -> evaluate(&lt;hudson.model.Hudson@6a4edb79> 
> :hudson.model.Hudson,"/MyRootAction/null")
> -> 
> evaluate(((StaplerProxy)&lt;hudson.model.Hudson@6a4edb79>).getTarget(),"/MyRootAction/null")
> -> 
> evaluate(&lt;hudson.model.Hudson@6a4edb79>.getDynamic("MyRootAction",...),"/null")
> -> 
> evaluate(&lt;org.jenkinsci.plugins.rootactionexampleplugin.MyRootAction@974f250>
>  :org.jenkinsci.plugins.rootactionexampleplugin.MyRootAction,"/null")
> <font color=red>-&gt; No matching rule was found on 
> &lt;org.jenkinsci.plugins.rootactionexampleplugin.MyRootAction@974f250&gt; 
> for "/null"</font>
> </pre>
> <p>&lt;org.jenkinsci.plugins.rootactionexampleplugin.MyRootAction@974f250&gt; 
> has the following URL mappings, in the order of preference:<ol>
> <li>
> TOKEN.groovy for url=/TOKEN
> <li>
> VIEW.jelly for url=/VIEW
> <li>
> org.jenkinsci.plugins.rootactionexampleplugin.MyRootAction.getDescriptor() 
> for url=/descriptor/...
> <li>
> org.jenkinsci.plugins.rootactionexampleplugin.MyRootAction.getDisplayName() 
> for url=/displayName/...
> <li>
> org.jenkinsci.plugins.rootactionexampleplugin.MyRootAction.getIconFileName() 
> for url=/iconFileName/...
> <li>
> org.jenkinsci.plugins.rootactionexampleplugin.MyRootAction.getUrlName() for 
> url=/urlName/...
> <li>
> org.jenkinsci.plugins.rootactionexampleplugin.MyRootAction.getBuildGoals() 
> for url=/buildGoals/...
> <li>
> java.lang.Object.getClass() for url=/class/...
> </ol>
> </body></html>
> 
> The code which generates this request is on github 
> (https://github.com/nilleb/jenkins-plugins/tree/master/rootaction-example-plugin
>  
> <https://github.com/nilleb/jenkins-plugins/tree/master/rootaction-example-plugin>).
> 
> Tomorrow, maybe.
> 
> Thanks, have a good evening.
> 
> Il giorno lun 9 feb 2015 20:00 Ulli Hafner <[email protected] 
> <mailto:[email protected]>> ha scritto:
> 
> https://wiki.jenkins-ci.org/display/JENKINS/Figuring+out+URL+binding+of+Stapler
>  
> <https://wiki.jenkins-ci.org/display/JENKINS/Figuring+out+URL+binding+of+Stapler>
> 
>> Am 09.02.2015 um 17:11 schrieb Ivo Bellin Salarin 
>> <[email protected] <mailto:[email protected]>>:
>> 
> 
>> Hi,
>> 
>> I can't figure out why my doFillXXXItems aren't being called.
>> 
>> Is there some way to log/debug jelly<-->Descriptor interactions?
>> 
>> Thanks in advance,
>> Ivo
>> 
> 
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-dev/CAPc4eF_3ZaTwMJWPK_--s1fLViFEm5YY0o8UfcfF%3D5YhmRRkNQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-dev/CAPc4eF_3ZaTwMJWPK_--s1fLViFEm5YY0o8UfcfF%3D5YhmRRkNQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/1F5EA278-2094-4225-AB32-3A575D9BD61E%40gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/1F5EA278-2094-4225-AB32-3A575D9BD61E%40gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CAPc4eF-bZx%3Dn78N3QzrXO5-DiPM4Hh08A5srFnVBCB-MgGxT5Q%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CAPc4eF-bZx%3Dn78N3QzrXO5-DiPM4Hh08A5srFnVBCB-MgGxT5Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/B5F356C5-65F7-4155-9DAA-AD4A7FD12A50%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to