[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction
Hello Rainer, anonymous wrote : you realy have divided your functionality so far that you concurrent threads have NO knowledge The threads do not have any knowledge of any jBPM stuff. They simply run what ever they are asked to and when completed notifies the "waiting" thread that it can signal now. All this works fine, I have not seen any problems. The problems I am having to do has to do with saving and retriving process instance, but nothing to do with threads. May be you can help me. I have one jbpmSession that I open that is used in the main class (the engine) only and it stays open till the process instance completes (normally or abnormally). I also have a helper application that opens its own jbpmSession to save process instance, which it closes once it is done. The helper is used both by the main engine and the fork handler for saving process instance. When I try to save process instance from the engine using the helper, I get the following exception | java.lang.RuntimeException: couldn't save process instance '[EMAIL PROTECTED]' | org.hibernate.collection.AbstractPersistentCollection.setCurrentSession(AbstractPersistentCollection.java:410) | org.hibernate.event.def.OnUpdateVisitor.processCollection(OnUpdateVisitor.java:40) | org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:101) | org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:61) | org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:55) | org.hibernate.event.def.AbstractVisitor.process(AbstractVisitor.java:123) | org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:267) | org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:216) | org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93) | org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) | org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:520) | org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:513) | org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:509) | org.jbpm.db.GraphSession.saveProcessInstance(GraphSession.java:203) | My guess is that it has to do with the session that I opened in main, which is used to save process definition. You tell me. Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925718#3925718 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925718 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: JBPM Configuration
Hello Alex, Sorry I got side traced on to another problem. I can get it to work as you mentioned when I run it from command line. I have ./ in my class path and have hibernate.cfg.xml in the working directory. This works. However, I cannot get it to work if say I put the hibernate.cfg.xml in my.jar and place my.jar in /home/raj and have /home/raj/my.jar as first thing in my classpath. Actually I am trying to get it to work in Eclipse. Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925676#3925676 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925676 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - org.hibernate.LazyInitializationException
Hello, I have a process definition that has a fork in it. I save the process instance at each stage (after signalng at each node). When I retrieve it from the database and try to obtain it's child token (well, really root token's children), I get the following exception: Exception in thread "main" org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.jbpm.graph.exe.Token.children, no session or session was closed | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358) | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350) | at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97) | at org.hibernate.collection.PersistentMap.isEmpty(PersistentMap.java:102) | .. | .. | .. | Any idea. Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925496#3925496 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925496 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction
Hello Rainer, Another question regarding your comment anonymous wrote : GraphSession has a lockProcessInstance() method that will lock by way oh database How can I use this method to do concurrent process instance persistence and token.signal? Also, is the lock released once the update is performed? Thanks Raj FYI: I got the parallel fork woking using action handler that starts new thread to get the work done instead of JMS. Now I am trying to get the persistence in, but having some trouble. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925459#3925459 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925459 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction
Hello All, Let me mention this again and as clearly as I can, I am trying to model an existing process (application) pipeline using the JBPM. The input(s) to the next stage (application) in pipeline is output from previous stage. There are stages that requires multiple input(s) which are generated by mutually exclusive applications. Now, in my world, what do you mean by the following statement. anonymous wrote : Doesn't szenario b) do the trick? Executing whatever long running task you have asynchronously by way of JMS or jBPM 3.1? | | Then you would only have to lock on the processInstance for the short time you need to update variables and trigger a transition. Do you mean to say that instead of actual split (no child tokens, etc.), I send a JMS message that triggers running the mutually exclusive applications in parallel? Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923466#3923466 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923466 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction
Hello Rainer | correct, you will not achieve true Java concurrency with a fork | Are their any plans to enable this? If so, do you roughly know when? Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923412#3923412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923412 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction
Thanks Rainer. If the process instance persistence and token signal are both synchronized over process instance, I will not achieve a truely parallel fork, right? Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922993#3922993 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922993 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction
Hello Rainer, Here is how I understand the problem, see if I am correct. I have one thread that is saving the process instance, which results in the call to the saveLogs. The saveLogs traverses pi's log list using the iterator. Meanwhile another thread calls token.signal(), which causes a new SignalLog being added to the process instance's log list. So the solution is | synchronized(pi) | { | token.signal() | } | Am I right? Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922450#3922450 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922450 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction
Hello Rainer, I think I have the answer to my following question. anonymous wrote : Does 'token.signal()' change process log list? I have the fix and it works. Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922396#3922396 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922396 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process
Thanks Rainer, I do understand that you are a busy man and many many thanks for you time. The code in question implements parallel split. When process execution reaches the split node, threads are created for running each token separately (the main thread runs one of the token, the remanning n-1 are executed in new threads). Each thread (including the main) simply calls token.signal(transitionName) or if no transition name is specified token.signal() until the token ends (the code ends the token when it reaches the join state). Before and after singnalling, the process instance is saved using the persistPI method. When all tokens end the code sets the join state on the parent token and execution returns to the main thread (i.e., parent token). By the way, I have changed my code not to create/use execution context, but simply use token. FYI: The split and join code mimics jbpm Fork and Join code. Again, many thanks for you time and help and please reply when ever you have time. Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922358#3922358 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922358 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction
Hello Rainer Do you mean locking on process instance in this method or everywhere the process instance is used? Because my original code was doing just that, as follows: | public static void persistPI(ProcessInstance pi) | throws Exception | { | synchronized(pi) { | JbpmSessionFactory factory = JbpmSessionFactory.getInstance(); | if (factory == null) | { | System.err.println("Factory is null"); | return; | } | JbpmSession jbpmSession = factory.openJbpmSession(); | jbpmSession.beginTransaction(); | try | { | jbpmSession.getGraphSession().saveProcessInstance(pi); | jbpmSession.commitTransaction(); | } | catch (Exception e) | { | e.printStackTrace(); | jbpmSession.rollbackTransaction(); | throw e; | } | finally | { | jbpmSession.close(); | } | } | } | and I was still getting the same exception. The only other use of process instance in the code that is running concurrently is | ContextInstance ci = token.getProcessInstance().getContextInstance(); | synchronized(ci) | { |ci.createVariable(_node_,joinNode,parentToken); |ci.notify(); | } | Does 'token.signal()' change process log list? Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922349#3922349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922349 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - mulit-threading and commit transaction
Hello, I have a method to persist process instance as follows | | public static synchronized void persistPI(Token token) | throws Exception | { | ProcessInstance pi=token.getProcessInstance(); | JbpmSessionFactory factory = JbpmSessionFactory.getInstance(); | JbpmSession jbpmSession = factory.openJbpmSession(); | jbpmSession.beginTransaction(); | try | { | jbpmSession.getGraphSession().saveProcessInstance(pi); | jbpmSession.commitTransaction(); | } | catch (Exception e) | { | e.printStackTrace(); | jbpmSession.rollbackTransaction(); | throw e; | } | finally | { | jbpmSession.close(); | } | | } | I have multiple threads (one per child token) calling this method. I am getting the following exception | java.lang.RuntimeException: couldn't save process instance '[EMAIL PROTECTED]' | at org.jbpm.db.GraphSession.saveProcessInstance(GraphSession.java:209) | at jpl.mipl.pgs.jbpm.util.Helper.persistPI(Helper.java:35) | at jpl.mipl.pgs.jbpm.action.ForkHandler.run(ForkHandler.java:195) | at jpl.mipl.pgs.jbpm.action.ForkHandler.run(ForkHandler.java:223) | at java.lang.Thread.run(Thread.java:534) | Caused by: java.util.ConcurrentModificationException | at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:448) | at java.util.AbstractList$Itr.next(AbstractList.java:419) | at org.jbpm.db.LoggingSession.saveLogs(LoggingSession.java:86) | at org.jbpm.db.GraphSession.saveProcessInstance(GraphSession.java:204) | ... 4 more | Any ideas. Thanks for your help and time Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922197#3922197 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922197 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process
Hello Rainer, The execution context is created as follows | new ExecutionContext(processInstance.getRootToken()); | Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922182#3922182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922182 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process
Forgot to mention that the code to persist process instance starts a transaction, saves process instance and commits the transaction. So the signal is outside of transaction. I do not think this should matter as I have seen same problem when the signal is with in transaction. Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922122#3922122 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922122 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: 3.0.2 and hibernate configuration
I am able to connect to hsql db using the hsqldb datamanager tool. Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922121#3922121 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922121 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process
Hello Rainer, Thanks for you reply. I know we have been over this before. I am trying to test with simple process definition and it does not work. Here is my test process: | | http://jbpm.org/3/jpdl"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd"; | name="dbexample"> | | | | | | | | | false | 2000 | | | | | | | | true | false | 1000 | | | | | My main program simply does the following while (!executionContext.getToken().hasEnded()) | { | ContextInstance ci = executionContext.getProcessInstance().getContextInstance(); | synchronized(ci) | { | if (ci.hasTransientVariable(jpl.mipl.pgs.test.Testing.HALT)) | { | System.err.println("Halting token="+executionContext.getToken().getFullName()+ | " executed upto token="+executionContext.getToken().getName()); | return; | } | } | //... code that persistes process instance | executionContext.getToken().signal() | //.code that persists process instance | .. | The action in state 'second' sets the halt variable and returns the control to the above loop. At this point the main prints the System.err message and exists. I than rerun the main but this time telling it that it needs to load the process instance with given id from the persistent store. The process instanace loads without any errors, but I get following excepition when I try to examine the token | Exception in thread "main" org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.jbpm.graph.exe.Token.children, no session or session was closed | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358) | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350) | at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343) | at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86) | at org.hibernate.collection.PersistentMap.entrySet(PersistentMap.java:206) | at org.jbpm.graph.exe.Token.getActiveChildren(Token.java:366) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.execute(JBPMExeEngine.java:447) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.main(JBPMExeEngine.java:518) | | This is just with single token, I still need to test with running (children) tokens in parallel and being able to accomplish this. By the way I was advised to look into async action for this very thing, what do you recommend? Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921983#3921983 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921983 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: 3.0.2 and hibernate configuration
okay so I commented out hibernate.connection.datasource=java:/DefaultDS and that error went away, but now I am getting the following error Error obtaining JbpmSession. Error=java.lang.RuntimeException: couldn't get the jbpm table names | Exception in thread "main" java.lang.RuntimeException: couldn't get the jbpm table names | at org.jbpm.db.JbpmSchema.getJbpmTables(JbpmSchema.java:137) | at org.jbpm.db.JbpmSchema.hasJbpmTables(JbpmSchema.java:119) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.(JBPMExeEngine.java:88) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.main(JBPMExeEngine.java:515) | Am I the only one having these problems? Sorry, but I am frustrated. Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921980#3921980 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921980 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - 3.0.2 and hibernate configuration
Hello, I am running hsql server on 'localhost:1701'. I have modified the hibernate.cfg.xml in jbpm.sar.cfg.jar as jdbc:hsqldb:hsql://localhost:1701;sql.enforce_strict_size=true | and the jbpm.sar.cfg.jar is the first thing in my classpath. However, I am getting the following exception log4j:WARN No appenders could be found for logger (org.jbpm.JbpmConfiguration). | log4j:WARN Please initialize the log4j system properly. | Error obtaining JbpmSession. Error=org.hibernate.HibernateException: Could not find datasource | Exception in thread "main" org.hibernate.HibernateException: Could not find datasource | at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56) | at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) | at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) | at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:366) | at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60) | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1859) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1152) | at org.jbpm.db.JbpmSessionFactory.buildSessionFactory(JbpmSessionFactory.java:138) | at org.jbpm.db.JbpmSessionFactory.(JbpmSessionFactory.java:77) | at org.jbpm.db.JbpmSessionFactory.buildJbpmSessionFactory(JbpmSessionFactory.java:94) | at org.jbpm.db.JbpmSessionFactory.buildJbpmSessionFactory(JbpmSessionFactory.java:90) | at org.jbpm.db.JbpmSessionFactory.buildJbpmSessionFactory(JbpmSessionFactory.java:86) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.(JBPMExeEngine.java:87) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.main(JBPMExeEngine.java:515) | Caused by: javax.naming.NameNotFoundException: No object bound for java:/DefaultDS | at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:116) | at javax.naming.InitialContext.lookup(InitialContext.java:347) | at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) | ... 13 more | If I specify a hibernate.cfg.xml in the current directory with the same url, it works. Also, is it possible to use JVM variables to specify these configuration files? I know this will require changing the JbpmConfiguration code but at the end it will make the configuration more flexible. Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921972#3921972 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921972 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process
Hello, Few questions regarding the following remark. anonymous wrote : Or look at 3.1alpha. afaik, there is functionality to suspend and resume. It is alpha, so the code might not be finished. Will this capability allow me to pause in middle of execution, save process instance, exit the application completely, run a different application that retrieves the saved process instance, and rerun from where it exactly left off? Thanks for your time and help. Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921941#3921941 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921941 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: JBPM Configuration
Thanks for the reply. So, do you know if it is possible to configure hibernate with a configuration file that is not bundled into a jar file? I glanced over the hibernate documentation but didn't see any thing that tells otherwise. Would you recommend using the hibernate Configuration object instead of a configuration file? Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920552#3920552 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920552 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Error creating database schema
Hello, I have hsql db running on localhost at default port (1701). While trying to create schema ( jbpmConfiguration.createSchema();) I am getting following exception: Initializing c3p0 pool... [EMAIL PROTECTED] [ connectionPoolDataSource -> [EMAIL PROTECTED] [ acquireIncrement -> 1, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, idleConnectionTestPeriod -> 0, initialPoolSize -> 1, maxIdleTime -> 0, maxPoolSize -> 3, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, nestedDataSource -> [EMAIL PROTECTED] [ description -> null, driverClass -> null, factoryClassLocation -> null, jdbcUrl -> jdbc:hsqldb:hsql://localhost:1701, properties -> {user=**, password=**} ] , preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ] , factoryClassLocation -> null, numHelperThreads -> 3, poolOwnerIdentityToken -> 1aae94f ] | Exception in thread "main" java.lang.ExceptionInInitializerError | at org.hsqldb.jdbc.Util.(Util.java:77) | at org.hsqldb.jdbc.jdbcStatement.fetchResult(jdbcStatement.java:1580) | at org.hsqldb.jdbc.jdbcStatement.executeUpdate(jdbcStatement.java:224) | at com.mchange.v2.c3p0.impl.NewProxyStatement.executeUpdate(NewProxyStatement.java:63) | at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:298) | at org.hibernate.tool.hbm2ddl.SchemaExport.drop(SchemaExport.java:281) | at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:192) | at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:135) | at org.jbpm.persistence.db.DbPersistenceServiceFactory.createSchema(DbPersistenceServiceFactory.java:110) | at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:383) | at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:375) | at jpl.mipl.pgs.test.HelloWorldDbTest.setUp(HelloWorldDbTest.java:81) | at jpl.mipl.pgs.test.HelloWorldDbTest.(HelloWorldDbTest.java:72) | at jpl.mipl.pgs.test.HelloWorldDbTest.main(HelloWorldDbTest.java:273) | Caused by: java.lang.RuntimeException | at org.hsqldb.Trace.(Trace.java:385) | ... 14 more | Any idea. Any one. Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920549#3920549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920549 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - JBPM Configuration
Hello, I am trying to understand how JBPM configuration works in the 3.1 (beta2). I am using the parseInputStream method passing it jbpm.cfg.xml which has | in it. However, I am getting the following exception: | org.hibernate.HibernateException: /home/myhome/hibernate.cfg.xml not found | at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147) | at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1265) | at org.hibernate.cfg.Configuration.configure(Configuration.java:1287) | at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:89) | at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:68) | at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:93) | at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:75) | at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:79) | at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:182) | at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:422) | at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:165) | at jpl.mipl.pgs.test.HelloWorldDbTest.saveInDB(HelloWorldDbTest.java:143) | at jpl.mipl.pgs.test.HelloWorldDbTest.run(HelloWorldDbTest.java:96) | at jpl.mipl.pgs.test.HelloWorldDbTest.(HelloWorldDbTest.java:75) | at jpl.mipl.pgs.test.HelloWorldDbTest.main(HelloWorldDbTest.java:271) | The file exists and it has right permissions set. Please tell me what I am doing wrong. Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920488#3920488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920488 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution
Hello Elmo, anonymous wrote : When you say stand-alone, are you referring to swing applications? No. I mean a command line java application. No GUI yet. Actually, these is what we are trying to do. We need to run a set of programs in a given order. The order in which the programs are executed depends on various well defined conditions. The conditions may change, however, we do not want to modify any code (decision handler or action handler). JBPM's beanshell expressions and conditions are sufficient for us. However, here is the catch. Some of the programs takes hours to run. In an event of failure, we want to be able to pickup from where we left off. Thus, according to my understanding, after each node (or state or ...) is visited, the process instance state needs to be saved. Also, we intent to use the execution context to pass information between processes (nodes). I hope I have made myself clear. If you need more info let me know. Thanks, Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919927#3919927 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919927 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution
Hello, Thanks for your input. First of all, we are not using servlets or EJB in our application, atleast not yet. The application is a standalone application that only executes the given process definition. Having said that, how do you think I can solve this problem. Is it possible to write a generic class/program that executes any given process definition while persisting it after visiting each node (or state or tasknode, etc.). I know different node type acts differently. For example, for node type the execution is propagated by the action handler or node depending on where the action handler is placed. On the other hand, a state node needs explicit signal. And let's not forget the bean shell script conditions. So, is there a way to write a generic execution engine? Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919658#3919658 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919658 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution
Hello Almo anonymous wrote : Are you referring to/calling another process inside the action handler? I am not referring or calling another process inside the action handler. The action handler's main job is to save the process instance. anonymous wrote : Are you modifying another process definition inside your action handler No. My modification, I was referring to the process definition that have the action handler added each of it's transition. What I am trying to do is as processing at each node is completed, save the process instance so if the processing at next node fails, I can start rerunning from the same node where the failure occured. For the example process definition listed below, say if the processing at node 'second' fails, then I want to start reprocessing from state 'second'. I think I can justify why I was getting the exception (I may very well be wrong). I was saving process instance upon each transition. However, which node of the transition is associated with the token at that point is not clear to me. I think this is why the exception stating 'null' node. I modified to store process instance in a action handler that is executed upon node enter event. Now I am getting the following exception when I try to resume. org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.jbpm.graph.def.Node.leavingTransitions, no session or session was closed | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358) | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350) | at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97) | at org.hibernate.collection.PersistentList.size(PersistentList.java:91) | at org.jbpm.graph.def.Node.getDefaultLeavingTransition(Node.java:189) | at org.jbpm.graph.exe.Token.signal(Token.java:89) | at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:201) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.execute(JBPMExeEngine.java:471) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.main(JBPMExeEngine.java:531) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918287#3918287 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918287 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution
Hello Elmo, Again many thanks for you reply. I did added the action to "node-enter" event but it did not changed any thing. Let me try to elaborate on exactly what I am doing. I have a jBPM execution engine that first adds a generic action handler to each transition. The action handler prints a message stating the name of the "from" node and "to" node and also saves process instance into database. The engine than saves the modified process definition and creates process instance using the modified process definition and runs the process instance by calling signal() on it. In the test jBPM process, I only have node and each node has an action handler associated with it that waits for specified time and than calls executionContext.leaveNode(). If I do not interrupt the execution, all works fine and I do see entries into the process definition, process instance and action table. However, when I interrupt the process instance execution (by Ctrl-C when the action handler on the second node is waiting) and try to rerun the process instance I get the null node exception. The 'End' attribute of the process instance table has null value in this case and the 'isabletoreactiveparent' attrubute of the token table has value 'true' in it (see below for the few of the table contents). The one thing I am not able so sure about is in what table does it specify where the process instance should (re)start from? Is it some combination of action/transition table? Please give any help you can. Thanks again for your time and help. Thanks Raj Process Instance Table: ID_ START_END_ PROCESSDEFINITION_ ROOTTOKEN_ SUPERPROCESSTOKE | N_ | --- - - -- -- | -- | 1 2006-01-18 12:11:47.41100 2006-01-18 12:11:58.15500 1 1 (null) | | 2 2006-01-18 12:16:16.52000 (null)2 2 (null) | | | | Action table (only non-null attributes): ID_ CLASS ISPROPAGATIONALLOWED_ ACTIONDELEGATION_ EVENT_ EVENTINDEX_ | --- - - - -- --- | 1 A true 1 1 0 | 2 A true 2 1 1 | 3 A true 3 2 0 | 4 A true 4 3 0 | 5 A true 5 4 0 | 6 A true 6 5 0 | 7 A true 7 6 0 | 8 A true 8 6 1 | 9 A true 9 7 0 | 10 A true 108 0 | 11 A true 119 0 | 12 A true 1210 0 | | Delegation table: ID_ CLASSNAME_CONFIGURATION_ | CONFIGTYPE_ PROCE | SSDEFINITION_ | --- - | --- - | - | 1 jpl.mipl.pgs.jbpm.action.SetUpEnv /project/rt/dev/rrp/pgs/test/upfDir/testJBPM.up | f (null) (null | ) | 2 jpl.mipl.pgs.jbpm.action.ActionUponTransition firststart | (null) (null | ) | 3 jpl.mipl.pgs.test.Testing | http://jbpm.org/3/jpdl";>true | http://jbpm.org/3/jpdl";>2000 | (null) 1 | 4 jpl.mipl.pgs.jbpm.action.ActionUponTransition secondfirst | (null) (null | ) | 5 jpl.mipl.pgs.test.Testing | http://jbpm.org/3/jpdl";>true | http://jbpm.org/3/jpdl";>8000 | (null) 1 | 6 jpl.mipl.pgs.jbpm.action.ActionUponTransition endsecond | (null) (null | ) | 7 jpl.mipl.pgs.jbpm.action.SetUpEnv /project/rt/dev/rrp/pgs/test/upfDir/testJBPM.up | f (null) (null | ) | 8 jpl.mipl.pgs.jbpm.action.ActionUponTransition firststart | (null) (null | ) | 9 jpl.mipl.pgs.test.Testing |
[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution
Hello Elmo, First of all, thanks a lot for your reply. Here is the process definition. | | http://jbpm.org/3/jpdl"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd"; | name="dbexample"> | | | | | | | true | 2000 | | | | | | true | 8000 | | | | | I was using jBPM 3.0.1. I switched to jBPM 3.0.2 and now I am getting the following exception running the above process definition. | java.lang.RuntimeException: couldn't save process instance '[EMAIL PROTECTED]' | at org.jbpm.db.GraphSession.saveProcessInstance(GraphSession.java:209) | at jpl.mipl.pgs.jbpm.action.ActionUponTransition.execute(ActionUponTransition.java:53) | at org.jbpm.graph.def.Action.execute(Action.java:79) | at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:186) | at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:149) | at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:133) | at org.jbpm.graph.def.Transition.take(Transition.java:79) | at org.jbpm.graph.def.Node.leave(Node.java:349) | at org.jbpm.graph.node.StartState.leave(StartState.java:73) | at org.jbpm.graph.exe.Token.signal(Token.java:127) | at org.jbpm.graph.exe.Token.signal(Token.java:92) | at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:201) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.execute(JBPMExeEngine.java:469) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.main(JBPMExeEngine.java:529) | Caused by: java.lang.RuntimeException: couldn't save process log 'transition[start-->unnamed-node]' | at org.jbpm.db.LoggingSession.saveProcessLog(LoggingSession.java:101) | at org.jbpm.db.LoggingSession.saveLogs(LoggingSession.java:87) | at org.jbpm.db.GraphSession.saveProcessInstance(GraphSession.java:204) | ... 13 more | Caused by: org.hibernate.exception.GenericJDBCException: could not insert: [org.jbpm.graph.log.TransitionLog] | at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91) | at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79) | at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) | at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:1986) | at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2405) | at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:37) | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243) | at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:269) | at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167) | at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101) | at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186) | at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33) | at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175) | at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27) | at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) | at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:544) | at org.hibernate.impl.SessionImpl.save(SessionImpl.java:533) | at org.hibernate.impl.SessionImpl.save(SessionImpl.java:529) | at org.jbpm.db.LoggingSession.saveProcessLog(LoggingSession.java:97) | ... 15 more | Caused by: java.sql.SQLException: File input/output error: ./temp/.log in statement [insert into JBPM_LOG (INDEX_, DATE_, TOKEN_, PARENT_, TRANSITION_, SOURCENODE_, DESTINATIONNODE_, CLASS_, ID_) values (?, ?, ?, ?, ?, ?, ?, 'T', null)] | at org.hsqldb.jdbc.Util.throwError(Unknown Source) | at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source) | at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:104) | at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:1976) | ... 30 more |
[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution
Can any one out there help me PLEASE. Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916732#3916732 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916732 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - process instance persistence and reexecution
Hello All, I have a action handler that does the following: | JbpmSessionFactory factory = JbpmSessionFactory.getInstance(); | JbpmSession jbpmSession = factory.openJbpmSession(); | jbpmSession.beginTransaction(); | try | { | ProcessInstance pi=executionContext.getProcessInstance(); | jbpmSession.getGraphSession().saveProcessInstance(pi); | jbpmSession.commitTransaction(); | } | catch (Exception e) | { | e.printStackTrace(); | jbpmSession.rollbackTransaction(); | } | finally | { | jbpmSession.close(); | } | This action handler is associated with each transition programmatically, i.e., it is not part of the original process definition. The action handler gets executed when a transition is taken and I see an entry in the process instance table in db however when I kill the process instance (ctrl-c) and try to rerun (processinstance.signal()) it by obtaining it from database using the instance id. However, I am getting the following exception: java.lang.IllegalStateException: couldn't signal token 'Token(/)' : couldn't leave node 'null' over its default transition | at org.jbpm.graph.exe.Token.signal(Token.java:90) | at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:201) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.execute(JBPMExeEngine.java:469) | at jpl.mipl.pgs.jbpm.JBPMExeEngine.main(JBPMExeEngine.java:529) | What am I doing wrong? PLEASE HELP. Sincerely, Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916243#3916243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916243 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Unable to install the eclise IDE
Hello, I am running eclipse 3.1. I am trying to install the eclipse IDE by following the steps as mentioned in your install guide. Eclipse hangs for long time before returning with an error that it cannot download "org.jboss.ide.eclipse.jdt.j2ee.core_1.4.1.e31-jar15.jar" file. I have seen the progress bar go upto 102KB of 832KB but never beyond that. It hangs there for a good 10 minutes an than gives up with an exception (which basically tells that it cannot download it but that is about it). Thanks for you help Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3896748#3896748 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3896748 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user