Bookmark Topic Watch Topic
  • New Topic

Exception in JSP?  RSS feed

 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi i'm getting folliwing exception in JSP can any one help me to resolve it.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 29

26: int prev_startID = 1;
27: int prev_endID = 10;
28:
29: UserHelper helper = new UserHelper();
30: List users = helper.getUserNames(startID, endID);
31:
32: prev_startID = startID - 10;


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
 
Bupjae Lee
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Report post to moderator
The error message you got means your JSP fails to compile because of error from java compiler.

I think class UserHelper has some problem.

* Is UserHelper exist?
* Are you import package of UserHelper correctly?
* Isn't UserHelper abstract class nor interface?
* Does UserHelper have no-arg public constructor?
[ September 02, 2008: Message edited by: Bupjae Lee ]
 
vk jain
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Report post to moderator
Check UserHelper's constructor. Problem occurred while calling constructor. If compiler didn't find file then it will give ClassNotfoundException.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!