Re: Jenkins Plugin Error

2020-01-06 Thread Matt Sicker
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
 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  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,"/job/testProject/4/greeting")
>> -> 
>> evaluate(((StaplerProxy)).getTarget(),"/job/testProject/4/greeting")
>> -> evaluate(.getJob("testProject"),"/4/greeting")
>> -> evaluate( 
>> :hudson.model.FreeStyleProject,"/4/greeting")
>> -> 
>> evaluate(((StaplerProxy)).getTarget(),"/4/greeting")
>> -> 
>> evaluate(.getDynamic("4",...),"/greeting")
>> -> evaluate( :hudson.model.FreeStyleBuild,"/greeting")
>> -> evaluate(((StaplerProxy)).getTarget(),"/greeting")
>> -> evaluate(.getDynamic("greeting",...),"")
>> -> evaluate( 
>> :io.jenkins.plugins.sample.HelloWorldAction,"")
>> -> No matching rule was found on 
>>  for ""
>>
>>  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 jenkinsci-dev+unsubscr...@googlegroups.com.
>> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAEot4ozagS1CPnZFkJbcVqi51iwF7E7w5sH%2BSVS_8pJq3RxS6g%40mail.gmail.com.


Re: Jenkins Plugin Error

2019-12-23 Thread 'Gavin Mogan' via Jenkins Developers
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  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,"/job/testProject/4/greeting")
> -> evaluate(((StaplerProxy) >).getTarget(),"/job/testProject/4/greeting")
> -> evaluate(.getJob("testProject"),"/4/greeting")
> -> evaluate(
> :hudson.model.FreeStyleProject,"/4/greeting")
> -> evaluate(((StaplerProxy) [testProject]>).getTarget(),"/4/greeting")
> -> evaluate( [testProject]>.getDynamic("4",...),"/greeting")
> -> evaluate( :hudson.model.FreeStyleBuild,"/greeting")
> -> evaluate(((StaplerProxy)).getTarget(),"/greeting")
> -> evaluate(.getDynamic("greeting",...),"")
> -> evaluate(
> :io.jenkins.plugins.sample.HelloWorldAction,"")
> -> No matching rule was found on
>  for ""
>
>  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 jenkinsci-dev+unsubscr...@googlegroups.com.
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dut6cb9_SWnAmuw0yAhLh%2BXjxc4s7merm2d7DVz5KxMVhA%40mail.gmail.com.


Jenkins Plugin Error

2019-12-23 Thread wla
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,"/job/testProject/4/greeting")
-> 
evaluate(((StaplerProxy)).getTarget(),"/job/testProject/4/greeting")
-> evaluate(.getJob("testProject"),"/4/greeting")
-> evaluate( 
:hudson.model.FreeStyleProject,"/4/greeting")
-> 
evaluate(((StaplerProxy)).getTarget(),"/4/greeting")
-> 
evaluate(.getDynamic("4",...),"/greeting")
-> evaluate( :hudson.model.FreeStyleBuild,"/greeting")
-> evaluate(((StaplerProxy)).getTarget(),"/greeting")
-> evaluate(.getDynamic("greeting",...),"")
-> evaluate( 
:io.jenkins.plugins.sample.HelloWorldAction,"")
-> No matching rule was found on 
 for ""

 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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/41d6fcd1-7721-4191-b6a0-2e825fd575ee%40googlegroups.com.