[JBossCache] - Re: Concurrency issue in OrderedSynchronizationHandler (2.0.
by FredrikJ
I just experienced what might be the same problem.
I started up 6 nodes and one node was using up all CPU without any real load on it. Dumping all stacks shows that all threads are parked except one which is stuck on map.get in OrderedSynchronizationHandler.
"ReceivingGameEventDaemon-1" prio=1 tid=0x092d5eb0 nid=0x5660 runnable [0x85421000..0x85421f30]
| at java.util.HashMap.get(HashMap.java:346)
| at org.jboss.cache.interceptors.OrderedSynchronizationHandler.getInstance(OrderedSynchronizationHandler.java:50)
| at org.jboss.cache.interceptors.TxInterceptor.registerHandler(TxInterceptor.java:901)
| at org.jboss.cache.interceptors.TxInterceptor.registerTransaction(TxInterceptor.java:877)
| at org.jboss.cache.interceptors.TxInterceptor.attachGlobalTransaction(TxInterceptor.java:342)
| at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:292)
| at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:131)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:81)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:62)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134856#4134856
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134856
18 years, 1 month
[JBoss jBPM] - Re: jBPM Console - login failed
by rsdickerson
I had to tweak the sql above a little bit for MS SQLServer. This worked for me.
SET IDENTITY_INSERT JBPM_ID_GROUP ON;
| INSERT INTO JBPM_ID_GROUP (ID_, CLASS_, NAME_, TYPE_, PARENT_ ) VALUES (1,'G','sales','organisation',NULL);
| INSERT INTO JBPM_ID_GROUP (ID_, CLASS_, NAME_, TYPE_, PARENT_ ) VALUES (2,'G','admin','security-role',NULL);
| INSERT INTO JBPM_ID_GROUP (ID_, CLASS_, NAME_, TYPE_, PARENT_ ) VALUES (3,'G','user','security-role',NULL);
| INSERT INTO JBPM_ID_GROUP (ID_, CLASS_, NAME_, TYPE_, PARENT_ ) VALUES (4,'G','hr','organisation',NULL);
| INSERT INTO JBPM_ID_GROUP (ID_, CLASS_, NAME_, TYPE_, PARENT_ ) VALUES (5,'G','manager','security-role',NULL);
| SET IDENTITY_INSERT JBPM_ID_GROUP OFF;
|
| SET IDENTITY_INSERT JBPM_ID_USER ON;
| INSERT INTO JBPM_ID_USER (ID_, CLASS_, NAME_, EMAIL_, PASSWORD_ ) VALUES (1,'U','user','user(a)sample.domain','user');
| INSERT INTO JBPM_ID_USER (ID_, CLASS_, NAME_, EMAIL_, PASSWORD_ ) VALUES (2,'U','manager','manager(a)sample.domain','manager');
| INSERT INTO JBPM_ID_USER (ID_, CLASS_, NAME_, EMAIL_, PASSWORD_ ) VALUES (3,'U','admin','admin(a)sample.domain','admin');
| INSERT INTO JBPM_ID_USER (ID_, CLASS_, NAME_, EMAIL_, PASSWORD_ ) VALUES (4,'U','shipper','shipper(a)sample.domain','shipper');
| SET IDENTITY_INSERT JBPM_ID_USER OFF;
|
| SET IDENTITY_INSERT JBPM_ID_MEMBERSHIP ON;
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (1,'M',NULL,NULL,2,4);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (2,'M',NULL,NULL,3,4);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (3,'M',NULL,NULL,4,4);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (4,'M',NULL,NULL,4,3);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (5,'M',NULL,NULL,1,3);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (6,'M',NULL,NULL,2,3);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (7,'M',NULL,NULL,3,3);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (8,'M',NULL,NULL,3,2);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (9,'M',NULL,NULL,2,2);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (10,'M',NULL,NULL,2,5);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (11,'M',NULL,'boss',2,1);
| INSERT INTO JBPM_ID_MEMBERSHIP (ID_, CLASS_, NAME_, ROLE_, USER_, GROUP_ ) VALUES (12,'M',NULL,NULL,1,1);
| SET IDENTITY_INSERT JBPM_ID_MEMBERSHIP OFF;
|
Scott
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134849#4134849
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134849
18 years, 1 month
[EJB/JBoss] - The session bean must implement either a remote home and rem
by rodosa
Hello!
I've a problem with an simple session bean. When I deploy this session bean it's thrown the following message:
| 14:14:21,641 WARN [verifier] EJB spec violation:
| Bean : JbpmFacade
| Section: 7.11.1
| Warning: The session bean must implement either a remote home and remote, or a l
| ocal home and a local interface or a service endpoint interface.
|
| 14:14:21,657 ERROR [MainDeployer] Could not create deployment: file:/C:/jbpm-jpd
| l-3.2.2/server/server/jbpm/deploy/ejb2.jar
| org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
| d, see above for error messages.
| at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
| .java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
| rServiceMBeanSupport.java:238)
| at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java
| :99)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
| create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
| ptor.java:91)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy26.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
| tScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
| canner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| run(AbstractDeploymentScanner.java:225)
|
My ejb-jar.xml is
| <?xml version="1.0" encoding="UTF-8"?>
| <ejb-jar id="ejb-jar_ID" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
| <display-name>
| earPEJB</display-name>
|
| <enterprise-beans>
| <session>
| <display-name>JbpmFacade</display-name>
| <ejb-name>JbpmFacade</ejb-name>
| <home>session.JbpmFacadeLocal</home>
| <remote>session.JbpmFacadeRemote</remote>
| <ejb-class>session.JbpmFacade</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| </session>
| </enterprise-beans>
|
| </ejb-jar>
|
and my jboss-xml
| <jboss>
| <enterprise-beans>
| <session>
| <ejb-name>JbpmFacade</ejb-name>
| <jndi-name>JbpmFacade</jndi-name>
| </session>
| </enterprise-beans>
| </jboss>
|
I'm deploying this session bean in jboss that includes jbpm3.2.2.
Any ideas about how to fix the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134841#4134841
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134841
18 years, 1 month
[JBoss jBPM] - Re: Fork Join and Async Nodes
by ffernandez
Hi Ronald van Kuijk
I have executed the example with the CVS HEAD and the error is the same. The action handler in the each node, throws the same Exception when executionContext.leaveNode() is executed.
| org.hibernate.exception.LockAcquisitionException: could not update: [org.jbpm.graph.exe.Token#235]
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:82)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2425)
| at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
| at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
| at org.jbpm.graph.node.Join.execute(Join.java:116)
| at org.jbpm.graph.def.Node.enter(Node.java:319)
| 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.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$663a82f3.enter(<generated>)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
|
|
|
| 189579 [:172.26.0.243:4] INFO DbPersistenceService:258 - optimistic locking failed
| 189579 [:172.26.0.243:4] INFO DbPersistenceService:258 - optimistic locking failed
| 189672 [:172.26.0.243:4] INFO Services:228 - problem closing service 'persistence': optimistic locking failed
| 189672 [:172.26.0.243:4] INFO Services:228 - problem closing service 'persistence': optimistic locking failed
| 189672 [:172.26.0.243:4] INFO JobExecutorThread:197 - problem committing job execution transaction: optimistic locking failed
| 189672 [:172.26.0.243:4] INFO JobExecutorThread:197 - problem committing job execution transaction: optimistic locking failed
| 189688 [:172.26.0.243:3] ERROR AbstractFlushingEventListener:301 - Could not synchronize database state with session
| org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#235]
| at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407)
| at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
| at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
| at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
| at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:256)
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:214)
| at org.jbpm.svc.Services.close(Services.java:224)
| at org.jbpm.JbpmContext.close(JbpmContext.java:139)
| at org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:193)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:64)
|
Any suggestion? Thanks in advanced!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134836#4134836
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134836
18 years, 1 month