I closed the accompanying issue
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070037#4070037
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070037
___
jboss-user mailing list
Don't exactly understand where was a problem, but you're welcome!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070001#4070001
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070001
_
hi,vtysh
With you help,I think the problem is solved.
In other assignment class,have the folowing code:
| Session session = executionContext.getJbpmContext().getSession();
| .
| .
| .
| session.close();
|
thank you! :-(
View the original post :
http://www.jboss.com/index.html?modul
OK,Thank you all the same, vtysh!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069951#4069951
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069951
___
jboss-user mailing li
I don't know, maybe it is an oracle problem. Try to search forum i saw some
topics where users describe theirs problems with oracle environment.
My proposition is to start from simple code open and close context. Then add
ProcessInstance creation, then add other parts of code... Also you can try
sorry , I send the wrong hibernate.cfg.xml
| org.hibernate.dialect.Oracle9Dialect
|
|
| oracle.jdbc.OracleDriver
| jdbc:oracle:thin:@localhost:1521:zbq
| wlsrndf
| wlsrndf
|
|
| org.hibernate.cache.HashtableCacheProvider
|
View the or
You are so kindly! thank you!
I'm not sure if my wording is right,Sorry!
I debug the code you wrote,The same exception(org.hibernate.SessionException:
Session is closed!) was threw at this line:
jbpmContext.save(pi);
My jbpm version is 3.2GA and use default(jbpm.cfg.xml is null) config files
exce
Try to debug this piece of code starting with some simple action gradually
adding all other lines to see which code is broke your application. But it
looks very strange, that after any write operation you get jbpmContext
autoclose. Maybe something is wrong in hibernate or jbpm configuration? Do
Sorry,I forgot the log
09:36:53,328 [http8001-Processor22] DEBUG JbpmContextInfo : creating jbpm
context with service factories '[tx, message, scheduler, logging, persistence,
authentication]'
| 09:36:53,328 [http8001-Processor22] DEBUG JbpmContext : creating [EMAIL
PROTECTED]
| 09:36:53,328
I mean that ,After create the TaskInstance
TaskInstance ti = pi.getTaskMgmtInstance().createStartTaskInstance();
Whether i save ti or close jbpmcontext ,the same exception always throwed.
| 09:27:24,765 [http8001-Processor25] ERROR DbPersistenceService : hibernate
commit failed
| org.hibernat
Before save operation ,I never close context.see this:
try {
| hsession.save(businessReport);
| ProcessDefinition pd =
jbpmContext.getGraphSession().findLatestProcessDefinition("RNDFProcess");
| ProcessInstance pi = pd.createProcessInstance();
You should close context after save operation
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069578#4069578
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069578
___
jboss-use
Thank you with all my words
TaskInstance ti = pi.getTaskMgmtInstance().createStartTaskInstance();
| jbpmContext.save(pi);//there is :org.hibernate.SessionException: Session is
closed
when i close jbpmContext,it will throw the same
exception(org.hibernate.SessionException: Session is)
View the
Try to save process instance after creation and before the task ending
| TaskInstance ti = pi.getTaskMgmtInstance().createStartTaskInstance();
| jbpmContext.save(pi);
|
If it will not help, try to close jbpmContext after creation of start task
instance and create new one (jbpmContext). Th
Hi,vtysh
you are so warmhearted,I'm so sorry for asking you three times.
Why don't you go to sleep?:)
As you say,I modified the code like this:
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
|
Remove all manual actions with transactions and sessions
Session hsession = jbpmContext.getSessionFactory().openSession();
| Transaction transaction = hsession.beginTransaction();
transaction.rollback();
hsession.close();
If you need to save some hibernate object use session from
Thank you vtysh!!
But when delete "transaction.commit();" and try again,The same exception still
throwed.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069532#4069532
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069
I think you get this exception, because you do so
transaction.commit();
If you got this transaction from jbpmContext session you've done wrong. If you
need rollback transaction just use jbpmContext.setRollbackOnly() method and
transaction will be rolled back on close() method.
View the original
18 matches
Mail list logo