This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JSP and the fly likes bean not right Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "bean not right" Watch "bean not right" New topic

bean not right

White brendan

Joined: Jan 10, 2003
Posts: 6
Hi, I am getting the following error when requesting a .jsp:
type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: com.eclinck.web.UserBean.setID(Ljava/lang/String V
at org.apache.jasper.servlet.JspServletWrapper.service(
I can find absolutely no reason for this problem. Here is my code (first the .jsp segment)
statement = connection.getConnection().createStatement();
result = statement.executeQuery(sql);
if ( {
System.out.println("User Found in db");
It is only at the setContactNumber() method, and any method thereafter that the error occurs. The bean code is right, with all the methods set(x) accepting String parameters. Even when I hard code string (instead of retrieving from db) I still get the same error on any method except the first four.
any help would be appreciated
White brendan

Joined: Jan 10, 2003
Posts: 6
Sorry, the setContactNumber(String x) and other methods shouldn't be commented out
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: bean not right
It's not a secret anymore!