From paul.chaunguyen at externe.bnpparibas.com Tue Jun 3 05:41:41 2014 From: paul.chaunguyen at externe.bnpparibas.com (paul.chaunguyen at externe.bnpparibas.com) Date: Tue, 3 Jun 2014 11:41:41 +0200 Subject: [jbpm-dev] process instance BPMN and variable scope memory leak Message-ID: Dear all, We are facing big issue with variable scope so application failed to out of memory with BPMN. Our situtation is below 1/ Initially, we put an object (prototype) as global inside BPMN --> after bpmn execution object is still there JVM garbage collection can not removed it 2/ We try to change this in moving object (prototype) to process parameters map, --> still the same issue: after bpmn execution object is still there JVM garbage collection can not removed it 3/ We try to use this object as facts but can not get the good syntax in java dialect to process as document or user guide related BPMN is very poor, Can you help please ? Many thanks, Regards, Paul This message and any attachments (the "message") is intended solely for the intended addressees and is confidential. If you receive this message in error,or are not the intended recipient(s), please delete it and any copies from your systems and immediately notify the sender. Any unauthorized view, use that does not comply with its purpose, dissemination or disclosure, either whole or partial, is prohibited. Since the internet cannot guarantee the integrity of this message which may not be reliable, BNP PARIBAS (and its subsidiaries) shall not be liable for the message if modified, changed or falsified. Do not print this message unless it is necessary,consider the environment. ---------------------------------------------------------------------------------------------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur ou s'il ne vous est pas destine, merci de le detruire ainsi que toute copie de votre systeme et d'en avertir immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de ce message qui n'est pas conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite. L'Internet ne permettant pas d'assurer l'integrite de ce message electronique susceptible d'alteration, BNP Paribas (et ses filiales) decline(nt) toute responsabilite au titre de ce message dans l'hypothese ou il aurait ete modifie, deforme ou falsifie. N'imprimez ce message que si necessaire, pensez a l'environnement. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140603/3e11a4e4/attachment-0001.html From salaboy at gmail.com Tue Jun 3 05:47:18 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Tue, 3 Jun 2014 10:47:18 +0100 Subject: [jbpm-dev] process instance BPMN and variable scope memory leak In-Reply-To: References: Message-ID: Can you please provide a reproducer for this: 2/ We try to change this in moving object (prototype) to process parameters map, --> still the same issue: after bpmn execution object is still there JVM garbage collection can not removed it so we can check it out? Usually a Junit inside a maven project is enough On Tue, Jun 3, 2014 at 10:41 AM, wrote: > Dear all, > > We are facing big issue with variable scope so application failed to out > of memory with BPMN. > > Our situtation is below > > 1/ Initially, we put an object (prototype) as global inside BPMN --> after > bpmn execution object is still there JVM garbage collection can not removed > it > > 2/ We try to change this in moving object (prototype) to process > parameters map, --> still the same issue: after bpmn execution object is > still there JVM garbage collection can not removed it > > > 3/ We try to use this object as facts but can not get the good syntax in > java dialect to process as document or user guide related BPMN is very > poor, Can you help please ? > > Many thanks, > > > Regards, > > Paul > > This message and any attachments (the "message") is > intended solely for the intended addressees and is confidential. > If you receive this message in error,or are not the intended recipient(s), > please delete it and any copies from your systems and immediately notify > the sender. Any unauthorized view, use that does not comply with its > purpose, > dissemination or disclosure, either whole or partial, is prohibited. Since > the internet > cannot guarantee the integrity of this message which may not be reliable, > BNP PARIBAS > (and its subsidiaries) shall not be liable for the message if modified, > changed or falsified. > Do not print this message unless it is necessary,consider the environment. > > > ---------------------------------------------------------------------------------------------------------------------------------- > > Ce message et toutes les pieces jointes (ci-apres le "message") > sont etablis a l'intention exclusive de ses destinataires et sont > confidentiels. > Si vous recevez ce message par erreur ou s'il ne vous est pas destine, > merci de le detruire ainsi que toute copie de votre systeme et d'en avertir > immediatement l'expediteur. Toute lecture non autorisee, toute utilisation > de > ce message qui n'est pas conforme a sa destination, toute diffusion ou > toute > publication, totale ou partielle, est interdite. L'Internet ne permettant > pas d'assurer > l'integrite de ce message electronique susceptible d'alteration, BNP > Paribas > (et ses filiales) decline(nt) toute responsabilite au titre de ce message > dans l'hypothese > ou il aurait ete modifie, deforme ou falsifie. > N'imprimez ce message que si necessaire, pensez a l'environnement. > > _______________________________________________ > jbpm-dev mailing list > jbpm-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbpm-dev > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140603/2662c82f/attachment.html From paul.chaunguyen at externe.bnpparibas.com Tue Jun 3 06:13:06 2014 From: paul.chaunguyen at externe.bnpparibas.com (paul.chaunguyen at externe.bnpparibas.com) Date: Tue, 3 Jun 2014 12:13:06 +0200 Subject: [jbpm-dev] process instance BPMN and variable scope memory leak In-Reply-To: References: Message-ID: Hi 1/ Here is my snapshot code which initilize session to use bpmn: protected void startProcess(T processContext) throws ProcessException { log.info("Executing BPMN process : " + getProcessName().getProcessId() + " ..."); // init common properties when entering in process init(processContext); audit(processContext); // process execution // load up the knowledge base StatefulKnowledgeSession ksession = null; KnowledgeRuntimeLogger fileLogger = null; String auditFileName = getAuditFileName(getProcessName(), processContext); ProcessInstance processInstance = null; try { ksession = omsRulesManager .getOmsRulesService().getKnownledgeBase() .newStatefulKnowledgeSession(); if (log.isDebugEnabled()) { String folder = System.getProperty( "Log4j.OUTPUT_DIR"); if (StringUtils.isEmpty(folder)) { folder = System.getProperty( "java.io.tmpdir"); } String fullFileName = folder + File. separator + auditFileName; fileLogger = KnowledgeRuntimeLoggerFactory.newFileLogger( ksession, fullFileName); ksession.addEventListener(new DebugWorkingMemoryEventListener()); ksession.addEventListener(new DebugAgendaEventListener()); } log.debug("Starting workflow process : " + getProcessName().getProcessId() + " ..."); ksession.setGlobal("log", log); // populate knowledge session global Map global = getSessionGlobal(processContext); populateGlobalSession(ksession, global); Map parameters = getProcessParameters(processContext); ksession.insert((OrderContext) processContext); processInstance = ksession.startProcess(getProcessName().getProcessId(), parameters); ksession.insert(processInstance); ksession.fireAllRules(); if(fileLogger != null) { fileLogger.close(); } parameters = null; } catch (Exception e) { throw new ProcessException(e.getMessage(), e); } finally { ksession.dispose(); // free memory processInstance = null; ksession = null; } log.info("BPMN process : " + getProcessName().name() + " executed"); } /** * Default * @param processContext * @return */ @SuppressWarnings("unchecked") protected Map getProcessParameters(OmsProcessContext processContext) { Map map = new HashMap(); map.put("orderContext", (OrderContext) processContext); return map; } 2/ and bpmn this was very complex, I just create small one to simulate the case ------ BEGIN BPMN ----- ----- END BPMN 3/ Memory dump after forcing GC OrderContext is always here after calling BPMN with orderContext in process parameter Thanks in advance, Regards, Paul Re: [jbpm-dev] process instance BPMN and variable scope memory leak (Internet) salaboy To: Paul CHAU N'GUYEN Cc: jbpm-dev 03/06/2014 11:58 Can you please provide a reproducer for this: 2/ We try to change this in moving object (prototype) to process parameters map, --> still the same issue: after bpmn execution object is still there JVM garbage collection can not removed it so we can check it out? Usually a Junit inside a maven project is enough On Tue, Jun 3, 2014 at 10:41 AM, wrote: Dear all, We are facing big issue with variable scope so application failed to out of memory with BPMN. Our situtation is below 1/ Initially, we put an object (prototype) as global inside BPMN --> after bpmn execution object is still there JVM garbage collection can not removed it 2/ We try to change this in moving object (prototype) to process parameters map, --> still the same issue: after bpmn execution object is still there JVM garbage collection can not removed it 3/ We try to use this object as facts but can not get the good syntax in java dialect to process as document or user guide related BPMN is very poor, Can you help please ? Many thanks, Regards, Paul This message and any attachments (the "message") is intended solely for the intended addressees and is confidential. If you receive this message in error,or are not the intended recipient(s), please delete it and any copies from your systems and immediately notify the sender. Any unauthorized view, use that does not comply with its purpose, dissemination or disclosure, either whole or partial, is prohibited. Since the internet cannot guarantee the integrity of this message which may not be reliable, BNP PARIBAS (and its subsidiaries) shall not be liable for the message if modified, changed or falsified. Do not print this message unless it is necessary,consider the environment. ---------------------------------------------------------------------------------------------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur ou s'il ne vous est pas destine, merci de le detruire ainsi que toute copie de votre systeme et d'en avertir immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de ce message qui n'est pas conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite. L'Internet ne permettant pas d'assurer l'integrite de ce message electronique susceptible d'alteration, BNP Paribas (et ses filiales) decline(nt) toute responsabilite au titre de ce message dans l'hypothese ou il aurait ete modifie, deforme ou falsifie. N'imprimez ce message que si necessaire, pensez a l'environnement. _______________________________________________ jbpm-dev mailing list jbpm-dev at lists.jboss.org https://lists.jboss.org/mailman/listinfo/jbpm-dev -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140603/47218b18/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 31688 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140603/47218b18/attachment-0001.gif From salaboy at gmail.com Tue Jun 3 06:27:19 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Tue, 3 Jun 2014 11:27:19 +0100 Subject: [jbpm-dev] process instance BPMN and variable scope memory leak In-Reply-To: References: Message-ID: Can you please attach a maven project? or the link to a maven project that we can just clone from github and run? That will give us more time to evaluate the problem, instead of wasting time in setting up the project. On Tue, Jun 3, 2014 at 11:13 AM, wrote: > Hi > > > *1/ Here is my snapshot code which initilize session to use bpmn:* > > *protected* *void* startProcess(T processContext) *throws* ProcessException > { > *log*.info("Executing BPMN process : " + getProcessName().getProcessId() > + " ..."); > // *init* common properties when entering in process > init(processContext); > > audit(processContext); > > // process execution > // load up the knowledge base > StatefulKnowledgeSession ksession = *null*; > > KnowledgeRuntimeLogger fileLogger = *null*; > > String auditFileName = getAuditFileName(getProcessName(), processContext); > ProcessInstance processInstance = *null*; > > *try* { > ksession = omsRulesManager.getOmsRulesService().getKnownledgeBase() > .newStatefulKnowledgeSession(); > > *if* (*log*.isDebugEnabled()) { > String folder = System.*getProperty*("Log4j.OUTPUT_DIR"); > > *if* (StringUtils.*isEmpty*(folder)) { > folder = System.*getProperty*("java.io.tmpdir"); > } > > String fullFileName = folder + File.*separator* + auditFileName; > > fileLogger = KnowledgeRuntimeLoggerFactory.*newFileLogger*( > ksession, fullFileName); > > ksession.addEventListener(*new* DebugWorkingMemoryEventListener()); > ksession.addEventListener(*new* DebugAgendaEventListener()); > } > > *log*.debug("Starting workflow process : " + > getProcessName().getProcessId() > + " ..."); > > ksession.setGlobal("log", *log*); > > // populate knowledge session global > Map global = getSessionGlobal(processContext); > populateGlobalSession(ksession, global); > > Map parameters = getProcessParameters(processContext); > > ksession.insert((OrderContext) processContext); > processInstance = ksession.startProcess(getProcessName().getProcessId(), > parameters); > > ksession.insert(processInstance); > ksession.fireAllRules(); > > *if*(fileLogger != *null*) { > fileLogger.close(); > } > > parameters = *null*; > } *catch* (Exception e) { > *throw* *new* ProcessException(e.getMessage(), e); > } *finally* { > ksession.dispose(); // free memory > processInstance = *null*; > ksession = *null*; > } > > *log*.info("BPMN process : " + getProcessName().name() + " executed"); > } > > > /** > * Default > * *@param* processContext > * *@return* > */ > @SuppressWarnings("unchecked") > *protected* Map getProcessParameters(OmsProcessContext > processContext) { > Map map = *new* HashMap(); > map.put("orderContext", (OrderContext) processContext); > *return* map; > } > > > *2/ and bpmn this was very complex, I just create small one to simulate > the case * > > ------ BEGIN BPMN ----- > > > targetNamespace="http://www.jboss.org/drools" > typeLanguage="http://www.java.com/javaTypes" > expressionLanguage="http://www.mvel.org/2.0" > *xmlns*="http://www.omg.org/spec/BPMN/20100524/MODEL" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" > http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.*xsd*" > xmlns:g="http://www.jboss.org/drools/flow/gpd" > xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" > xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" > xmlns:di="http://www.omg.org/spec/DD/20100524/DI" > xmlns:tns="http://www.jboss.org/drools"> > > structureRef="com.bp2s.oms.process.OrderContext" /> > > id="com.bp2s.oms.dealing.process.OrderReceptionProcess" > name="OrderReceptionProcess" tns:packageName="com.bp2s.oms.dealing.process" > > > > > > name="com.bp2s.oms.corecontrol.service.CoreControlTreeService" /> > > name="com.bp2s.oms.corecontrol.service.CoreControlTreeService.CoreControlTree" > /> > > > > > > > > name="com.bp2s.oms.process.OmsProcessContext.IncomingMode" /> > /> > /> > > > > > > > > name="com.bp2s.oms.corecontrol.CoreControlError.ErrorCode" /> > > > > type="CoreControlTreeService" /> > /> > /> > > /> > type="OrderInErrorService" /> > > > > > > > > > > > > > > > > > > > > > bpmnElement="com.bp2s.oms.dealing.process.OrderReceptionProcess" > > > > > > > > > > > > > > > > > > > > > > > > ----- END BPMN > > > 3/ Memory dump after forcing GC > > OrderContext is always here after calling BPMN with orderContext in > process parameter > > > > Thanks in advance, > > Regards, > > > Paul > > > > [image: Inactive hide details for salaboy---03/06/2014 11:58:47---Can you > please provide a reproducer for this: 2/ We try to change thi]salaboy---03/06/2014 > 11:58:47---Can you please provide a reproducer for this: 2/ We try to > change this in moving object (prototype) > > > > *Re: [jbpm-dev] process instance BPMN and variable scope memory leak* > > > *(Internet)* > *salaboy * > > > To: > Paul CHAU N'GUYEN > Cc: > jbpm-dev > 03/06/2014 11:58 > > > ------------------------------ > > > > Can you please provide a reproducer for this: > > 2/ We try to change this in moving object (prototype) to process > parameters map, --> still the same issue: after bpmn execution object is > still there JVM garbage collection can not removed it > > so we can check it out? > > Usually a Junit inside a maven project is enough > > > On Tue, Jun 3, 2014 at 10:41 AM, <*paul.chaunguyen at externe.bnpparibas.com* > > wrote: > > Dear all, > > We are facing big issue with variable scope so application failed to > out of memory with BPMN. > > Our situtation is below > > 1/ Initially, we put an object (prototype) as global inside BPMN --> > after bpmn execution object is still there JVM garbage collection can not > removed it > > 2/ We try to change this in moving object (prototype) to process > parameters map, --> still the same issue: after bpmn execution object is > still there JVM garbage collection can not removed it > > > 3/ We try to use this object as facts but can not get the good syntax > in java dialect to process as document or user guide related BPMN is very > poor, Can you help please ? > > Many thanks, > > > Regards, > > Paul > > This message and any attachments (the "message") is > intended solely for the intended addressees and is confidential. > If you receive this message in error,or are not the intended > recipient(s), > please delete it and any copies from your systems and immediately > notify > the sender. Any unauthorized view, use that does not comply with its > purpose, > dissemination or disclosure, either whole or partial, is prohibited. > Since the internet > cannot guarantee the integrity of this message which may not be > reliable, BNP PARIBAS > (and its subsidiaries) shall not be liable for the message if > modified, changed or falsified. > Do not print this message unless it is necessary,consider the > environment. > > > ---------------------------------------------------------------------------------------------------------------------------------- > > Ce message et toutes les pieces jointes (ci-apres le "message") > sont etablis a l'intention exclusive de ses destinataires et sont > confidentiels. > Si vous recevez ce message par erreur ou s'il ne vous est pas destine, > merci de le detruire ainsi que toute copie de votre systeme et d'en > avertir > immediatement l'expediteur. Toute lecture non autorisee, toute > utilisation de > ce message qui n'est pas conforme a sa destination, toute diffusion ou > toute > publication, totale ou partielle, est interdite. L'Internet ne > permettant pas d'assurer > l'integrite de ce message electronique susceptible d'alteration, BNP > Paribas > (et ses filiales) decline(nt) toute responsabilite au titre de ce > message dans l'hypothese > ou il aurait ete modifie, deforme ou falsifie. > N'imprimez ce message que si necessaire, pensez a l'environnement. > > > _______________________________________________ > jbpm-dev mailing list > *jbpm-dev at lists.jboss.org* > *https://lists.jboss.org/mailman/listinfo/jbpm-dev* > > > > > > > -- > - MyJourney @ *http://salaboy.com* > - Co-Founder @ *http://www.jugargentina.org* > > - Co-Founder @ *http://www.jbug.com.ar* > > - Salatino "Salaboy" Mauricio - > > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140603/12c06d15/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140603/12c06d15/attachment-0004.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140603/12c06d15/attachment-0005.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: pic01515.gif Type: image/gif Size: 1255 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140603/12c06d15/attachment-0006.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: 2B573358.gif Type: image/gif Size: 31688 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140603/12c06d15/attachment-0007.gif From quintesv at gmail.com Mon Jun 9 04:40:40 2014 From: quintesv at gmail.com (Quintes van Aswegen) Date: Mon, 9 Jun 2014 10:40:40 +0200 Subject: [jbpm-dev] Issue running sample project - jBPM 6.0.1 Final testEvaluationProcess demo Message-ID: Hi All I have downloaded and installed 6.0.1 full and the jboss instance and web console are running The eclipse project "evaluation" when run as a junit app is giving me this error java.lang.NullPointerException at org.jbpm.test.JbpmJUnitBaseTestCase.cleanupSingletonSessionId(JbpmJUnitBaseTestCase.java:695) at org.jbpm.test.JbpmJUnitBaseTestCase.setUp(JbpmJUnitBaseTestCase.java:186) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) 1. what is the issue here? 2. Why does the jbpm-test-6.0.1-20140120.jar need to be referenced for the solution to work? 3. Because of question 2 giving me problems I googled some and found this Issue running sample project - jBPM 6.0.1 Final, this comment in particular: Re: Issue running sample project - jBPM 6.0.1 Final As per that post Re: Re: Issue running sample project - jBPM 6.0.1 Final, created the persistence.xml (attached) but the test code still didnt work. I copied the code and tried to run the code as follows in a main() with an EntityManager as recommended in the post (as attached Run.java) Then i get this Caused by: org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name [jdbc/jbpm-ds] Most likely the persistence.xml in the test jar mentioned in (2), so i remove it from includes and rerun Exception on Run.java line 67 Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named org.jbpm.persistence.jpa Then i try to swap my boolean old to false to run the code with an EntityManager defined (Run.java line 40): Exception raised on EntityManager Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa.updated] Unable to build EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:930) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:72) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) at com.sample.Run.main(Run.java:41) Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [java:jboss/datasources/jbpmDS] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:92) at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:63) at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116) at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89) at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:78) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2295) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2291) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1760) at org.hibernate.ejb.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:94) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:920) ... 5 more Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344) at javax.naming.InitialContext.getNameParser(InitialContext.java:499) at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:86) So how do i get it to point to the data source defined in the demo ( java:jboss/datasources/jbpmDS)? Thanks in advance, q -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140609/51f6be02/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: persistence.xml Type: text/xml Size: 4063 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140609/51f6be02/attachment.xml -------------- next part -------------- A non-text attachment was scrubbed... Name: Run.java Type: text/x-java-source Size: 4745 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140609/51f6be02/attachment.bin From quintesv at gmail.com Mon Jun 9 04:45:36 2014 From: quintesv at gmail.com (Quintes van Aswegen) Date: Mon, 9 Jun 2014 10:45:36 +0200 Subject: [jbpm-dev] Fwd: Issue running sample project - jBPM 6.0.1 Final testEvaluationProcess demo In-Reply-To: References: Message-ID: Apologies, hyperlinks were lost ---------- Forwarded message ---------- From: Quintes van Aswegen Date: Mon, Jun 9, 2014 at 10:40 AM Subject: Issue running sample project - jBPM 6.0.1 Final testEvaluationProcess demo To: jbpm-dev at lists.jboss.org Hi All I have downloaded and installed 6.0.1 full and the jboss instance and web console are running The eclipse project "evaluation" when run as a junit app is giving me this error java.lang.NullPointerException at org.jbpm.test.JbpmJUnitBaseTestCase.cleanupSingletonSessionId(JbpmJUnitBaseTestCase.java:695) at org.jbpm.test.JbpmJUnitBaseTestCase.setUp(JbpmJUnitBaseTestCase.java:186) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) 1. what is the issue here? 2. Why does the jbpm-test-6.0.1-20140120.jar need to be referenced for the solution to work? 3. Because of question 2 giving me problems I googled some and found this Issue running sample project - jBPM 6.0.1 Final , this comment in particular: Re: Issue running sample project - jBPM 6.0.1 Final As per that post Re: Re: Issue running sample project - jBPM 6.0.1 Final , created the persistence.xml (attached) but the test code still didnt work. I copied the code and tried to run the code as follows in a main() with an EntityManager as recommended in the post (as attached Run.java) Then i get this Caused by: org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name [jdbc/jbpm-ds] Most likely the persistence.xml in the test jar mentioned in (2), so i remove it from includes and rerun Exception on Run.java line 67 Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named org.jbpm.persistence.jpa Then i try to swap my boolean old to false to run the code with an EntityManager defined (Run.java line 40): Exception raised on EntityManager Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa.updated] Unable to build EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:930) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:72) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) at com.sample.Run.main(Run.java:41) Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [java:jboss/datasources/jbpmDS] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:92) at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:63) at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116) at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89) at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:78) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2295) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2291) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1760) at org.hibernate.ejb.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:94) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:920) ... 5 more Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344) at javax.naming.InitialContext.getNameParser(InitialContext.java:499) at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:86) So how do i get it to point to the data source defined in the demo ( java:jboss/datasources/jbpmDS)? Thanks in advance, q -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140609/de80253f/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: persistence.xml Type: text/xml Size: 4063 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140609/de80253f/attachment-0001.xml -------------- next part -------------- A non-text attachment was scrubbed... Name: Run.java Type: text/x-java-source Size: 4745 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140609/de80253f/attachment-0001.bin From akila.senarath at gmail.com Tue Jun 24 02:26:30 2014 From: akila.senarath at gmail.com (Akila Rathnayake) Date: Tue, 24 Jun 2014 11:56:30 +0530 Subject: [jbpm-dev] missing project explorer in "project authoring" Message-ID: hi all, in kie workbench 6.0.1 , when we click project authoring in main menu, sometimes not loading projects explorer and loading only EAST pannel as main pannel. we used wb more than two months without this issue now this is happening time to time.. do you guys have a solution for this... regards Akila -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/b9caac49/attachment.html From salaboy at gmail.com Tue Jun 24 04:25:31 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Tue, 24 Jun 2014 09:25:31 +0100 Subject: [jbpm-dev] missing project explorer in "project authoring" In-Reply-To: References: Message-ID: Maybe you can try with the latest snapshots. We are trying to get 6.1.CR2 out soon. On Tue, Jun 24, 2014 at 7:26 AM, Akila Rathnayake wrote: > hi all, > > in kie workbench 6.0.1 , when we click project authoring in main menu, > sometimes not loading projects explorer and loading only EAST pannel as > main pannel. > > we used wb more than two months without this issue > > now this is happening time to time.. > > do you guys have a solution for this... > > > regards > Akila > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/e364c03f/attachment.html From akila.senarath at gmail.com Tue Jun 24 04:36:21 2014 From: akila.senarath at gmail.com (Akila Rathnayake) Date: Tue, 24 Jun 2014 14:06:21 +0530 Subject: [jbpm-dev] missing project explorer in "project authoring" In-Reply-To: References: Message-ID: @salaboy, is it ok to use 6.1.CR1. we are planing to go live within next two weeks...is it ok to go 6.1.CR1? regards Akila On Tue, Jun 24, 2014 at 1:55 PM, Mauricio Salatino wrote: > Maybe you can try with the latest snapshots. We are trying to get 6.1.CR2 > out soon. > > > On Tue, Jun 24, 2014 at 7:26 AM, Akila Rathnayake < > akila.senarath at gmail.com> wrote: > >> hi all, >> >> in kie workbench 6.0.1 , when we click project authoring in main menu, >> sometimes not loading projects explorer and loading only EAST pannel as >> main pannel. >> >> we used wb more than two months without this issue >> >> now this is happening time to time.. >> >> do you guys have a solution for this... >> >> >> regards >> Akila >> > > > > -- > - MyJourney @ http://salaboy.com > - Co-Founder @ http://www.jugargentina.org > - Co-Founder @ http://www.jbug.com.ar > > - Salatino "Salaboy" Mauricio - > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/5fb6a40d/attachment.html From salaboy at gmail.com Tue Jun 24 04:37:06 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Tue, 24 Jun 2014 09:37:06 +0100 Subject: [jbpm-dev] missing project explorer in "project authoring" In-Reply-To: References: Message-ID: The good thing about CR1 is that you can try it out and if you find a major issue we will try to fix it before CR2, or even Final. On Tue, Jun 24, 2014 at 9:36 AM, Akila Rathnayake wrote: > @salaboy, > > is it ok to use 6.1.CR1. > we are planing to go live within next two weeks...is it ok to go 6.1.CR1? > > regards > Akila > > > > On Tue, Jun 24, 2014 at 1:55 PM, Mauricio Salatino > wrote: > >> Maybe you can try with the latest snapshots. We are trying to get 6.1.CR2 >> out soon. >> >> >> On Tue, Jun 24, 2014 at 7:26 AM, Akila Rathnayake < >> akila.senarath at gmail.com> wrote: >> >>> hi all, >>> >>> in kie workbench 6.0.1 , when we click project authoring in main menu, >>> sometimes not loading projects explorer and loading only EAST pannel as >>> main pannel. >>> >>> we used wb more than two months without this issue >>> >>> now this is happening time to time.. >>> >>> do you guys have a solution for this... >>> >>> >>> regards >>> Akila >>> >> >> >> >> -- >> - MyJourney @ http://salaboy.com >> - Co-Founder @ http://www.jugargentina.org >> - Co-Founder @ http://www.jbug.com.ar >> >> - Salatino "Salaboy" Mauricio - >> > > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/4faf498d/attachment.html From akila.senarath at gmail.com Tue Jun 24 04:49:45 2014 From: akila.senarath at gmail.com (Akila Rathnayake) Date: Tue, 24 Jun 2014 14:19:45 +0530 Subject: [jbpm-dev] missing project explorer in "project authoring" In-Reply-To: References: Message-ID: @salaboy, our team agreed to change to CR1 . thanks for your instant replies. regards, Akila. On Tue, Jun 24, 2014 at 2:07 PM, Mauricio Salatino wrote: > The good thing about CR1 is that you can try it out and if you find a > major issue we will try to fix it before CR2, or even Final. > > > > On Tue, Jun 24, 2014 at 9:36 AM, Akila Rathnayake < > akila.senarath at gmail.com> wrote: > >> @salaboy, >> >> is it ok to use 6.1.CR1. >> we are planing to go live within next two weeks...is it ok to go 6.1.CR1? >> >> regards >> Akila >> >> >> >> On Tue, Jun 24, 2014 at 1:55 PM, Mauricio Salatino >> wrote: >> >>> Maybe you can try with the latest snapshots. We are trying to get >>> 6.1.CR2 out soon. >>> >>> >>> On Tue, Jun 24, 2014 at 7:26 AM, Akila Rathnayake < >>> akila.senarath at gmail.com> wrote: >>> >>>> hi all, >>>> >>>> in kie workbench 6.0.1 , when we click project authoring in main menu, >>>> sometimes not loading projects explorer and loading only EAST pannel as >>>> main pannel. >>>> >>>> we used wb more than two months without this issue >>>> >>>> now this is happening time to time.. >>>> >>>> do you guys have a solution for this... >>>> >>>> >>>> regards >>>> Akila >>>> >>> >>> >>> >>> -- >>> - MyJourney @ http://salaboy.com >>> - Co-Founder @ http://www.jugargentina.org >>> - Co-Founder @ http://www.jbug.com.ar >>> >>> - Salatino "Salaboy" Mauricio - >>> >> >> > > > -- > - MyJourney @ http://salaboy.com > - Co-Founder @ http://www.jugargentina.org > - Co-Founder @ http://www.jbug.com.ar > > - Salatino "Salaboy" Mauricio - > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/cbad71c5/attachment.html From akila.senarath at gmail.com Tue Jun 24 07:53:13 2014 From: akila.senarath at gmail.com (Akila Rathnayake) Date: Tue, 24 Jun 2014 17:23:13 +0530 Subject: [jbpm-dev] canot claim task in 6.1.CR1 Message-ID: hi all, i just built kie wb 6.1.CR1 and testing it. sometimes when i click "Claim" icon, it shows item claimed notification but still not show complete icon. also change status ready to in progress. it seems like the task locked .but when i click on release icon it gives error, Unexpected error encountered : org.jbpm.services.task.exception.PermissionDeniedException:User '[UserImpl:'krisv']' was unable to execute operation 'Release' on task id 3 due to a no 'current status' match please check the attached image.. regards, Akila -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/b137b981/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2014-06-24 16:53:41.png Type: image/png Size: 77997 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/b137b981/attachment-0001.png From mswiders at redhat.com Tue Jun 24 07:59:57 2014 From: mswiders at redhat.com (Maciej Swiderski) Date: Tue, 24 Jun 2014 13:59:57 +0200 Subject: [jbpm-dev] canot claim task in 6.1.CR1 In-Reply-To: References: Message-ID: <7E754057-6168-4C47-91C0-6286E01470D7@redhat.com> It might be caused by improper refresh of the items in the list - try using refresh button after first attempt to claim it and see if that makes any difference. Maciej On 24 cze 2014, at 13:53, Akila Rathnayake wrote: > hi all, > > i just built kie wb 6.1.CR1 and testing it. > sometimes when i click "Claim" icon, it shows item claimed notification but still not show complete icon. also change status ready to in progress. > it seems like the task locked .but when i click on release icon it gives error, > > Unexpected error encountered : org.jbpm.services.task.exception.PermissionDeniedException:User '[UserImpl:'krisv']' was unable to execute operation 'Release' on task id 3 due to a no 'current status' match > > please check the attached image.. > > regards, > Akila > _______________________________________________ > jbpm-dev mailing list > jbpm-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbpm-dev From akila.senarath at gmail.com Tue Jun 24 08:20:51 2014 From: akila.senarath at gmail.com (Akila Rathnayake) Date: Tue, 24 Jun 2014 17:50:51 +0530 Subject: [jbpm-dev] canot claim task in 6.1.CR1 In-Reply-To: <7E754057-6168-4C47-91C0-6286E01470D7@redhat.com> References: <7E754057-6168-4C47-91C0-6286E01470D7@redhat.com> Message-ID: @maciej, yes it works after click refresh button. but if i click claim icon without refreshing it gives same error... what should i do for that...? regards, Akila On Tue, Jun 24, 2014 at 5:29 PM, Maciej Swiderski wrote: > It might be caused by improper refresh of the items in the list - try > using refresh button after first attempt to claim it and see if that makes > any difference. > > Maciej > On 24 cze 2014, at 13:53, Akila Rathnayake > wrote: > > > hi all, > > > > i just built kie wb 6.1.CR1 and testing it. > > sometimes when i click "Claim" icon, it shows item claimed notification > but still not show complete icon. also change status ready to in progress. > > it seems like the task locked .but when i click on release icon it gives > error, > > > > Unexpected error encountered : > org.jbpm.services.task.exception.PermissionDeniedException:User > '[UserImpl:'krisv']' was unable to execute operation 'Release' on task id 3 > due to a no 'current status' match > > > > please check the attached image.. > > > > regards, > > Akila > > 16:53:41.png>_______________________________________________ > > jbpm-dev mailing list > > jbpm-dev at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/jbpm-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/e80088fe/attachment.html From mswiders at redhat.com Tue Jun 24 08:23:07 2014 From: mswiders at redhat.com (Maciej Swiderski) Date: Tue, 24 Jun 2014 14:23:07 +0200 Subject: [jbpm-dev] canot claim task in 6.1.CR1 In-Reply-To: References: <7E754057-6168-4C47-91C0-6286E01470D7@redhat.com> Message-ID: Actually this is known issue with refresh of the tables that will be addressed soon. For now unfortunately you?ll need to stick to refresh button or use details form of the task. The backend services does work fine and thus the error as you cannot claim same task twice. Maciej On 24 cze 2014, at 14:20, Akila Rathnayake wrote: > @maciej, > > yes it works after click refresh button. > > but if i click claim icon without refreshing it gives same error... > > what should i do for that...? > > regards, > Akila > > > On Tue, Jun 24, 2014 at 5:29 PM, Maciej Swiderski wrote: > It might be caused by improper refresh of the items in the list - try using refresh button after first attempt to claim it and see if that makes any difference. > > Maciej > On 24 cze 2014, at 13:53, Akila Rathnayake wrote: > > > hi all, > > > > i just built kie wb 6.1.CR1 and testing it. > > sometimes when i click "Claim" icon, it shows item claimed notification but still not show complete icon. also change status ready to in progress. > > it seems like the task locked .but when i click on release icon it gives error, > > > > Unexpected error encountered : org.jbpm.services.task.exception.PermissionDeniedException:User '[UserImpl:'krisv']' was unable to execute operation 'Release' on task id 3 due to a no 'current status' match > > > > please check the attached image.. > > > > regards, > > Akila > > _______________________________________________ > > jbpm-dev mailing list > > jbpm-dev at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/jbpm-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/4a8edb03/attachment.html From akila.senarath at gmail.com Tue Jun 24 08:32:36 2014 From: akila.senarath at gmail.com (Akila Rathnayake) Date: Tue, 24 Jun 2014 18:02:36 +0530 Subject: [jbpm-dev] canot claim task in 6.1.CR1 In-Reply-To: References: <7E754057-6168-4C47-91C0-6286E01470D7@redhat.com> Message-ID: @maciej, ok thanks. we also will try to make a solution for this problem.. regards, Akila On Tue, Jun 24, 2014 at 5:53 PM, Maciej Swiderski wrote: > Actually this is known issue with refresh of the tables that will be > addressed soon. For now unfortunately you?ll need to stick to refresh > button or use details form of the task. The backend services does work fine > and thus the error as you cannot claim same task twice. > > Maciej > > On 24 cze 2014, at 14:20, Akila Rathnayake > wrote: > > @maciej, > > yes it works after click refresh button. > > but if i click claim icon without refreshing it gives same error... > > what should i do for that...? > > regards, > Akila > > > On Tue, Jun 24, 2014 at 5:29 PM, Maciej Swiderski > wrote: > >> It might be caused by improper refresh of the items in the list - try >> using refresh button after first attempt to claim it and see if that makes >> any difference. >> >> Maciej >> On 24 cze 2014, at 13:53, Akila Rathnayake >> wrote: >> >> > hi all, >> > >> > i just built kie wb 6.1.CR1 and testing it. >> > sometimes when i click "Claim" icon, it shows item claimed notification >> but still not show complete icon. also change status ready to in progress. >> > it seems like the task locked .but when i click on release icon it >> gives error, >> > >> > Unexpected error encountered : >> org.jbpm.services.task.exception.PermissionDeniedException:User >> '[UserImpl:'krisv']' was unable to execute operation 'Release' on task id 3 >> due to a no 'current status' match >> > >> > please check the attached image.. >> > >> > regards, >> > Akila >> > > 16:53:41.png>_______________________________________________ >> > jbpm-dev mailing list >> > jbpm-dev at lists.jboss.org >> > https://lists.jboss.org/mailman/listinfo/jbpm-dev >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140624/d1aa03ca/attachment.html From akila.senarath at gmail.com Wed Jun 25 07:18:51 2014 From: akila.senarath at gmail.com (Akila Rathnayake) Date: Wed, 25 Jun 2014 16:48:51 +0530 Subject: [jbpm-dev] canot claim task in 6.1.CR1 In-Reply-To: References: <7E754057-6168-4C47-91C0-6286E01470D7@redhat.com> Message-ID: hi all, i think i solved this problem after doing little modification. :) you just need to add refreshTasks() method to the release part in actionsColumn() method in TasksListViewImpl.java as mentioned below, cells.add(new ReleaseActionHasCell(ActionsDataGrid.RELEASE.getDescription(), new ActionCell.Delegate() { @Override public void execute(TaskSummary task) { currentAction = ActionsDataGrid.RELEASE; presenter.releaseTasks(Lists.newArrayList(task.getId()), identity.getName()); * refreshTasks();* } })); regards, Akila On Tue, Jun 24, 2014 at 6:02 PM, Akila Rathnayake wrote: > @maciej, > > ok thanks. we also will try to make a solution for this problem.. > > regards, > Akila > > > On Tue, Jun 24, 2014 at 5:53 PM, Maciej Swiderski > wrote: > >> Actually this is known issue with refresh of the tables that will be >> addressed soon. For now unfortunately you?ll need to stick to refresh >> button or use details form of the task. The backend services does work fine >> and thus the error as you cannot claim same task twice. >> >> Maciej >> >> On 24 cze 2014, at 14:20, Akila Rathnayake >> wrote: >> >> @maciej, >> >> yes it works after click refresh button. >> >> but if i click claim icon without refreshing it gives same error... >> >> what should i do for that...? >> >> regards, >> Akila >> >> >> On Tue, Jun 24, 2014 at 5:29 PM, Maciej Swiderski >> wrote: >> >>> It might be caused by improper refresh of the items in the list - try >>> using refresh button after first attempt to claim it and see if that makes >>> any difference. >>> >>> Maciej >>> On 24 cze 2014, at 13:53, Akila Rathnayake >>> wrote: >>> >>> > hi all, >>> > >>> > i just built kie wb 6.1.CR1 and testing it. >>> > sometimes when i click "Claim" icon, it shows item claimed >>> notification but still not show complete icon. also change status ready to >>> in progress. >>> > it seems like the task locked .but when i click on release icon it >>> gives error, >>> > >>> > Unexpected error encountered : >>> org.jbpm.services.task.exception.PermissionDeniedException:User >>> '[UserImpl:'krisv']' was unable to execute operation 'Release' on task id 3 >>> due to a no 'current status' match >>> > >>> > please check the attached image.. >>> > >>> > regards, >>> > Akila >>> > >> 16:53:41.png>_______________________________________________ >>> > jbpm-dev mailing list >>> > jbpm-dev at lists.jboss.org >>> > https://lists.jboss.org/mailman/listinfo/jbpm-dev >>> >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140625/285a436f/attachment-0001.html From salaboy at gmail.com Wed Jun 25 07:19:27 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Wed, 25 Jun 2014 12:19:27 +0100 Subject: [jbpm-dev] canot claim task in 6.1.CR1 In-Reply-To: References: <7E754057-6168-4C47-91C0-6286E01470D7@redhat.com> Message-ID: Hi thanks for letting us know, That code is being refactored right now, so I will make sure to include that fix there. Thanks a lot On Wed, Jun 25, 2014 at 12:18 PM, Akila Rathnayake wrote: > hi all, > > i think i solved this problem after doing little modification. :) > you just need to add refreshTasks() method to the release part > in actionsColumn() method in TasksListViewImpl.java as mentioned below, > > cells.add(new > ReleaseActionHasCell(ActionsDataGrid.RELEASE.getDescription(), new > ActionCell.Delegate() { > @Override > public void execute(TaskSummary task) { > currentAction = ActionsDataGrid.RELEASE; > presenter.releaseTasks(Lists.newArrayList(task.getId()), > identity.getName()); > * refreshTasks();* > } > })); > > regards, > Akila > > > On Tue, Jun 24, 2014 at 6:02 PM, Akila Rathnayake < > akila.senarath at gmail.com> wrote: > >> @maciej, >> >> ok thanks. we also will try to make a solution for this problem.. >> >> regards, >> Akila >> >> >> On Tue, Jun 24, 2014 at 5:53 PM, Maciej Swiderski >> wrote: >> >>> Actually this is known issue with refresh of the tables that will be >>> addressed soon. For now unfortunately you?ll need to stick to refresh >>> button or use details form of the task. The backend services does work fine >>> and thus the error as you cannot claim same task twice. >>> >>> Maciej >>> >>> On 24 cze 2014, at 14:20, Akila Rathnayake >>> wrote: >>> >>> @maciej, >>> >>> yes it works after click refresh button. >>> >>> but if i click claim icon without refreshing it gives same error... >>> >>> what should i do for that...? >>> >>> regards, >>> Akila >>> >>> >>> On Tue, Jun 24, 2014 at 5:29 PM, Maciej Swiderski >>> wrote: >>> >>>> It might be caused by improper refresh of the items in the list - try >>>> using refresh button after first attempt to claim it and see if that makes >>>> any difference. >>>> >>>> Maciej >>>> On 24 cze 2014, at 13:53, Akila Rathnayake >>>> wrote: >>>> >>>> > hi all, >>>> > >>>> > i just built kie wb 6.1.CR1 and testing it. >>>> > sometimes when i click "Claim" icon, it shows item claimed >>>> notification but still not show complete icon. also change status ready to >>>> in progress. >>>> > it seems like the task locked .but when i click on release icon it >>>> gives error, >>>> > >>>> > Unexpected error encountered : >>>> org.jbpm.services.task.exception.PermissionDeniedException:User >>>> '[UserImpl:'krisv']' was unable to execute operation 'Release' on task id 3 >>>> due to a no 'current status' match >>>> > >>>> > please check the attached image.. >>>> > >>>> > regards, >>>> > Akila >>>> > >>> 16:53:41.png>_______________________________________________ >>>> > jbpm-dev mailing list >>>> > jbpm-dev at lists.jboss.org >>>> > https://lists.jboss.org/mailman/listinfo/jbpm-dev >>>> >>>> >>> >>> >> > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140625/bd6aa7a8/attachment.html From anguang1973 at 163.com Wed Jun 25 21:39:51 2014 From: anguang1973 at 163.com (anguang1973) Date: Thu, 26 Jun 2014 09:39:51 +0800 Subject: [jbpm-dev] Process Designer do not show in jBPM 6.0.1 workbench Message-ID: <32e01335.8eb.146d5d4303a.Coremail.anguang1973@163.com> Hello Everyone, I am new for jBPM. I have installed jbpm-6.0.1.Final-installer-full for learning. I installed the program by running ant install.demo. There is no error messages in the installation. I can access the workbench. But when I choose to new a build process, the process designer view cannot open. There is only a blank area in the browser. Who can help me? Thanks! anguang 2014-06-26 anguang1973 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140626/a50b9e59/attachment.html