[jboss-user] [JBoss Seam] - Re: I stucked:CVS 07072007:IllegalStateException at startup

nfeybesse do-not-reply at jboss.com
Tue Jul 10 10:50:51 EDT 2007


I have a similar problem with an inexistant EventContext when destroy annoted method is called on a bean with Apllication scope.

I have changed the code in org.jboss.seam.web.Parameter :

 public Map<String, String[]> getRequestParameters()
  |    {
  |       ServletRequest servletRequest = ServletContexts.instance().getRequest();
  |       if ( servletRequest != null )
  |       {
  |          return servletRequest.getParameterMap();
  |       }
  |       return Collections.EMPTY_MAP;
  |    }

with

public Map<String, String[]> getRequestParameters()
  |    {
  |       if(Contexts.isEventContextActive())
  |       {
  |          ServletRequest servletRequest = ServletContexts.instance().getRequest();
  |          if ( servletRequest != null )
  |          {
  |             return servletRequest.getParameterMap();
  |          }
  |       }
  |       return Collections.EMPTY_MAP;
  |    }
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062502#4062502

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062502



More information about the jboss-user mailing list