dcsimg
is a bug of custom tag in j2ee-1.2.1?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zhou_zhou
Posted On:   Tuesday, July 17, 2001 07:57 PM

in java petstore, an abstract tag class com.sun.j2ee.blueprints.petstore.taglib.list.ListTag has two attribute setter classes setNumItems and setStartIndex. every children class must overload these two methods to fix bug in tomcat(following th comment in the source of petstore). now i am in a project following the pattern of petstore. i met this problem and cant resolve it inspite of overloading the setters. the followed exception are often but not always thrown. does anyone meet this problem of custom tag? and how to resolve it. thanks Error: 500 Internal Servlet Error: org.apache.jasper.JasperException: Unable to find setter method for attribute: numItems    More>>

in java petstore, an abstract tag class com.sun.j2ee.blueprints.petstore.taglib.list.ListTag has two attribute setter classes setNumItems and setStartIndex. every children class must overload these two methods to fix bug in tomcat(following th comment in the source of petstore).


now i am in a project following the pattern of petstore. i met this problem and cant resolve it inspite of overloading the setters. the followed exception are often but not always thrown.


does anyone meet this problem of custom tag? and how to resolve it. thanks



Error: 500
Internal Servlet Error:


org.apache.jasper.JasperException: Unable to find setter method for attribute: numItems

at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerator.java:186)

at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements(TagBeginGenerator.java:210)

at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java:279)

at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:728)

at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:190)

at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:159)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:173)

at org.apache.jasper.runtime.JspLoader$2.run(JspLoader.java:273)

at java.security.AccessController.doPrivileged(Native Method)

at org.apache.jasper.runtime.JspLoader.loadJSP(JspLoader.java:270)

at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:137)

at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:148)

at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)

at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:352)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)

at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)

at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)

at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)

at org.apache.tomcat.core.Context.handleRequest(Context.java:644)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)

at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)

at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)

at java.lang.Thread.run(Thread.java:484)

   <<Less
About | Sitemap | Contact