Advertisement

07.09.2007 at 06:27AM PDT, ID: 22683149
[x]
Attachment Details

org.apache.jasper.JasperException: Invalid property

Asked by design_web in Java Standard Tag Library (JSTL) & Server Tags, J2EE, J2EE Frameworks

Tags: property, invalid

I 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.servlet.tags.BindTag] - <Invalid property 'subNumber' of bean class [com.account.bean.impl.People]: Getter for property 'subNumber' threw exception; nested exception is java.lang.reflect.InvocationTargetException: null>
org.springframework.beans.InvalidPropertyException: Invalid property 'subNumber' of bean class [com.account.bean.impl.People]: Getter for property 'subNumber' threw exception; nested exception is java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:657)
      at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:643)
      at org.springframework.validation.BindException.getFieldValue(BindException.java:335)
      at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:117)
      at org.springframework.web.servlet.tags.BindTag.doStartTagInternal(BindTag.java:115)
      at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:68)
      at org.apache.jsp.WEB_002dINF.jsp.index_jsp._jspService(index_jsp.java:191)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:97)
      at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
      at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:928)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:705)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:534)

------------------------------------------------------------------------------------------------------------
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.globalErrors}">
              <c:out value="${err.defaultMessage}"/>
              </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.errorMessage}"/>
            </spring:bind>
          </td>
            </tr>
            <tr>
             <td><input name="submit" type="submit" value="Search" /></td>
           </tr>
   </table>



Start Free Trial
[+][-]07.10.2007 at 12:37PM PDT, ID: 19457023

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2007 at 01:36PM PDT, ID: 19457495

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2007 at 01:27AM PDT, ID: 19460589

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2007 at 04:40AM PDT, ID: 19461517

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2007 at 12:23PM PDT, ID: 19465817

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Standard Tag Library (JSTL) & Server Tags, J2EE, J2EE Frameworks
Tags: property, invalid
Sign Up Now!
Solution Provided By: bpmurray
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.11.2007 at 06:13PM PDT, ID: 19468038

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32