You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by zeeman <ha...@fastmail.us> on 2012/07/05 04:04:14 UTC
Conversations broken on Tomee 1.1.0 Snapshot
I have been using Tomee 1.1 snapshot for a while and my project which uses
Seam 3.1 and Hibernate works well. After getting the latest snapshot 1.1
build today conversational beans stopped working in my app.
My bean:
@Named("createEvent")
@ConversationScoped
public class CreateEventAction implements Serializable {
@Inject
private Conversation conversation;
public String startCreateEvent() {
conversation.begin();
return "/createEvent.xhtml";
}
public void finish(){
//save the event and return view page
conversation.end();
return "eventHome";
}
}
Whenever I invoke startCreateEvent() I get the below error:
javax.enterprise.context.BusyConversationException: Propogated conversation
with cid=1 is used by other request. It creates a new transient conversation
at
org.apache.webbeans.jsf.WebBeansPhaseListener.beforePhase(WebBeansPhaseListener.java:130)
at
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:77)
at
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:158)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
com.sportivity.loaders.upload.SportivityFileUploadFilter.doFilter(SportivityFileUploadFilter.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:126)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:690)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:477)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Is it a bug introduced into latest builds or is is it my code? Thank!
--
View this message in context: http://openejb.979440.n4.nabble.com/Conversations-broken-on-Tomee-1-1-0-Snapshot-tp4656035.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Conversations broken on Tomee 1.1.0 Snapshot
Posted by zeeman <ha...@fastmail.us>.
Yes, this time I saw snapshot getting downloaded and it fixes the bug :)
Thank you for the quick fix. I'll keep using snapshots until 1.1 is out to
keep you guys posted on what gets broken. I love Tomee stack, my developers
love it. My app boots up in 16s where jBoss used to take 40sec.
--
View this message in context: http://openejb.979440.n4.nabble.com/Conversations-broken-on-Tomee-1-1-0-Snapshot-tp4656035p4656111.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Conversations broken on Tomee 1.1.0 Snapshot
Posted by Romain Manni-Bucau <rm...@gmail.com>.
snapshot of tomee deployed normally
- Romain
2012/7/6 Romain Manni-Bucau <rm...@gmail.com>
> Weird i made it working, maybe the snapshot is not up to date or i pushed
> change after the nighly deploy
> Le 6 juil. 2012 05:19, "zeeman" <ha...@fastmail.us> a écrit :
>
> Hi Romain,
>>
>> I have downloaded latest Tomee 1.1 snapshot using your maven plugin,
>> redeployed my app. Still the same error. Did you fix the class loader
>> issue?
>> Or is it something else?
>>
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/Conversations-broken-on-Tomee-1-1-0-Snapshot-tp4656035p4656077.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>
Re: Conversations broken on Tomee 1.1.0 Snapshot
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Weird i made it working, maybe the snapshot is not up to date or i pushed
change after the nighly deploy
Le 6 juil. 2012 05:19, "zeeman" <ha...@fastmail.us> a écrit :
> Hi Romain,
>
> I have downloaded latest Tomee 1.1 snapshot using your maven plugin,
> redeployed my app. Still the same error. Did you fix the class loader
> issue?
> Or is it something else?
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Conversations-broken-on-Tomee-1-1-0-Snapshot-tp4656035p4656077.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: Conversations broken on Tomee 1.1.0 Snapshot
Posted by zeeman <ha...@fastmail.us>.
Hi Romain,
I have downloaded latest Tomee 1.1 snapshot using your maven plugin,
redeployed my app. Still the same error. Did you fix the class loader issue?
Or is it something else?
--
View this message in context: http://openejb.979440.n4.nabble.com/Conversations-broken-on-Tomee-1-1-0-Snapshot-tp4656035p4656077.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Conversations broken on Tomee 1.1.0 Snapshot
Posted by Romain Manni-Bucau <rm...@gmail.com>.
pushed some enhancement, if you can give it another try please
- Romain
2012/7/5 Romain Manni-Bucau <rm...@gmail.com>
> thanks for the sample,
>
> i think i understand the issue, will try to push a fix quickly, shouldnt
> be too complicated
>
> - Romain
>
>
>
> 2012/7/5 zeeman <ha...@fastmail.us>
>
>> Hi,
>>
>> No, there is only one thread. I have created a simple project which
>> reproduces the issue.
>>
>> To reproduce:
>> 1-get the code from https://github.com/z00/test
>>
>> 2- import into Eclipse as a maven project (it's a dynamic web project)
>>
>> 3- deploy to Tomee 1.1.0 snapshot
>>
>> 4- to got localhost:8080/test
>>
>> 5- click on Start Event, you'll be taken to another page
>> 6- click on Finalize event, you should see the exception.
>>
>> Thanks!
>>
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/Conversations-broken-on-Tomee-1-1-0-Snapshot-tp4656035p4656066.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>
>
Re: Conversations broken on Tomee 1.1.0 Snapshot
Posted by Romain Manni-Bucau <rm...@gmail.com>.
thanks for the sample,
i think i understand the issue, will try to push a fix quickly, shouldnt be
too complicated
- Romain
2012/7/5 zeeman <ha...@fastmail.us>
> Hi,
>
> No, there is only one thread. I have created a simple project which
> reproduces the issue.
>
> To reproduce:
> 1-get the code from https://github.com/z00/test
>
> 2- import into Eclipse as a maven project (it's a dynamic web project)
>
> 3- deploy to Tomee 1.1.0 snapshot
>
> 4- to got localhost:8080/test
>
> 5- click on Start Event, you'll be taken to another page
> 6- click on Finalize event, you should see the exception.
>
> Thanks!
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Conversations-broken-on-Tomee-1-1-0-Snapshot-tp4656035p4656066.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: Conversations broken on Tomee 1.1.0 Snapshot
Posted by zeeman <ha...@fastmail.us>.
Hi,
No, there is only one thread. I have created a simple project which
reproduces the issue.
To reproduce:
1-get the code from https://github.com/z00/test
2- import into Eclipse as a maven project (it's a dynamic web project)
3- deploy to Tomee 1.1.0 snapshot
4- to got localhost:8080/test
5- click on Start Event, you'll be taken to another page
6- click on Finalize event, you should see the exception.
Thanks!
--
View this message in context: http://openejb.979440.n4.nabble.com/Conversations-broken-on-Tomee-1-1-0-Snapshot-tp4656035p4656066.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Conversations broken on Tomee 1.1.0 Snapshot
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,
Sounds like if you were using the same conversation in multiple threads. Is
it possible?
If no any sample to share?
- Romain
Le 5 juil. 2012 04:04, "zeeman" <ha...@fastmail.us> a écrit :
> I have been using Tomee 1.1 snapshot for a while and my project which uses
> Seam 3.1 and Hibernate works well. After getting the latest snapshot 1.1
> build today conversational beans stopped working in my app.
>
> My bean:
>
> @Named("createEvent")
> @ConversationScoped
> public class CreateEventAction implements Serializable {
> @Inject
> private Conversation conversation;
>
> public String startCreateEvent() {
> conversation.begin();
> return "/createEvent.xhtml";
> }
>
> public void finish(){
> //save the event and return view page
> conversation.end();
> return "eventHome";
> }
> }
>
> Whenever I invoke startCreateEvent() I get the below error:
>
> javax.enterprise.context.BusyConversationException: Propogated conversation
> with cid=1 is used by other request. It creates a new transient
> conversation
> at
>
> org.apache.webbeans.jsf.WebBeansPhaseListener.beforePhase(WebBeansPhaseListener.java:130)
> at
>
> org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:77)
> at
>
> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:158)
> at
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
>
> com.sportivity.loaders.upload.SportivityFileUploadFilter.doFilter(SportivityFileUploadFilter.java:66)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:126)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:690)
> at
>
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:477)
> at
>
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
> at
>
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
> at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
> at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> at
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
> at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
> at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> at
>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
> at
>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
> at
>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Unknown Source)
>
> Is it a bug introduced into latest builds or is is it my code? Thank!
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Conversations-broken-on-Tomee-1-1-0-Snapshot-tp4656035.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>