[
https://issues.jboss.org/browse/JBSEAM-5061?page=com.atlassian.jira.plugi...
]
Sebastian Hort commented on JBSEAM-5061:
----------------------------------------
hi,
no of course not,
but our application is called from several external systems and sometimes the value of a
param is not filled.
the NSEE causes our application to show the errorpage...
the problem is, i cant build a filter thats removes the params without values from
javax.servlet.ServletRequest.getParameterMap() - cause the map is immutable.
Martin Kouba said here (
https://community.jboss.org/message/778320#778320):
NoSuchElementException is thrown because there is no "next" token available -
see java.util.StringTokenizer.nextToken() javadoc. FacesManager does not take into account
params without values... it seems like a bug since no RFC (HTTP, URI, ...) requires params
to have values (or rather does not define query format at all). Please raise an issue here
FacesManager.interpolateAndRedirect throws NoSuchElementException on
http-Parameter without value
-------------------------------------------------------------------------------------------------
Key: JBSEAM-5061
URL:
https://issues.jboss.org/browse/JBSEAM-5061
Project: Seam 2
Issue Type: Bug
Components: Framework
Affects Versions: 2.1.2.GA
Environment: JBOSS AS 4.2.3, Richfaces 3.3.3.Final
Reporter: Sebastian Hort
a http-call with a http-Parameter without a value (param2)
like
http://host/applikation?param1=value¶m2=¶m3=value3
throws
java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
at
org.jboss.seam.faces.FacesManager.interpolateAndRedirect(FacesManager.java:91)
at
org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:36)
at org.jboss.seam.navigation.Pages.handleOutcome(Pages.java:652)
at org.jboss.seam.navigation.Page.preRender(Page.java:295)
at org.jboss.seam.navigation.Pages.preRender(Pages.java:350)
at
org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:561)
at
org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:472)
at
org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:148)
at
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:118)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira