[jboss-user] [JBoss Seam] - Seam with Jbpm - Operation not allowed.

trouby do-not-reply at jboss.com
Thu Oct 5 12:29:07 EDT 2006


Hey,

I am trying to run SEAM with JBPM over Glassfish,
Well, after fighting with some missing jars and confs it seems like the application is deployed fine :)


When I try to execute a method that is annotated with @CreateProcess(definition="mydefinition") I get an "Operation not allowed" exception,

I assume this is related to transactions, but I have no clue why this is happening, also it might be a JBPM issue and not SEAM's, so I hope I didn't misake by choosing seam's forum.

here's the full stack trace:

  |         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
  |         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
  |         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
  |         at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
  | Caused by: java.lang.IllegalStateException: Operation not allowed.
  |         at com.sun.enterprise.distributedtx.UserTransactionImpl.checkUserTransactionMethodAccess(UserTransactionImpl.java:112)
  |         at com.sun.enterprise.distributedtx.UserTransactionImpl.getStatus(UserTransactionImpl.java:247)
  |         at org.jboss.seam.util.Transactions.isTransactionActiveOrMarkedRollback(Transactions.java:30)
  |         at org.jboss.seam.core.ManagedJbpmContext.getJbpmContext(ManagedJbpmContext.java:69)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         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:13)
  |         at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
  |         at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
  |         at org.jboss.seam.Component.unwrap(Component.java:1350)
  |         at org.jboss.seam.Component.getInstance(Component.java:1276)
  |         at org.jboss.seam.Component.getInstance(Component.java:1253)
  |         at org.jboss.seam.Component.getInstance(Component.java:1235)
  |         at org.jboss.seam.core.ManagedJbpmContext.instance(ManagedJbpmContext.java:112)
  |         at org.jboss.seam.interceptors.BusinessProcessInterceptor.createProcess(BusinessProcessInterceptor.java:131)
  |         at org.jboss.seam.interceptors.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:107)
  |         at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:60)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         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:13)
  |         at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
  |         at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
  |         at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         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:13)
  |         at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
  |         at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
  |         at org.jboss.seam.ejb.SeamInterceptor.aroundInvokeInContexts(SeamInterceptor.java:73)
  |         at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:45)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:505)
  |         at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:415)
  |         at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:189)
  |         at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3862)
  |         at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
  |         ... 51 more
  | |#]
  | 


here's my jbpm.cfg.xml file

  | <jbpm-configuration>
  |   <jbpm-context>
  |     <service name="persistence">
  |        <factory>
  |           <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
  |              <field name="isTransactionEnabled"><false/></field>
  |           </bean>
  |        </factory>
  |     </service>
  |     <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
  |     <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
  |     <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
  |     <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
  |   </jbpm-context>
  | </jbpm-configuration>
  | 


Any idea?

Thanks a lot,

Asaf.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976342



More information about the jboss-user mailing list