I found this post
http://blog.bleathem.ca/2011/02/updating-weld-in-glassfish-31.html
This has solved my problem. Does anyone know when this fix will be
included in the glassfish 3.1 release?
Derek Knapp
/Software Engineer/
*itrac**MEDIA, Inc.*
1560 Queen Street East, Toronto, ON M4L 1E9 | Tel: 416.364.9444 |
Fax:416.364.9589
itrac_logo
On 11-03-04 11:26 AM, Derek Knapp wrote:
> I assume this fix will not be available in Glassfish 3.1 since the
> final version has already been released? Is there any way to upgrade
> weld?
>
> For a temporary solution, I am just not ending the conversation.
> Unfortunately then the cid is included in the redirect, and that
> screws up my hard work to make all my links book-markable.. but for
> now this is not the end of the world.
>
>
>
> Derek Knapp
> /Software Engineer/
> *itrac**MEDIA, Inc.*
> 1560 Queen Street East, Toronto, ON M4L 1E9 | Tel: 416.364.9444
> | Fax:416.364.9589
>
> itrac_logo
>
> On 11-03-03 07:58 PM, Roger Kitain wrote:
>> Hello Derek -
>>
>> I found this in the Weld Issue tracker:
>>
>> https://issues.jboss.org/browse/WELD-833
>>
>> -roger
>>>
>>> -------- Original Message --------
>>> Subject: java.util.ConcurrentModificationException
>>> Date: Thu, 03 Mar 2011 04:08:15 -0500
>>> From: Derek Knapp <derek_at_itracmedia.com>
>>> Reply-To: dev_at_glassfish.java.net
>>> To: dev_at_glassfish.java.net
>>>
>>>
>>>
>>> I have a simple command button
>>>
>>> <h:commandButton value="Create Form Event"
>>> action="#{formEventController.createFormEvent}"/>
>>>
>>> which calls the following simple action listener
>>>
>>> public void createFormEvent(ActionEvent event)
>>> {
>>> conversation.end();
>>> return "events?id=" + form.getId() + "&faces-redirect=true";
>>> }
>>>
>>> so basically I want a button that when clicked will end a conversation,
>>> and then redirect to a new page...
>>>
>>> this works ONCE, then every time after I see the following in my logs..
>>> (from the users point of view, everything worked properly.. when the
>>> button is clicked, the redirect works properly)
>>>
>>> I'm not sure if this is a glassfish issue, or CDI, or Mojarra.. but I
>>> figured I would try here 1st since I don't recall this problem when
>>> using 3.0.1 (I am using 3.1 now)
>>>
>>>
>>> SEVERE: java.util.ConcurrentModificationException
>>> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
>>> at java.util.HashMap$EntryIterator.next(HashMap.java:834)
>>> at java.util.HashMap$EntryIterator.next(HashMap.java:832)
>>> at
>>> org.jboss.weld.context.AbstractConversationContext.deactivate(AbstractConversationContext.java:250)
>>> at
>>> org.jboss.weld.jsf.WeldPhaseListener.deactivateConversations(WeldPhaseListener.java:131)
>>> at
>>> org.jboss.weld.jsf.WeldPhaseListener.afterPhase(WeldPhaseListener.java:96)
>>> at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
>>> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
>>> at
>>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
>>> at
>>> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>>> at
>>> net.balusc.http.multipart.MultipartFilter.doFilter(MultipartFilter.java:78)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
>>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
>>> at
>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
>>> at
>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
>>> at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
>>> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
>>> at java.lang.Thread.run(Thread.java:662)
>>>
>>> SEVERE: WebModule[]PWC1322: Error invoking requestDestroyed method on
>>> ServletRequestListener org.jboss.weld.servlet.WeldListener
>>> java.lang.IllegalStateException: Context is not active
>>> at
>>> org.jboss.weld.context.AbstractConversationContext.deactivate(AbstractConversationContext.java:263)
>>> at
>>> org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:125)
>>> at
>>> org.apache.catalina.core.StandardContext.fireRequestDestroyedEvent(StandardContext.java:4588)
>>> at
>>> org.apache.catalina.core.StandardHostValve.postInvoke(StandardHostValve.java:243)
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:328)
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
>>> at
>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
>>> at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
>>> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
>>> at java.lang.Thread.run(Thread.java:662)
>>>
>>
>>
>> --
>> roger.kitain_at_oracle.com
>> https://twitter.com/rogerk09
>> http://www.java.net/blogs/rogerk