It's not in the code you're showing us. I just created a new plugin that consists of just the following (+ imports in the code, and non-code boilerplate from the archetype)…
------
@Extension
public class MyRootAction implements RootAction {
@Override
public String getIconFileName() {
return "document.png";
}
@Override
public String getDisplayName() {
return "My Root Action";
}
@Override
public String getUrlName() {
return "myroot";
}
public void doIndex(StaplerRequest req, StaplerResponse rsp) throws IOException {
rsp.sendError(500, "This message shown by doIndex");
}
}
------
And when clicking the side panel link, the expected happens:
------
HTTP ERROR 500
Problem accessing /jenkins/myroot/. Reason:
This message shown by doIndex
Powered by Jetty://
------
Are you sure it doesn't execute your method?
> --
> 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-de...@googlegroups.com.