Cant Deploy BPM Project(With Timer Based Flows) with Quartz using JDBCStore Standalone Mode with RuntimeManager Singleton
sanjay05222 Oct 30, 2015 5:32 PMHi Guys ,
Versions information : Jboss 7.1.0.Final , Jbpmn 6.2.0Final
I tried to integrate quartz with the JBPM kie bench using JDBCStore with oracle as database . I configured the quartz for standalone instance taking hints from the Maciej Blog and documentation.
I could see that Quartz Scheduler is getting instantiated but when I try to deploy my project which has some flows with timers as start event , they are not getting deployed and fails on wierd error.
This is what I have been doing , any help would be appreciated.
- Without Quartz, Standalone , with Singleton RuntimeManager Deployment information ( All GOOD WORKING FINE )
attached the log , standalone-server-singleton-process-without-quartz.zip everything goes fine and the timer uses the in memory quartz instance of scheduler and is able to invoke the flows and every goes fine.
2. With Quartz : Standalone with PER_REQUEST RuntimeManager (Project Get Deployed but Timers don't get Triggered )
Deployment happens but the scheduler doesnt work at all.
3. With Quartz - With Singleton RuntimeManager Standalone mode ( Deployment itself Fails).
attached the log with standalone-server-with-quartz-notdeploying-project-with-timerflows.zip
Errors out with below
14:11:42,491 DEBUG [org.drools.persistence.jta.JtaTransactionManager] (http--127.0.0.1-8080-3) JTA TransactionManager found at fallback JNDI location [java:/TransactionManager]
14:11:42,539 DEBUG [org.drools.persistence.jta.JtaTransactionManager] (http--127.0.0.1-8080-3) JTA TransactionSynchronizationRegistry found at default JNDI location [java:comp/TransactionSynchronizationRegistry]
14:11:42,549 DEBUG [org.drools.persistence.jta.TransactionLockInterceptor] (http--127.0.0.1-8080-3) Transaction lock interceptor enabled false
14:11:42,584 DEBUG [org.drools.persistence.SingleSessionCommandService] (http--127.0.0.1-8080-3) Instantiating JtaTransactionManager
14:11:42,593 DEBUG [org.drools.persistence.jta.JtaTransactionManager] (http--127.0.0.1-8080-3) No JTA TransactionManager found at fallback JNDI location [java:comp/TransactionManager]
14:11:42,605 DEBUG [org.drools.persistence.jta.JtaTransactionManager] (http--127.0.0.1-8080-3) No JTA TransactionManager found at fallback JNDI location [java:appserver/TransactionManager]
14:11:42,635 DEBUG [org.drools.persistence.jta.JtaTransactionManager] (http--127.0.0.1-8080-3) No JTA TransactionManager found at fallback JNDI location [java:pm/TransactionManager]
14:11:42,649 DEBUG [org.drools.persistence.jta.JtaTransactionManager] (http--127.0.0.1-8080-3) JTA TransactionManager found at fallback JNDI location [java:/TransactionManager]
14:11:42,662 DEBUG [org.drools.persistence.jta.JtaTransactionManager] (http--127.0.0.1-8080-3) JTA TransactionSynchronizationRegistry found at default JNDI location [java:comp/TransactionSynchronizationRegistry]
14:11:42,719 DEBUG [org.jbpm.process.core.timer.impl.QuartzSchedulerService] (http--127.0.0.1-8080-3) Scheduling timer with name StartProcess-mds.PublishExpectedEnergyFlow-1
14:11:42,737 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: getConnection(null, null) [3/20]
14:11:42,752 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: returnConnection(570cb40e, false) [3/19]
14:11:42,778 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: getConnection(null, null) [3/20]
14:11:42,791 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: returnConnection(570cb40e, false) [3/19]
14:11:42,799 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: getConnection(null, null) [3/20]
14:11:42,812 DEBUG [org.quartz.impl.jdbcjobstore.StdRowLockSemaphore] (http--127.0.0.1-8080-3) Lock 'TRIGGER_ACCESS' is desired by: http--127.0.0.1-8080-3
14:11:42,825 DEBUG [org.quartz.impl.jdbcjobstore.StdRowLockSemaphore] (http--127.0.0.1-8080-3) Lock 'TRIGGER_ACCESS' is being obtained: http--127.0.0.1-8080-3
14:11:42,836 DEBUG [org.quartz.impl.jdbcjobstore.StdRowLockSemaphore] (http--127.0.0.1-8080-3) Lock 'TRIGGER_ACCESS' given to: http--127.0.0.1-8080-3
14:11:42,940 DEBUG [org.quartz.impl.jdbcjobstore.StdRowLockSemaphore] (http--127.0.0.1-8080-3) Lock 'TRIGGER_ACCESS' returned by: http--127.0.0.1-8080-3
14:11:42,945 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: returnConnection(570cb40e, false) [3/19]
14:11:42,955 WARN [org.kie.remote.services.cdi.DeploymentInfoBean] (http--127.0.0.1-8080-3) RuntimeManager for domain com.caiso.mdsbpm:mdsbpm:1.0 does not exist and can not be undeployed.
14:11:42,968 ERROR [org.kie.remote.services.rest.jaxb.DynamicJaxbContext] (http--127.0.0.1-8080-3) JAXB context instance could not be found when undeploying deployment 'com.caiso.mdsbpm:mdsbpm:1.0'!
14:11:42,992 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: getConnection(null, null) [3/20]
14:11:43,012 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: returnConnection(570cb40e, false) [3/19]
14:11:43,026 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: getConnection(null, null) [3/20]
14:11:43,086 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http--127.0.0.1-8080-3) Jbpm-ds-pool: returnConnection(570cb40e, false) [3/19]
14:11:43,097 INFO [org.jbpm.kie.services.impl.store.DeploymentSynchronizer] (http--127.0.0.1-8080-3) Deployment unit com.caiso.mdsbpm:mdsbpm:1.0 removed successfully
14:11:43,105 WARN [org.jbpm.kie.services.impl.KModuleDeploymentService] (http--127.0.0.1-8080-3) Unexpected error while deploying unit com.caiso.mdsbpm:mdsbpm:1.0
14:11:43,122 ERROR [org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl] (http--127.0.0.1-8080-3) Deployment of unit com.caiso.mdsbpm:mdsbpm:1.0 failed: java.lang.RuntimeException: java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
14:11:43,207 DEBUG [org.apache.tomcat.util.http.Cookies] (http--127.0.0.1-8080-11) Cookies: Parsing b[]: JSESSIONID=RW3CKCztxGWY1vK7icYsbkQR.undefined; errai-active-user="{\"^EncodedType\":\"org.jboss.errai.security.shared.api.identity.UserImpl\",\"^ObjectID\":\"1\",\"name\":\"krisv\",\"roles\":{\"^EncodedType\":\"java.util.Collections$UnmodifiableSet\",\"^ObjectID\":\"2\",\"^Value\":[{\"^EncodedType\":\"org.jboss.errai.security.shared.api.RoleImpl\",\"^ObjectID\":\"3\",\"name\":\"analyst\"},{\"^EncodedType\":\"org.jboss.errai.security.shared.api.RoleImpl\",\"^ObjectID\":\"4\",\"name\":\"admin\"}]},\"groups\":{\"^EncodedType\":\"java.util.Collections$UnmodifiableSet\",\"^ObjectID\":\"5\",\"^Value\":[{\"^EncodedType\":\"org.jboss.errai.security.shared.api.GroupImpl\",\"^ObjectID\":\"6\",\"name\":\"analyst\"},{\"^EncodedType\":\"org.jboss.errai.security.shared.api.GroupImpl\",\"^ObjectID\":\"7\",\"name\":\"admin\"}]},\"properties\":{\"^EncodedType\":\"java.util.Collections$UnmodifiableMap\",\"^ObjectID\":\"8\",\"^Value\":{}}}"; JSESSIONIDSSO=ZsTl4mTzjA-bish8Y4E9ya3n
14:11:43,470 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--127.0.0.1-8080-11) Security checking request POST /jbpm-console/out.24918-19182.erraiBus
14:11:43,211 DEBUG [org.apache.tomcat.util.http.Cookies] (http--127.0.0.1-8080-3) Cookies: Parsing b[]: JSESSIONID=RW3CKCztxGWY1vK7icYsbkQR.undefined; errai-active-user="{\"^EncodedType\":\"org.jboss.errai.security.shared.api.identity.UserImpl\",\"^ObjectID\":\"1\",\"name\":\"krisv\",\"roles\":{\"^EncodedType\":\"java.util.Collections$UnmodifiableSet\",\"^ObjectID\":\"2\",\"^Value\":[{\"^EncodedType\":\"org.jboss.errai.security.shared.api.RoleImpl\",\"^ObjectID\":\"3\",\"name\":\"analyst\"},{\"^EncodedType\":\"org.jboss.errai.security.shared.api.RoleImpl\",\"^ObjectID\":\"4\",\"name\":\"admin\"}]},\"groups\":{\"^EncodedType\":\"java.util.Collections$UnmodifiableSet\",\"^ObjectID\":\"5\",\"^Value\":[{\"^EncodedType\":\"org.jboss.errai.security.shared.api.GroupImpl\",\"^ObjectID\":\"6\",\"name\":\"analyst\"},{\"^EncodedType\":\"org.jboss.errai.security.shared.api.GroupImpl\",\"^ObjectID\":\"7\",\"name\":\"admin\"}]},\"properties\":{\"^EncodedType\":\"java.util.Collections$UnmodifiableMap\",\"^ObjectID\":\"8\",\"^Value\":{}}}"; JSESSIONIDSSO=ZsTl4mTzjA-bish8Y4E9ya3n
14:11:43,630 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--127.0.0.1-8080-3) Security checking request POST /jbpm-console/out.24918-19182.erraiBus
14:11:43,638 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-8080-3) Checking constraint 'SecurityConstraint[download]' against POST /out.24918-19182.erraiBus --> false
14:11:43,648 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-8080-3) Checking constraint 'SecurityConstraint[console]' against POST /out.24918-19182.erraiBus --> true
14:11:43,675 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-8080-3) Checking constraint 'SecurityConstraint[formModeler]' against POST /out.24918-19182.erraiBus --> false
14:11:43,686 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-8080-3) Checking constraint 'SecurityConstraint[download]' against POST /out.24918-19182.erraiBus --> false
14:11:43,697 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-8080-3) Checking constraint 'SecurityConstraint[console]' against POST /out.24918-19182.erraiBus --> true
14:11:43,570 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (pool-21-thread-1) Jbpm-ds-pool: getConnection(null, null) [3/20]
14:11:43,565 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-8080-11) Checking constraint 'SecurityConstraint[download]' against POST /out.24918-19182.erraiBus --> false
14:11:43,736 DEBUG [org.apache.catalina.realm.RealmBase] (http--127.0.0.1-8080-11) Checking constraint 'SecurityConstraint[console]' against POST /out.24918-19182.erraiBus --> true
Please share if you guys have faced similar issue with the Quartz with Database as the persistent store and of course if you have any workaround with this.
thanks
Sanjay Gautam