Struts/DynaValidatorFormError

HomePage | Struts | RecentChanges | Preferences

No diff available--this is the first major revision. (no other diffs)

struts-config.xml was changed from

      <form-bean name="assignmentRequestForm"
                 type="org.apache.struts.action.DynaActionForm">

to
      <form-bean name="assignmentRequestForm"
                 type="org.apache.struts.action.DynaValidatorForm">

Note the incorrect package name

which resulted in the ugly NPE below. An incorrect class name should result in an error message that helps you fix the problem.

14:49:51,817 - DEBUG org.apache.struts.chain.ComposableRequestProcessor - Using processing chain for this request
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ActionCommandBase - Executing org.apache.struts.chain.commands.ExceptionCatcher
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ActionCommandBase - Executing org.apache.struts.chain.commands.servlet.SelectLocale
14:49:51,817 - DEBUG org.apache.struts.chain.commands.AbstractSelectLocale - retrieve config...
14:49:51,817 - DEBUG org.apache.struts.chain.commands.AbstractSelectLocale - set context locale to en_US
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ActionCommandBase - Executing org.apache.struts.chain.commands.servlet.RequestNoCache
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ActionCommandBase - Executing org.apache.struts.chain.commands.servlet.SetContentType
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ActionCommandBase - Executing org.apache.struts.chain.commands.servlet.SelectAction
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ActionCommandBase - Executing org.apache.struts.chain.commands.servlet.AuthorizeAction
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ActionCommandBase - Executing org.apache.struts.chain.commands.CreateActionForm
14:49:51,817 - DEBUG org.apache.struts.chain.commands.CreateActionForm - Look up form-bean assignmentRequestForm
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ExceptionCatcher - Attempting to handle a thrown exception
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ExceptionCatcher - Calling exceptionCommand 'servlet-exception'
14:49:51,817 - DEBUG org.apache.struts.chain.commands.ActionCommandBase - Executing org.apache.struts.chain.commands.servlet.ExceptionHandler
14:49:51,817 - DEBUG org.apache.struts.chain.commands.AbstractExceptionHandler - See if actionConfig ActionConfig[cancellable=falsepath=/requestAssignmentvalidate=true,input=request.assignment,name=assignmentRequestForm,parameter=default=unspecified,addStaff,deleteStaff,userAction,update,scope=session,type=edu.asu.vpia.benweb.EditAssignmentRequestAction has an exceptionConfig for java.lang.NullPointerException
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look locally for java.lang.NullPointerException
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look globally for java.lang.NullPointerException
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look locally for java.lang.RuntimeException
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look globally for java.lang.RuntimeException
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look locally for java.lang.Exception
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look globally for java.lang.Exception
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look locally for java.lang.Throwable
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look globally for java.lang.Throwable
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look locally for java.lang.Object
14:49:51,817 - DEBUG org.apache.struts.config.ActionConfig - findException: look globally for java.lang.Object
14:49:51,832 - WARN org.apache.struts.chain.commands.AbstractExceptionHandler - Unhandled exception
java.lang.NullPointerException
	at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:286)
	at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:350)
	at org.apache.struts.chain.commands.CreateActionForm.execute(CreateActionForm.java:89)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:175)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:446)
	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:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.webapp.BenefactorAccessFilter.doFilter(BenefactorAccessFilter.java:236)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.benweb.LocalhostFilter.doFilter(LocalhostFilter.java:113)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.benweb.MaintenanceFilter.doFilter(MaintenanceFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
14:49:51,832 - WARN org.apache.struts.chain.commands.ExceptionCatcher - Exception from exceptionCommand 'servlet-exception'
java.lang.NullPointerException
	at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:286)
	at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:350)
	at org.apache.struts.chain.commands.CreateActionForm.execute(CreateActionForm.java:89)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:175)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:446)
	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:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.webapp.BenefactorAccessFilter.doFilter(BenefactorAccessFilter.java:236)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.benweb.LocalhostFilter.doFilter(LocalhostFilter.java:113)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.benweb.MaintenanceFilter.doFilter(MaintenanceFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
14:49:51,832 - ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/benweb-dev].[action] - Servlet.service() for servlet action threw exception
java.lang.NullPointerException
	at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:286)
	at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:350)
	at org.apache.struts.chain.commands.CreateActionForm.execute(CreateActionForm.java:89)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:175)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:446)
	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:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.webapp.BenefactorAccessFilter.doFilter(BenefactorAccessFilter.java:236)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.benweb.LocalhostFilter.doFilter(LocalhostFilter.java:113)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.benweb.MaintenanceFilter.doFilter(MaintenanceFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
14:49:51,832 - ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/benweb-dev].[action] - Servlet.service() for servlet action threw exception
java.lang.NullPointerException
	at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:286)
	at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:350)
	at org.apache.struts.chain.commands.CreateActionForm.execute(CreateActionForm.java:89)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:175)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:446)
	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:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.webapp.BenefactorAccessFilter.doFilter(BenefactorAccessFilter.java:236)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.benweb.LocalhostFilter.doFilter(LocalhostFilter.java:113)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at edu.asu.vpia.benweb.MaintenanceFilter.doFilter(MaintenanceFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)

HomePage | Struts | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited May 30, 2006 3:04 pm by WendySmoak (diff)
Search: