Thanks, I removed the @Begin and @End annotations but no joy.

The stack trace is much the same.  The exception is thrown when calling 
org.jboss.seam.core.ManagedJbpmContext.getJbpmContext(). 

I inserted breakpoints in org.jboss.seam.interceptors.TransactionInterceptor 
but found that the exception is being thrown after the interceptor has finished 
doing it's work.  I modified Seam and annotated 
ManagedJbpmContext.getJbpmContext() with @Transactional to see what would 
happen and found that the behaviour was the same.

Admitedly, I'm at the limits of my (v. limited) understanding here.  As far as 
I can tell the task is being ended; I'm just getting this annoying exception.

Here is the full stack trace:


  | java.lang.IllegalStateException: JbpmContext may only be used inside a 
transaction
  |         at 
org.jboss.seam.core.ManagedJbpmContext.getJbpmContext(ManagedJbpmContext.java:71)
  |         at sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
  |         at 
org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:82)
  |         at 
org.jboss.seam.Component.callComponentMethod(Component.java:1612)        
  |         at org.jboss.seam.Component.unwrap(Component.java:1633)
  |         at org.jboss.seam.Component.getInstance(Component.java:1465)
  |         at org.jboss.seam.Component.getInstance(Component.java:1433)
  |         at org.jboss.seam.Component.getInstance(Component.java:1415)
  |         at 
org.jboss.seam.core.ManagedJbpmContext.instance(ManagedJbpmContext.java:112)
  |         at 
org.jboss.seam.core.ProcessInstance.getProcessInstance(ProcessInstance.java:42)
  |         at 
org.jboss.seam.core.ProcessInstance$$EnhancerByCGLIB$$fdc4d28.CGLIB$getProcessInstance$0(<generated>)
  |         at 
org.jboss.seam.core.ProcessInstance$$EnhancerByCGLIB$$fdc4d28$$FastClassByCGLIB$$8ec14899.invoke(<generated>)
  |         at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
  |         at 
org.jboss.seam.interceptors.JavaBeanInterceptor$3.proceed(JavaBeanInterceptor.java:187)
  |         at 
org.jboss.seam.ejb.SeamInterceptor.invokeInContexts(SeamInterceptor.java:220)
  |         at 
org.jboss.seam.ejb.SeamInterceptor.invoke(SeamInterceptor.java:186)
  |         at 
org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:173)
  |         at 
org.jboss.seam.interceptors.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:158)
  |         at 
org.jboss.seam.interceptors.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:62)
  |         at 
org.jboss.seam.core.ProcessInstance$$EnhancerByCGLIB$$fdc4d28.getProcessInstance(<generated>)
  |         at sun.reflect.GeneratedMethodAccessor171.invoke(Unknown Source)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
  |         at 
org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:82)
  |         at org.jboss.seam.Component.callComponentMethod(Component.java:1612)
  |         at org.jboss.seam.Component.unwrap(Component.java:1633)
  |         at org.jboss.seam.Component.getInstance(Component.java:1465)
  |         at org.jboss.seam.Component.getInstance(Component.java:1433)
  |         at org.jboss.seam.Component.getInstance(Component.java:1415)
  |         at 
org.jboss.seam.core.ProcessInstance.instance(ProcessInstance.java:58)
  |         at 
org.jboss.seam.contexts.BusinessProcessContext.getProcessInstance(BusinessProcessContext.java:210)
  |         at 
org.jboss.seam.contexts.BusinessProcessContext.getContextInstance(BusinessProcessContext.java:197)
  |         at 
org.jboss.seam.contexts.BusinessProcessContext.getNamesFromContext(BusinessProcessContext.java:103)
  |         at 
org.jboss.seam.contexts.BusinessProcessContext.getNames(BusinessProcessContext.java:92)
  |         at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:181)
  |         at 
org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:362)
  |         at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:272)
  |         at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:108)
  |         at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
  |         at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
  |         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:34)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  |         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  |         at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  |         at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  |         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  |         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  |         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  |         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  |         at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  |         at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  |     at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  |         at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  |         at java.lang.Thread.run(Thread.java:595)
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977191
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to