What is the (?) for? Did you mean to put something else?
Main Topics
Browse All TopicsI get this error when I try to access my index.jsp page. I'm using jstl, spring, hibernate and I'm a beginner - so please explain if you ask me a question.
I know it will be hard to figure this out with out looking at all the code but if you have any ideas it would be greatly appreciated. If you need to see more of the code just ask and I'll post it. Thanks.
Here's the stacktrace
2007-07-09 07:45:07,321 ERROR [org.springframework.web.s
org.springframework.beans.
java.lang.reflect.Invocati
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.springframework.beans.
at org.springframework.beans.
at org.springframework.valida
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.apache.jsp.WEB_002dINF
at org.apache.jasper.runtime.
at javax.servlet.http.HttpSer
at org.apache.jasper.servlet.
at org.apache.jasper.servlet.
at org.apache.jasper.servlet.
at javax.servlet.http.HttpSer
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at javax.servlet.http.HttpSer
at javax.servlet.http.HttpSer
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.C
at org.apache.coyote.tomcat5.
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at org.apache.tomcat.util.thr
at java.lang.Thread.run(Threa
--------------------------
Getter and Setter
public String getSubNumber() {
return subNumber;
}
public void setSubNumber(String subNumber) {
this.subNumber = subNumber;
}
--------------------------
HTML JSTL etc
<form action="index.jsp" method="post">
<table cellpadding="0" cellspacing="0">
<tr><td> <spring:hasBindErrors name="People">
<c:forEach var="err" items="${errors.globalErro
<c:out value="${err.defaultMessag
</c:forEach>
</spring:hasBindErrors>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0">
<tr>
<td>Sub Number</td>
</tr>
<tr>
<td><spring:bind path="People.subNumber">
<input name="subNumber" value="<c:out value="${status.value}"/>"
<c:out value="${status.errorMessa
</spring:bind>
</td>
</tr>
<tr>
<td><input name="submit" type="submit" value="Search" /></td>
</tr>
</table>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks for the info. but it didn't work. I"m getting the same error.
ERROR [org.springframework.web.s
Well, what's happening is that you're getting an exception on your <spring:bind> because the getSubNumber method is throwing an exception. I guess you should really catch that exception to see what it is - perhaps something like:
public String getSubNumber() {
try {
return subNumber;
} catch (Exception e) {
System.out.println("******
}
}
One other thing that may be at issue here is the description of the bean - does that match the signatures of the methods?
Ok that gives me something I can work with, it told me that SubNumber isn't the problem. Even though, the stracktrace said it was the problem. It's another form element called attendDate. By the way, I'm creating this app to learn something. I'm not a big time Java guy in case you haven't noticed. Thank You for your help. Almost everything helps when working with Java, shew what a mess.
Business Accounts
Answer for Membership
by: bpmurrayPosted on 2007-07-10 at 12:37:35ID: 19457023
Try changing it like this:
public String getSubNumber() {
return subNumber ? subNumber : new String("");
}