Hi!
I'm developing JSP Taglibs for a research project at our university. While
doing so I had some trouble with the setters of the Tags:
java.lang.NullPointerException
at
org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerat
or.java:196)
at
org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements
(TagBeginGenerator.java:291)
at
org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java
:360)
at
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J
spParseEventListener.java:773)
at
org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi
stener.java:220)
at
org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE
ventListener.java:175)
...
Now I had a look at the source code for that class line 196:
Method m = tc.getSetterMethod(attrName);
Class c[] = m.getParameterTypes();
and some lines later there is a check: if (m == null)
Shouldn't it come before the user of m?
Is there already a bugfix? by the way I use Tomcat 3.2 with JDK1.3
Allthough I've still a problem: The setter-methods are not found. I've
registered them correctly in the tld etc.
Are there any naming rules?
Sometimes if I change the name of the attribute in the class-file, tld and
the jsp-page it is running. But I don't understand why for example the
attribute-name 'connection' is not running but 'connect' does.....
Greetings
Ralph
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]