pojosontheweb / woko

POJOs on the Web !
http://www.pojosontheweb.com
Apache License 2.0
9 stars 1 forks source link

registration form validation broken #183

Closed vankeisb closed 11 years ago

vankeisb commented 11 years ago

Validation seems broken, NPE is thrown (see below) when submitting with blank registration form.

Hot to reproduce :

$> woko init
...
$> woko start

Then go to : http://.../myapp/register

And submit the form with blank values.

vankeisb commented 11 years ago
|  org.apache.jasper.JasperException: java.lang.NullPointerException
|   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:402)
|   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
|   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
|   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
|   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
|   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
|   at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
|   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
|   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
|   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
|   at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
|   at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:997)
|   at org.apache.jsp.tag.web.woko.includeFacet_tag.doTag(org.apache.jsp.tag.web.woko.includeFacet_tag:103)
|   at org.apache.jsp.WEB_002dINF.woko.ext.usermanagement.registerFragment_jsp._jspService(org.apache.jsp.WEB_002dINF.woko.ext.usermanagement.registerFragment_jsp:345)
|   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
|   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
|   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
|   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
|   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
|   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
|   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
|   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
|   at net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:397)
|   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
|   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
|   at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
|   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
|   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
|   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
|   at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
|   at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
|   at net.sourceforge.stripes.action.ForwardResolution.execute(ForwardResolution.java:110)
|   at net.sourceforge.stripes.controller.DispatcherHelper$7.intercept(DispatcherHelper.java:497)
|   at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:158)
|   at woko.actions.WokoExceptionInterceptor.intercept(WokoExceptionInterceptor.java:19)
|   at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
|   at net.sourceforge.stripes.controller.HttpCacheInterceptor.intercept(HttpCacheInterceptor.java:99)
|   at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
|   at net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
|   at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
|   at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)
|   at net.sourceforge.stripes.controller.DispatcherHelper.executeResolution(DispatcherHelper.java:491)
|   at net.sourceforge.stripes.controller.DispatcherServlet.executeResolution(DispatcherServlet.java:286)
|   at net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:170)
|   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
|   at net.sourceforge.stripes.controller.DynamicMappingFilter$2.doFilter(DynamicMappingFilter.java:431)
|   at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:260)
|   at net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:418)
|   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
|   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
|   at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
|   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
|   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
|   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
|   at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
|   at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
|   at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
|   at org.mortbay.jetty.Server.handle(Server.java:324)
|   at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
|   at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
|   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
|   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
|   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
|   at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
|   at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
|  Caused by: java.lang.NullPointerException
|   at org.apache.jsp.WEB_002dINF.woko.jsp.all.renderPropertiesEdit_jsp._jspService(org.apache.jsp.WEB_002dINF.woko.jsp.all.renderPropertiesEdit_jsp:124)
|   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
|   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
|   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
|   ... 64 more
|