[
http://jira.jboss.com/jira/browse/JBSEAM-1430?page=all ]
Gavin King closed JBSEAM-1430.
------------------------------
Fix Version/s: 1.3.0.ALPHA
Resolution: Done
Assignee: Gavin King
This is a bug in the JSF RI's implementation of toArray() for the keySet() of the
request Map.
Fixed by doing:
public String[] getNames()
{
//yes, I know about the toArray() method,
//but there is a bug in the RI!
Set<String> keySet = map.keySet();
String[] array = new String[ keySet.size() ];
int i=0;
for (String key: keySet)
{
array[i++] = key;
}
return array;
}
In BasicContext.
NoSuchElementException in Tomcat
--------------------------------
Key: JBSEAM-1430
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1430
Project: JBoss Seam
Issue Type: Bug
Reporter: Christian Bauer
Assigned To: Gavin King
Fix For: 1.3.0.ALPHA
Exception after CVS update from this weekend (difference before and after weekend):
10:31:06,643 DEBUG [Lifecycle] flushing server-side conversation context
10:31:06,643 DEBUG [Lifecycle] flushing session context
10:31:06,643 DEBUG [Lifecycle] destroying event context
10:31:06,643 ERROR [SeamPhaseListener] uncaught exception
java.util.NoSuchElementException
at
org.apache.catalina.core.ApplicationHttpRequest$AttributeNamesEnumerator.nextElement(ApplicationHttpRequest.java:932)
at
com.sun.faces.context.BaseContextMap$BaseIterator.nextKey(ExternalContextImpl.java:642)
at
com.sun.faces.context.BaseContextMap$KeyIterator.next(ExternalContextImpl.java:684)
at
com.sun.faces.context.BaseContextMap$KeyIterator.next(ExternalContextImpl.java:668)
at java.util.AbstractCollection.toArray(AbstractCollection.java:176)
at org.jboss.seam.contexts.BasicContext.getNames(BasicContext.java:49)
at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:220)
at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:479)
at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:328)
at
org.jboss.seam.jsf.AbstractSeamPhaseListener.afterRender(AbstractSeamPhaseListener.java:213)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:110)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:293)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at
org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
at
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
at
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:395)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:60)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:60)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:60)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
at
org.jboss.seam.web.AbstractAjax4jsfFilter.doFilter(AbstractAjax4jsfFilter.java:35)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:127)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira