[jboss-user] [JBoss jBPM] - Exception when calling jbpmcontext.save

NiB do-not-reply at jboss.com
Thu Jan 11 06:37:48 EST 2007


Hi,
I Get the following error when I call the following source

anonymous wrote : 
  | DEBUG [Services] executing default save operations
  | DEBUG [HibernateSaveOperation] saving process instance
  | DEBUG [SaveLogsOperation] ignoring logs.  no logging service available.
  | DEBUG [CascadeSaveOperation] cascading save of 'org.jbpm.graph.exe.ProcessInstance at 4c03d4'
  | DEBUG [JbpmContext] closing JbpmContext
  | DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService at 1011f1f
  | ERROR [STDERR] org.jbpm.JbpmException: no jbpm tx service configured
  | [...]
  | ERROR [Services] problem closing service 'persistence'
  | org.jbpm.JbpmException: no jbpm tx service configured
  | 

	org.jbpm.JbpmConfiguration jbpmConfiguration = org.jbpm.JbpmConfiguration.parseXmlString(
  | 	    	      "<jbpm-configuration>" +
  | 	    	      
  | 	    	      // A jbpm-context mechanism separates the jbpm core 
  | 	    	      // engine from the services that jbpm uses from 
  | 	    	      // the environment.  
  | 	    	      
  | 	    	      "  <jbpm-context>" +
  | 	    	      "    <service name='persistence' " +
  | 	    	      "             factory='org.jbpm.persistence.db.DbPersistenceServiceFactory' />" + 
  | 	    	      "  </jbpm-context>" +
  | 	    	      
  | 	    	      // Also all the resource files that are used by jbpm are 
  | 	    	      // referenced from the jbpm.cfg.xml
  | 	    	      
  | 	    	      "  <string name='resource.hibernate.cfg.xml' " +
  | 	    	      "          value='config/hibernate.cfg.xml' />" +
  | 	    	      "</jbpm-configuration>"
  | 	    	    );		
  | 	    org.jbpm.JbpmContext jbpmcontext =jbpmConfiguration.createJbpmContext();
  | 	
  | 		try {
  | 			
  | 		org.jbpm.graph.exe.ProcessInstance pi = jbpmcontext.newProcessInstance(processname); 
  | 		
  | 		pi.getRootToken().signal();
  | 		jbpmcontext.save(pi);
  | 		} catch (Exception ex) {
  | 			ex.printStackTrace();
  | 		} finally {
  | 			jbpmcontext.close();
  | 		}
  | 	
  | 		

Why does that happen? Anyone an idea?
Thank you!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000369#4000369

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000369



More information about the jboss-user mailing list