日期:2014-05-19  浏览次数:20629 次

jbpm4 错误
public static void main(String[] args) {
ApplicationContext ac=new ClassPathXmlApplicationContext("classpath:conf/app-context.xml");
JbpmService j=(JbpmService) AppUtil.getBean("jbpmService");
// ProcessEngine processEngine = new Configuration().buildProcessEngine();
// RepositoryService repositoryService = processEngine
// .getRepositoryService();
String id=j.getRepositoryService().createDeployment()
.addResourceFromClasspath("jpdl/buyCar.jpdl.xml").deploy();
System.out.println("当前流程部署id:+"+id);
ProcessInstance pi=j.getExecutionService().startProcessInstanceByKey("ubusiness"); //启动流程

}


错误信息如下:
Hibernate: insert into JBPM4_DEPLOYMENT (NAME_, TIMESTAMP_, STATE_) values (?, ?, ?)
Hibernate: insert into JBPM4_LOB (DBVERSION_, BLOB_VALUE_) values (?, ?)
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:123)
at org.hibernate.hql.classic.SelectParser.token(SelectParser.java:96)
at org.hibernate.hql.classic.ClauseParser.token(ClauseParser.java:109)
at org.hibernate.hql.classic.ClauseParser.end(ClauseParser.java:136)
at org.hibernate.hql.classic.PreprocessingParser.end(PreprocessingParser.java:145)
at org.hibernate.hql.classic.ParserHelper.parse(ParserHelper.java:52)
at org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:239)
at org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:208)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1650)
at org.jbpm.pvm.internal.query.AbstractQuery.execute(AbstractQuery.java:85)
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(ProcessDefinitionQueryImpl.java:65)
at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:64)
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.list(ProcessDefinitionQueryImpl.java:141)
at org.jbpm.jpdl.internal.repository.JpdlDeployer.checkKey(JpdlDeployer.java:112)
at org.jbpm.jpdl.internal.repository.JpdlDeployer.deploy(JpdlDeployer.java:83)
at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:55)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:46)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:32)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.spring.CommandTransactionCallback.doInTransaction(CommandTransactionCallback.java:50)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:79)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:89)
at com.pysoft.test.jbpm.JbpmTestCase.main(JbpmTestCase.java:70