Parameter name unavailable neither in the code nor in annotation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Parameter name unavailable neither in the code nor in annotation

Michael Donohue
I'm using the 'field' attribute for the first time, and I'm running into trouble with the validation code.
<f:textbox field="myfield">

Clearly the stapler is finding my validation code, since without the method, no checking happens and no errors occur. However, when I add my
doCheck...(@QueryParameter String value) method, I get this stack trace. I've searched for information on the field attribute, but had
trouble finding anything. I've also searched for the error message, which I've put in the subject line of this thread, and nothing shows up.
What is this error message trying to tell me?

java.lang.IllegalArgumentException: Parameter name unavailable neither in the code nor in annotation
at org.kohsuke.stapler.AnnotationHandler$2.parse(AnnotationHandler.java:64)
at org.kohsuke.stapler.AnnotationHandler$2.parse(AnnotationHandler.java:59)
at org.kohsuke.stapler.AnnotationHandler.handle(AnnotationHandler.java:34)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:71)