I think you need to add an index.jelly file for that URL. If you
already have one, can you paste its contents?

On Mon, Dec 23, 2019 at 4:11 PM 'Gavin Mogan' via Jenkins Developers
<[email protected]> wrote:
>
> You havn't really given us very much to work with. At least seeing the code 
> we could make a shot at this.
>
> Did you confirm your run has the action (look at the xml file)
> What url did you try to hit? Looks like /job/testProject/4/greeting but want 
> to confirm
>
> Did you define getUrlName() to something like the tutorials/error message 
> suggested?
>
> Gavin
>
>
> On Mon, Dec 23, 2019 at 5:24 AM wla <[email protected]> wrote:
>>
>> Hello,
>>
>> if i follow this tut :
>> https://jenkins.io/doc/developer/tutorial/extend/
>> i get the following error
>> Stapler processed this HTTP request as follows, but couldn't find the 
>> resource to consume the request
>>
>> -> evaluate(<hudson.model.Hudson@> 
>> :hudson.model.Hudson,"/job/testProject/4/greeting")
>> -> 
>> evaluate(((StaplerProxy)<hudson.model.Hudson@>).getTarget(),"/job/testProject/4/greeting")
>> -> evaluate(<hudson.model.Hudson@>.getJob("testProject"),"/4/greeting")
>> -> evaluate(<hudson.model.FreeStyleProject@[testProject]> 
>> :hudson.model.FreeStyleProject,"/4/greeting")
>> -> 
>> evaluate(((StaplerProxy)<hudson.model.FreeStyleProject@[testProject]>).getTarget(),"/4/greeting")
>> -> 
>> evaluate(<hudson.model.FreeStyleProject@[testProject]>.getDynamic("4",...),"/greeting")
>> -> evaluate(<testProject #4> :hudson.model.FreeStyleBuild,"/greeting")
>> -> evaluate(((StaplerProxy)<testProject #4>).getTarget(),"/greeting")
>> -> evaluate(<testProject #4>.getDynamic("greeting",...),"")
>> -> evaluate(<io.jenkins.plugins.sample.HelloWorldAction@> 
>> :io.jenkins.plugins.sample.HelloWorldAction,"")
>> -> No matching rule was found on 
>> <io.jenkins.plugins.sample.HelloWorldAction@679dde3d> for ""
>>
>> <io.jenkins.plugins.sample.HelloWorldAction@> has the following URL 
>> mappings, in the order of preference:
>>
>>     If path ends without '/' insert it
>>     TOKEN.groovy for url=/TOKEN
>>     VIEW.jelly for url=/VIEW
>>     BLOCKED: java.lang.String 
>> io.jenkins.plugins.sample.HelloWorldAction.getDisplayName() for 
>> url=/displayName/...
>>     BLOCKED: java.lang.String 
>> io.jenkins.plugins.sample.HelloWorldAction.getIconFileName() for 
>> url=/iconFileName/...
>>     BLOCKED: java.lang.String 
>> io.jenkins.plugins.sample.HelloWorldAction.getUrlName() for url=/urlName/...
>>     BLOCKED: java.lang.Class java.lang.Object.getClass() for url=/class/...
>>     BLOCKED: java.lang.String 
>> io.jenkins.plugins.sample.HelloWorldAction.getName() for url=/name/...
>>
>> have someon a similar issue ?
>> Or better a solution?
>>
>> --
>> 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/41d6fcd1-7721-4191-b6a0-2e825fd575ee%40googlegroups.com.
>
> --
> 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/CAG%3D_Dut6cb9_SWnAmuw0yAhLh%2BXjxc4s7merm2d7DVz5KxMVhA%40mail.gmail.com.



-- 
Matt Sicker
Senior Software Engineer, CloudBees

-- 
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/CAEot4ozagS1CPnZFkJbcVqi51iwF7E7w5sH%2BSVS_8pJq3RxS6g%40mail.gmail.com.

Reply via email to