[JBoss jBPM] - Re: Multiinstances of the same process
by antitrust1982
I resolve the porblem with graphSession.saveProcessInstance(pi); by remplacing by jbpmContext.save(pi);.
but the processinstance don't appear on my console as I haven't any processinstance. SO I have try to use is empty methode and I have this answer: is "true". but I have create a process instance just before... what I missed?
this is my code:
| GraphSession graphSession = jbpmSession.getGraphSession();
| TaskMgmtSession taskMgmtSession = jbpmSession.getTaskMgmtSession();
| jbpmSession.beginTransaction();
|
|
| System.out.println("creation d'une instance de process");
| pi = new ProcessInstance(pd);
| System.out.println("enregistrement du processinstance");
| jbpmContext.save(pi);
| System.out.println("PROCESS INSTANCE ID:"+ pi.getId());
| jbpmContext.loadProcessInstanceForUpdate(pi.getId());
|
| jbpmContext.save(pi);
| //UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUu
| Collection processinstances=graphSession.findProcessInstances(pd.getId());
| System.out.println("empty:" +processinstances.isEmpty());
| Iterator itpro = processinstances.iterator();
| while(itpro.hasNext()){
| ProcessInstance processinstance =(ProcessInstance) itpro.next();
|
| System.out.println("les elements de la collection de process sont : "+processinstance.getId());
| }
|
| //uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
|
If you see what I missed or have a solution to my probelm thank you to help me please
antitrust1982
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972608#3972608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972608
19 years, 7 months
[Management, JMX/JBoss] - MBean: parameters name & description of operations with EJB3
by formica
Hello all,
I have a few MBeans services defined with EJB 3 annotations. They are made to be used in the JMX console by a user who will call their operations and watch their attributes, so they should be documented enough.
The problem is that I can't find a way to specify parameters names, operations and attributes description.
I just found an article http://weblogs.java.net/blog/emcmanus/archive/2005/07/adding_informat.html demonstrating that one can achieve this functionnality defining custom annotations and overriding StandardMBean class to extract informations from our custom annotations. Well this may do the trick, but:
1/ I don't use registerMBean to do the job, I just annotate my class with @Service. Since I'm fairly new to EJB (this is my first project), and began with EJB 3, I know nothing about this way of registering a MBean. I'm wondering where should I call registerMBean, because obviously, I would need to register MBeans when the application is deployed (but how to have some code executed at this moment ??), and also take care of dependencies between my MBeans, which may imply to respect an accurate call order.
2/ I would really prefer a pure EJB3 solution relying on @Service and @Depends annotations to register MBeans correctly.
3/ I can't believe there isn't a built-in solution to document MBeans. Having to rediscover the wheel to implement what I consider as a basic feature compared to what already exist in EJB 3 seems incredible.
Does anyone knows if there is a way to do this using JBoss annotations or standard annotations. If there isn't, what are the others possibilies ?
Thanks in advance[/url]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972600#3972600
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972600
19 years, 7 months
[Installation, Configuration & Deployment] - Re: java.lang.NoClassDefFoundError: org/jaxen/JaxenException
by taha1967
"taha1967" wrote : Hello,
| I have deployed my EAR in jboss 4.0.4 and when I try to use a component that use dom4j I have the following error :
| java.lang.NoClassDefFoundError: org/jaxen/JaxenException
| at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
| at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
| at org.dom4j.tree.AbstractNode.selectSingleNode(AbstractNode.java:183)
| at net.windward.xmlreport.ProcessReport.addBody(Unknown Source)
| at net.windward.xmlreport.ProcessReport.append(Unknown Source)
| at net.windward.xmlreport.ProcessReport.(Unknown Source)
| at net.windward.xmlreport.ProcessPdf.(Unknown Source)
| at it.deltadator.reportmanager.engine.builtin.ejb.ses.BuiltInReportEngineBean.generateReport(BuiltInReportEngineBean.java:184)
| at it.deltadator.reportmanager.engine.builtin.ejb.ses.BuiltInReportEngineBean.processReport(BuiltInReportEngineBean.java:144)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|
| The jaxen.jar library is in my EAR and in the classpath of the session bean which call the windward Component (in the manifest).
| Any suggestions for the cause of the problem ?
| Please help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972595#3972595
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972595
19 years, 7 months
[Installation, Configuration & Deployment] - java.lang.NoClassDefFoundError: org/jaxen/JaxenException
by taha1967
Hello,
I have deployed my EAR in jboss 4.0.4 and when I try to use a component that use dom4j I have the following error :
java.lang.NoClassDefFoundError: org/jaxen/JaxenException
at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
at org.dom4j.tree.AbstractNode.selectSingleNode(AbstractNode.java:183)
at net.windward.xmlreport.ProcessReport.addBody(Unknown Source)
at net.windward.xmlreport.ProcessReport.append(Unknown Source)
at net.windward.xmlreport.ProcessReport.(Unknown Source)
at net.windward.xmlreport.ProcessPdf.(Unknown Source)
at it.deltadator.reportmanager.engine.builtin.ejb.ses.BuiltInReportEngineBean.generateReport(BuiltInReportEngineBean.java:184)
at it.deltadator.reportmanager.engine.builtin.ejb.ses.BuiltInReportEngineBean.processReport(BuiltInReportEngineBean.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
The jaxen.jar library is in my EAR and in the classpath of the session bean which call the windward Component (in the manifest).
Any suggestions for the cause of the problem ?
Please help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972594#3972594
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972594
19 years, 7 months
[Messaging, JMS & JBossMQ] - Exception in JMSCI message listener
by bindiya123
Hi
I have created MDB and deployed it in jboss portal 2.4 final. When MDB receives message it gives me following error.
09:47:24,127 ERROR [JMSContainerInvoker] Exception in JMSCI message listener
javax.ejb.TransactionRolledbackLocalException: Could not instantiate bean
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInt
rceptor.java:262)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterce
torCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:
81)
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityI
terceptor.java:109)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFact
ryFinderInterceptor.java:136)
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenCon
ainer.java:402)
at org.jboss.ejb.Container.invoke(Container.java:954)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInv
ker.java:987)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.on
essage(JMSContainerInvoker.java:1287)
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:2
6)
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMes
ageConsumer.java:902)
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:1
0)
at org.jboss.mq.SpySession.run(SpySession.java:323)
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExe
utor.java:748)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.ejb.EJBException: Could not instantiate bean
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.
ava:206)
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(Messag
DrivenInstanceInterceptor.java:87)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidatio
Interceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInt
rceptor.java:121)
... 16 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.
ava:204)
... 19 more
Caused by: java.lang.StackOverflowError
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
at com.daiwausa.cashweb.mdb.dao.CashwebDAO.(CashwebDAO.java:26)
at com.daiwausa.cashweb.mdb.bean.CashwebMDB.(CashwebMDB.java:44)
.
..
.
.
Can anyone say whats going wrong here?
Thanks,
Bindiya
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972592#3972592
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972592
19 years, 7 months