PlanetJava
Custom Search

java-stripes-user
[Top] [All Lists]

Flashscope nullpointer

Subject: Flashscope nullpointer
Date: Thu, 31 Aug 2006 18:03:28 +0200
Hi all,
I'm experiencing some problems using flashscope. (I'm on stripes 1.4) I created 
an actionbean called GroupActionBean with an open() method and modify() and one 
group.jsp
I open the group.jsp, modify something, submit the form, modify() is invoked 
and saves the bean, and it ends in:
        return new RedirectResolution("/Group.action").flash(this);
This closes my transaction and passes control on to the same bean, which will 
then invoke open(), which uses:
        return new ForwardResolution("group.jsp");
to get to the group.jsp
The first time I do this, it works fine.
All subsequent tries, however, fail, leaving me with the following stack trace 
(below). Modify() is invoked and the bean is stored but after the redirect it 
blows.
If I stop/start Tomcat, or even logout/login from scratch, the same behaviour: 
first modification works fine but the second and all subsequent modifies fail.
What could be the cause?
--just noticed that after a long wait (more than two minutes) I can modify once 
and then it fails once again.
Thanks,
Willem
net.sourceforge.stripes.exception.StripesServletException: Unhandled exception 
caught by the default exception handler.
net.sourceforge.stripes.exception.DefaultExceptionHandler.handle(DefaultExceptionHandler.java:40)
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:184)
        attend.hibernate.HibernateFilter.doFilter(HibernateFilter.java:70)
attend.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
causa raíz
java.lang.NullPointerException
        org.apache.catalina.connector.Request.parseParameters(Request.java:2339)
org.apache.catalina.connector.Request.getParameterValues(Request.java:1056)
org.apache.catalina.connector.RequestFacade.getParameterValues(RequestFacade.java:393)
javax.servlet.ServletRequestWrapper.getParameterValues(ServletRequestWrapper.java:188)
net.sourceforge.stripes.controller.StripesRequestWrapper.getParameterValues(StripesRequestWrapper.java:148)
net.sourceforge.stripes.controller.StripesRequestWrapper.getParameter(StripesRequestWrapper.java:157)
net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.getFieldsPresentInfo(DefaultActionBeanPropertyBinder.java:419)
net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.validateRequiredFields(DefaultActionBeanPropertyBinder.java:585)
net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.bind(DefaultActionBeanPropertyBinder.java:240)
net.sourceforge.stripes.controller.DispatcherHelper$3.intercept(DispatcherHelper.java:151)
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:157)
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:107)
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:154)
net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:73)
net.sourceforge.stripes.controller.DispatcherHelper.doBindingAndValidation(DispatcherHelper.java:148)
net.sourceforge.stripes.controller.DispatcherServlet.doBindingAndValidation(DispatcherServlet.java:217)
net.sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherServlet.java:142)
net.sourceforge.stripes.controller.DispatcherServlet.doGet(DispatcherServlet.java:61)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:181)
        attend.hibernate.HibernateFilter.doFilter(HibernateFilter.java:70)
attend.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
  • ForwardResolution addParameter
    • Re: ForwardResolution addParameter
      • Re: ForwardResolution addParameter
        • Re: ForwardResolution addParameter
        • Re: ForwardResolution addParameter
        • Re: ForwardResolution addParameter
        • Re: ForwardResolution addParameter
        • Re: ForwardResolution addParameter
        • Flashscope nullpointer,
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy