0 0

jBPM4.4 部署流程文件时出错5

jBPM4.4 + Struts2.3.7 + Spring 3.2.0 + Hibernate 3.3.1
数据库版本是Mysql5.5

下面是Java代码
package cn.itcast.jbpm.a_quickstart;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.jbpm.api.NewDeployment;
import org.jbpm.api.RepositoryService;
import org.junit.Test;
public class QuickStartTest {
	@Test
	// 使用hibernate加载配置文件完成建表操作
	public void testHibernateCreateTable() {
		// 能否使用hibernate 加载配置文件,创建表
		org.hibernate.cfg.Configuration configuration = new org.hibernate.cfg.Configuration();// 加载hibernate.properties
		configuration.configure("jbpm.hibernate.cfg.xml");// 默认加载hibernate.cfg.xml
		SessionFactory sessionFactory = configuration.buildSessionFactory();

		Session session = sessionFactory.openSession();
		session.close();
		sessionFactory.close();
	}

	@Test
	// 使用jbpm方式建表
	public void testJbpmCreateTable() {
		// 使用jbpm提供Configuration
		org.jbpm.api.Configuration.getProcessEngine();
	}

	@Test
	// 部署流程
	public void testDeploy() {
		//ProcessEngine processEngine = org.jbpm.api.Configuration.getProcessEngine();
		// 获得实例管理Service
		RepositoryService repositoryService = org.jbpm.api.Configuration.getProcessEngine().getRepositoryService();
		// 创建一个部署对象
		NewDeployment createDeployment = repositoryService.createDeployment();

		createDeployment.addResourceFromClasspath("helloworld/helloworld.jpdl.xml");
		System.out.println(createDeployment);
		createDeployment.addResourceFromClasspath("helloworld/helloworld.png");
		// 发布
		createDeployment.deploy();
	}

}



要部署的流程文件
<?xml version="1.0" encoding="UTF-8"?>

<process name="helloworld" xmlns="http://jbpm.org/4.4/jpdl">
	<start g="305,9,40,27" name="start1">
		<transition name="to 提交申请[员工]" to="提交申请[员工]" g="-107,-17" />
	</start>
	<end g="305,369,48,48" name="end1" />
	<task g="245,93,169,37" name="提交申请[员工]" assignee="员工">
		<transition name="to 审批[部门经理]" to="审批[部门经理]" g="-107,-17" />
	</task>
	<task name="审批[部门经理]" g="245,183,169,43" assignee="部门经理">
		<transition name="to 审批[总经理]" to="审批[总经理]" g="-95,-17" />
	</task>
	<task name="审批[总经理]" g="245,285,169,41" assignee="总经理">
		<transition name="to end1" to="end1" g="-47,-17" />
	</task>
</process>


运行部署方法时,出现下面错误:
2014-04-19 16:44:16,718  INFO - Hibernate Commons Annotations 3.2.0.Final
2014-04-19 16:44:16,718  INFO - Hibernate 3.6.10.Final
2014-04-19 16:44:16,718  INFO - hibernate.properties not found
2014-04-19 16:44:16,718  INFO - Bytecode provider name : javassist
2014-04-19 16:44:16,734  INFO - using JDK 1.4 java.sql.Timestamp handling
2014-04-19 16:44:16,828  INFO - configuring from resource: jbpm.hibernate.cfg.xml
2014-04-19 16:44:16,828  INFO - Configuration resource: jbpm.hibernate.cfg.xml
2014-04-19 16:44:16,890  WARN - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2014-04-19 16:44:16,921  INFO - Reading mappings from resource : jbpm.repository.hbm.xml
2014-04-19 16:44:16,953  WARN - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2014-04-19 16:44:17,000  INFO - Reading mappings from resource : jbpm.execution.hbm.xml
2014-04-19 16:44:17,000  WARN - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2014-04-19 16:44:17,046  INFO - Reading mappings from resource : jbpm.history.hbm.xml
2014-04-19 16:44:17,046  WARN - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2014-04-19 16:44:17,078  INFO - Reading mappings from resource : jbpm.task.hbm.xml
2014-04-19 16:44:17,078  WARN - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2014-04-19 16:44:17,093  INFO - Reading mappings from resource : jbpm.identity.hbm.xml
2014-04-19 16:44:17,093  WARN - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2014-04-19 16:44:17,109  INFO - Configured SessionFactory: null
2014-04-19 16:44:17,203  INFO - Mapping class: org.jbpm.pvm.internal.repository.DeploymentImpl -> JBPM4_DEPLOYMENT
2014-04-19 16:44:17,234  INFO - Mapping class: org.jbpm.pvm.internal.repository.DeploymentProperty -> JBPM4_DEPLOYPROP
2014-04-19 16:44:17,250  INFO - Mapping class: org.jbpm.pvm.internal.id.PropertyImpl -> JBPM4_PROPERTY
2014-04-19 16:44:17,250  INFO - Mapping class: org.jbpm.pvm.internal.model.ExecutionImpl -> JBPM4_EXECUTION
2014-04-19 16:44:17,296  INFO - Mapping class: org.jbpm.pvm.internal.type.Variable -> JBPM4_VARIABLE
2014-04-19 16:44:17,312  INFO - Mapping subclass: org.jbpm.pvm.internal.type.variable.BlobVariable -> JBPM4_VARIABLE
2014-04-19 16:44:17,312  INFO - Mapping subclass: org.jbpm.pvm.internal.type.variable.DateVariable -> JBPM4_VARIABLE
2014-04-19 16:44:17,312  INFO - Mapping subclass: org.jbpm.pvm.internal.type.variable.DoubleVariable -> JBPM4_VARIABLE
2014-04-19 16:44:17,312  INFO - Mapping subclass: org.jbpm.pvm.internal.type.variable.HibernateLongVariable -> JBPM4_VARIABLE
2014-04-19 16:44:17,312  INFO - Mapping subclass: org.jbpm.pvm.internal.type.variable.HibernateStringVariable -> JBPM4_VARIABLE
2014-04-19 16:44:17,312  INFO - Mapping subclass: org.jbpm.pvm.internal.type.variable.LongVariable -> JBPM4_VARIABLE
2014-04-19 16:44:17,328  INFO - Mapping subclass: org.jbpm.pvm.internal.type.variable.NullVariable -> JBPM4_VARIABLE
2014-04-19 16:44:17,328  INFO - Mapping subclass: org.jbpm.pvm.internal.type.variable.StringVariable -> JBPM4_VARIABLE
2014-04-19 16:44:17,328  INFO - Mapping subclass: org.jbpm.pvm.internal.type.variable.TextVariable -> JBPM4_VARIABLE
2014-04-19 16:44:17,328  INFO - Mapping class: org.jbpm.pvm.internal.lob.Lob -> JBPM4_LOB
2014-04-19 16:44:17,328  INFO - Mapping class: org.jbpm.pvm.internal.job.JobImpl -> JBPM4_JOB
2014-04-19 16:44:17,328  INFO - Mapping subclass: org.jbpm.pvm.internal.job.MessageImpl -> JBPM4_JOB
2014-04-19 16:44:17,328  INFO - Mapping subclass: org.jbpm.pvm.internal.model.op.ExecuteActivityMessage -> JBPM4_JOB
2014-04-19 16:44:17,328  INFO - Mapping subclass: org.jbpm.pvm.internal.model.op.ExecuteEventListenerMessage -> JBPM4_JOB
2014-04-19 16:44:17,328  INFO - Mapping subclass: org.jbpm.pvm.internal.job.CommandMessage -> JBPM4_JOB
2014-04-19 16:44:17,328  INFO - Mapping subclass: org.jbpm.pvm.internal.job.TimerImpl -> JBPM4_JOB
2014-04-19 16:44:17,328  INFO - Mapping subclass: org.jbpm.pvm.internal.job.StartProcessTimer -> JBPM4_JOB
2014-04-19 16:44:17,328  INFO - Mapping class: org.jbpm.pvm.internal.history.model.HistoryProcessInstanceImpl -> JBPM4_HIST_PROCINST
2014-04-19 16:44:17,328  INFO - Mapping class: org.jbpm.pvm.internal.history.model.HistoryActivityInstanceImpl -> JBPM4_HIST_ACTINST
2014-04-19 16:44:17,343  INFO - Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryAutomaticInstanceImpl -> JBPM4_HIST_ACTINST
2014-04-19 16:44:17,343  INFO - Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryDecisionInstanceImpl -> JBPM4_HIST_ACTINST
2014-04-19 16:44:17,343  INFO - Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryTaskInstanceImpl -> JBPM4_HIST_ACTINST
2014-04-19 16:44:17,343  INFO - Mapping class: org.jbpm.pvm.internal.history.model.HistoryTaskImpl -> JBPM4_HIST_TASK
2014-04-19 16:44:17,343  INFO - Mapping class: org.jbpm.pvm.internal.history.model.HistoryVariableImpl -> JBPM4_HIST_VAR
2014-04-19 16:44:17,343  INFO - Mapping class: org.jbpm.pvm.internal.history.model.HistoryDetailImpl -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,343  INFO - Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryCommentImpl -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,343  INFO - Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryProcessInstanceMigrationImpl -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,343  INFO - Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryPriorityUpdateImpl -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,343  INFO - Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryTaskAssignmentImpl -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,359  INFO - Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryTaskDuedateUpdateImpl -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,359  INFO - Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryVariableUpdateImpl -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,359  INFO - Mapping class: org.jbpm.pvm.internal.task.TaskImpl -> JBPM4_TASK
2014-04-19 16:44:17,359  INFO - Mapping class: org.jbpm.pvm.internal.task.ParticipationImpl -> JBPM4_PARTICIPATION
2014-04-19 16:44:17,359  INFO - Mapping class: org.jbpm.pvm.internal.task.SwimlaneImpl -> JBPM4_SWIMLANE
2014-04-19 16:44:17,359  INFO - Mapping class: org.jbpm.pvm.internal.identity.impl.UserImpl -> JBPM4_ID_USER
2014-04-19 16:44:17,375  INFO - Mapping class: org.jbpm.pvm.internal.identity.impl.MembershipImpl -> JBPM4_ID_MEMBERSHIP
2014-04-19 16:44:17,375  INFO - Mapping class: org.jbpm.pvm.internal.identity.impl.GroupImpl -> JBPM4_ID_GROUP
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.repository.DeploymentImpl.resources -> JBPM4_LOB
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.repository.DeploymentImpl.objectProperties -> JBPM4_DEPLOYPROP
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.variables -> JBPM4_VARIABLE
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.systemVariables -> JBPM4_VARIABLE
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.executions -> JBPM4_EXECUTION
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.swimlanes -> JBPM4_SWIMLANE
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.history.model.HistoryProcessInstanceImpl.historyActivityInstances -> JBPM4_HIST_ACTINST
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.history.model.HistoryProcessInstanceImpl.historyVariables -> JBPM4_HIST_VAR
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.history.model.HistoryProcessInstanceImpl.details -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.history.model.HistoryActivityInstanceImpl.details -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.history.model.HistoryTaskImpl.details -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.history.model.HistoryTaskImpl.historyVariables -> JBPM4_HIST_VAR
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.history.model.HistoryTaskImpl.subTasks -> JBPM4_HIST_TASK
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.history.model.HistoryVariableImpl.details -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.history.model.HistoryCommentImpl.replies -> JBPM4_HIST_DETAIL
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.task.TaskImpl.participations -> JBPM4_PARTICIPATION
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.task.TaskImpl.variables -> JBPM4_VARIABLE
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.task.TaskImpl.subTasks -> JBPM4_TASK
2014-04-19 16:44:17,375  INFO - Mapping collection: org.jbpm.pvm.internal.task.SwimlaneImpl.participations -> JBPM4_PARTICIPATION
2014-04-19 16:44:17,375  INFO - Hibernate Validator not found: ignoring
2014-04-19 16:44:17,390  INFO - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
2014-04-19 16:44:17,406  INFO - Using Hibernate built-in connection pool (not for production use!)
2014-04-19 16:44:17,406  INFO - Hibernate connection pool size: 20
2014-04-19 16:44:17,406  INFO - autocommit mode: false
2014-04-19 16:44:17,421  INFO - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql:///jbpm01
2014-04-19 16:44:17,421  INFO - connection properties: {user=root, password=****}
2014-04-19 16:44:17,718  INFO - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
2014-04-19 16:44:17,734  INFO - Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
2014-04-19 16:44:17,734  INFO - Database ->
       name : MySQL
    version : 5.5.15
      major : 5
      minor : 5
2014-04-19 16:44:17,734  INFO - Driver ->
       name : MySQL-AB JDBC Driver
    version : mysql-connector-java-5.0.8 ( Revision: ${svn.Revision} )
      major : 5
      minor : 0
2014-04-19 16:44:17,734  INFO - Using default transaction strategy (direct JDBC transactions)
2014-04-19 16:44:17,734  INFO - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2014-04-19 16:44:17,734  INFO - Automatic flush during beforeCompletion(): disabled
2014-04-19 16:44:17,734  INFO - Automatic session close at end of transaction: disabled
2014-04-19 16:44:17,734  INFO - JDBC batch size: 15
2014-04-19 16:44:17,734  INFO - JDBC batch updates for versioned data: disabled
2014-04-19 16:44:17,734  INFO - Scrollable result sets: enabled
2014-04-19 16:44:17,734  INFO - JDBC3 getGeneratedKeys(): enabled
2014-04-19 16:44:17,734  INFO - Connection release mode: auto
2014-04-19 16:44:17,734  INFO - Maximum outer join fetch depth: 2
2014-04-19 16:44:17,734  INFO - Default batch fetch size: 1
2014-04-19 16:44:17,734  INFO - Generate SQL with comments: disabled
2014-04-19 16:44:17,734  INFO - Order SQL updates by primary key: disabled
2014-04-19 16:44:17,734  INFO - Order SQL inserts for batching: disabled
2014-04-19 16:44:17,734  INFO - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2014-04-19 16:44:17,750  INFO - Using ASTQueryTranslatorFactory
2014-04-19 16:44:17,750  INFO - Query language substitutions: {}
2014-04-19 16:44:17,750  INFO - JPA-QL strict compliance: disabled
2014-04-19 16:44:17,750  INFO - Second-level cache: enabled
2014-04-19 16:44:17,750  INFO - Query cache: disabled
2014-04-19 16:44:17,750  INFO - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
2014-04-19 16:44:17,750  INFO - Optimize cache for minimal puts: disabled
2014-04-19 16:44:17,750  INFO - Structured second-level cache entries: disabled
2014-04-19 16:44:17,750  INFO - Echoing all SQL to stdout
2014-04-19 16:44:17,750  INFO - Statistics: disabled
2014-04-19 16:44:17,750  INFO - Deleted entity synthetic identifier rollback: disabled
2014-04-19 16:44:17,750  INFO - Default entity-mode: pojo
2014-04-19 16:44:17,750  INFO - Named query checking : enabled
2014-04-19 16:44:17,750  INFO - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
2014-04-19 16:44:17,781  INFO - building session factory
2014-04-19 16:44:17,781  INFO - Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@ade4a
2014-04-19 16:44:17,781  INFO - Type registration [blob] overrides previous : org.hibernate.type.BlobType@18806c4
2014-04-19 16:44:17,781  INFO - Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@18806c4
2014-04-19 16:44:17,781  INFO - Type registration [clob] overrides previous : org.hibernate.type.ClobType@1744222
2014-04-19 16:44:17,781  INFO - Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@1744222
2014-04-19 16:44:17,781  INFO - Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@1a1f0fb
2014-04-19 16:44:17,781  INFO - Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@d42b12
2014-04-19 16:44:17,781  INFO - Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@157d954
2014-04-19 16:44:17,781  INFO - Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@7d29df
2014-04-19 16:44:18,437  INFO - Not binding factory to JNDI, no JNDI name configured
2014-04-19 16:44:18,453  INFO - Running hbm2ddl schema update
2014-04-19 16:44:18,453  INFO - fetching database metadata
2014-04-19 16:44:18,453  INFO - updating schema
2014-04-19 16:44:18,546  INFO - table found: jbpm01.jbpm4_deployment
2014-04-19 16:44:18,546  INFO - columns: [dbid_, timestamp_, state_, name_]
2014-04-19 16:44:18,546  INFO - foreign keys: []
2014-04-19 16:44:18,546  INFO - indexes: [primary]
2014-04-19 16:44:18,562  INFO - table found: jbpm01.jbpm4_deployprop
2014-04-19 16:44:18,562  INFO - columns: [key_, objname_, dbid_, deployment_, longval_, stringval_]
2014-04-19 16:44:18,562  INFO - foreign keys: [fk_deplprop_depl]
2014-04-19 16:44:18,562  INFO - indexes: [fk_deplprop_depl, primary, idx_deplprop_depl]
2014-04-19 16:44:18,593  INFO - table found: jbpm01.jbpm4_execution
2014-04-19 16:44:18,593  INFO - columns: [parent_, dbid_, subprocinst_, procdefid_, hisactinst_, parent_idx_, superexec_, hasvars_, name_, class_, priority_, key_, activityname_, dbversion_, instance_, susphiststate_, id_, state_]
2014-04-19 16:44:18,593  INFO - foreign keys: [fk_exec_instance, fk_exec_subpi, fk_exec_superexec, fk_exec_parent]
2014-04-19 16:44:18,593  INFO - indexes: [fk_exec_instance, idx_exec_superexec, fk_exec_subpi, fk_exec_superexec, fk_exec_parent, primary, idx_exec_instance, id_, idx_exec_subpi, idx_exec_parent]
2014-04-19 16:44:18,609  INFO - table found: jbpm01.jbpm4_hist_actinst
2014-04-19 16:44:18,609  INFO - columns: [transition_, type_, dbid_, hproci_, nextidx_, duration_, activity_name_, dbversion_, start_, htask_, execution_, end_, class_]
2014-04-19 16:44:18,609  INFO - foreign keys: [fk_hti_htask, fk_hacti_hproci]
2014-04-19 16:44:18,609  INFO - indexes: [idx_hti_htask, primary, fk_hti_htask, fk_hacti_hproci, idx_hacti_hproci]
2014-04-19 16:44:18,640  INFO - table found: jbpm01.jbpm4_hist_detail
2014-04-19 16:44:18,640  INFO - columns: [new_str_, parent_, dbid_, hproci_, hvar_, userid_, hprociidx_, old_int_, time_, parent_idx_, old_time_, htask_, class_, old_str_, htaskidx_, hvaridx_, hactiidx_, new_time_, dbversion_, hacti_, new_int_, message_]
2014-04-19 16:44:18,640  INFO - foreign keys: [fk_hdetail_hacti, fk_hdetail_hvar, fk_hdetail_htask, fk_hdetail_hproci]
2014-04-19 16:44:18,640  INFO - indexes: [idx_hdet_hvar, fk_hdetail_hacti, idx_hdet_htask, fk_hdetail_hvar, fk_hdetail_htask, fk_hdetail_hproci, primary, idx_hdet_hacti, idx_hdet_hproci]
2014-04-19 16:44:18,656  INFO - table found: jbpm01.jbpm4_hist_procinst
2014-04-19 16:44:18,656  INFO - columns: [key_, dbid_, nextidx_, procdefid_, duration_, endactivity_, dbversion_, start_, id_, state_, end_]
2014-04-19 16:44:18,656  INFO - foreign keys: []
2014-04-19 16:44:18,656  INFO - indexes: [primary]
2014-04-19 16:44:18,687  INFO - table found: jbpm01.jbpm4_hist_task
2014-04-19 16:44:18,687  INFO - columns: [dbid_, nextidx_, duration_, dbversion_, supertask_, state_, execution_, end_, create_, priority_, assignee_, outcome_]
2014-04-19 16:44:18,687  INFO - foreign keys: [fk_hsupert_sub]
2014-04-19 16:44:18,687  INFO - indexes: [fk_hsupert_sub, primary, idx_hsupert_sub]
2014-04-19 16:44:18,703  INFO - table found: jbpm01.jbpm4_hist_var
2014-04-19 16:44:18,703  INFO - columns: [varname_, dbid_, hproci_, dbversion_, procinstid_, htask_, value_, executionid_]
2014-04-19 16:44:18,703  INFO - foreign keys: [fk_hvar_hproci, fk_hvar_htask]
2014-04-19 16:44:18,703  INFO - indexes: [fk_hvar_hproci, idx_hvar_htask, fk_hvar_htask, primary, idx_hvar_hproci]
2014-04-19 16:44:18,718  INFO - table found: jbpm01.jbpm4_id_group
2014-04-19 16:44:18,718  INFO - columns: [type_, parent_, dbid_, dbversion_, id_, name_]
2014-04-19 16:44:18,718  INFO - foreign keys: [fk_group_parent]
2014-04-19 16:44:18,718  INFO - indexes: [fk_group_parent, primary, idx_group_parent]
2014-04-19 16:44:18,734  INFO - table found: jbpm01.jbpm4_id_membership
2014-04-19 16:44:18,734  INFO - columns: [dbid_, user_, dbversion_, group_, name_]
2014-04-19 16:44:18,734  INFO - foreign keys: [fk_mem_user, fk_mem_group]
2014-04-19 16:44:18,734  INFO - indexes: [idx_mem_group, fk_mem_user, primary, fk_mem_group, idx_mem_user]
2014-04-19 16:44:18,750  INFO - table found: jbpm01.jbpm4_id_user
2014-04-19 16:44:18,750  INFO - columns: [dbid_, familyname_, givenname_, dbversion_, businessemail_, id_, password_]
2014-04-19 16:44:18,750  INFO - foreign keys: []
2014-04-19 16:44:18,750  INFO - indexes: [primary]
2014-04-19 16:44:18,765  INFO - table found: jbpm01.jbpm4_job
2014-04-19 16:44:18,765  INFO - columns: [dbid_, cfg_, lockowner_, duedate_, class_, lockexptime_, signal_, retries_, repeat_, processinstance_, dbversion_, event_, state_, exception_, execution_, isexclusive_]
2014-04-19 16:44:18,765  INFO - foreign keys: [fk_job_cfg]
2014-04-19 16:44:18,765  INFO - indexes: [idx_job_cfg, idx_jobduedate, idx_jobretries, idx_joblockexp, primary, idx_job_prinst, fk_job_cfg, idx_job_exe]
2014-04-19 16:44:18,781  INFO - table found: jbpm01.jbpm4_lob
2014-04-19 16:44:18,781  INFO - columns: [dbid_, dbversion_, deployment_, blob_value_, name_]
2014-04-19 16:44:18,781  INFO - foreign keys: [fk_lob_deployment]
2014-04-19 16:44:18,781  INFO - indexes: [primary, fk_lob_deployment, idx_lob_deployment]
2014-04-19 16:44:18,796  INFO - table found: jbpm01.jbpm4_participation
2014-04-19 16:44:18,796  INFO - columns: [task_, type_, dbid_, groupid_, userid_, swimlane_, dbversion_]
2014-04-19 16:44:18,796  INFO - foreign keys: [fk_part_swimlane, fk_part_task]
2014-04-19 16:44:18,796  INFO - indexes: [fk_part_swimlane, primary, idx_part_task, fk_part_task]
2014-04-19 16:44:18,812  INFO - table found: jbpm01.jbpm4_property
2014-04-19 16:44:18,812  INFO - columns: [key_, version_, value_]
2014-04-19 16:44:18,812  INFO - foreign keys: []
2014-04-19 16:44:18,812  INFO - indexes: [primary]
2014-04-19 16:44:18,828  INFO - table found: jbpm01.jbpm4_swimlane
2014-04-19 16:44:18,828  INFO - columns: [dbid_, dbversion_, execution_, name_, assignee_]
2014-04-19 16:44:18,828  INFO - foreign keys: [fk_swimlane_exec]
2014-04-19 16:44:18,828  INFO - indexes: [primary, fk_swimlane_exec, idx_swimlane_exec]
2014-04-19 16:44:18,859  INFO - table found: jbpm01.jbpm4_task
2014-04-19 16:44:18,859  INFO - columns: [progress_, dbid_, procinst_, activity_name_, execution_id_, form_, hasvars_, signalling_, name_, duedate_, class_, priority_, taskdefname_, swimlane_, dbversion_, supertask_, susphiststate_, state_, execution_, create_, descr_, assignee_]
2014-04-19 16:44:18,859  INFO - foreign keys: [fk_task_swiml, fk_task_supertask]
2014-04-19 16:44:18,859  INFO - indexes: [fk_task_swiml, idx_task_supertask, primary, fk_task_supertask]
2014-04-19 16:44:18,875  INFO - table found: jbpm01.jbpm4_variable
2014-04-19 16:44:18,875  INFO - columns: [exesys_, converter_, lob_, double_value_, text_value_, dbid_, classname_, date_value_, class_, key_, long_value_, task_, dbversion_, hist_, execution_, string_value_]
2014-04-19 16:44:18,875  INFO - foreign keys: [fk_var_task, fk_var_lob, fk_var_exesys, fk_var_execution]
2014-04-19 16:44:18,875  INFO - indexes: [idx_var_execution, idx_var_task, fk_var_task, primary, idx_var_lob, fk_var_lob, fk_var_exesys, idx_var_exesys, fk_var_execution]
2014-04-19 16:44:18,875  INFO - schema update complete
Hibernate:
    select
        propertyim0_.KEY_ as KEY1_2_,
        propertyim0_.VERSION_ as VERSION2_2_,
        propertyim0_.VALUE_ as VALUE3_2_
    from
        JBPM4_PROPERTY propertyim0_ limit ?
Hibernate:
    select
        propertyim0_.KEY_ as KEY1_2_0_,
        propertyim0_.VERSION_ as VERSION2_2_0_,
        propertyim0_.VALUE_ as VALUE3_2_0_
    from
        JBPM4_PROPERTY propertyim0_
    where
        propertyim0_.KEY_=?
2014-04-19 16:44:19,218  INFO - jBPM version info: library[4.4-SNAPSHOT], schema[null]
deployment(0)
2014-04-19 16:44:19,281  INFO - loading schema resource: jpdl-4.0.xsd
2014-04-19 16:44:19,281  INFO - loading schema resource: jpdl-4.2.xsd
2014-04-19 16:44:19,281  INFO - loading schema resource: jpdl-4.3.xsd
2014-04-19 16:44:19,281  INFO - loading schema resource: jpdl-4.4.xsd
2014-04-19 16:44:19,312  INFO - loading schema resource: BPMN20.xsd
2014-04-19 16:44:19,312  INFO - loading schema resource: DiagramDefinition.xsd
2014-04-19 16:44:19,312  INFO - loading schema resource: DiagramInterchange.xsd
2014-04-19 16:44:19,312  INFO - loading schema resource: BpmnDi.xsd
Hibernate:
    select
        this_.KEY_ as KEY1_2_0_,
        this_.VERSION_ as VERSION2_2_0_,
        this_.VALUE_ as VALUE3_2_0_
    from
        JBPM4_PROPERTY this_
    where
        this_.KEY_=?
Hibernate:
    update
        JBPM4_PROPERTY
    set
        VERSION_=?,
        VALUE_=?
    where
        KEY_=?
        and VERSION_=?
Hibernate:
    select
        lob_.DBID_,
        lob_.DBVERSION_ as DBVERSION2_5_,
        lob_.BLOB_VALUE_ as BLOB3_5_
    from
        JBPM4_LOB lob_
    where
        lob_.DBID_=?
Hibernate:
    select
        lob_.DBID_,
        lob_.DBVERSION_ as DBVERSION2_5_,
        lob_.BLOB_VALUE_ as BLOB3_5_
    from
        JBPM4_LOB lob_
    where
        lob_.DBID_=?
Hibernate:
    insert
    into
        JBPM4_DEPLOYMENT
        (NAME_, TIMESTAMP_, STATE_, DBID_)
    values
        (?, ?, ?, ?)
Hibernate:
    insert
    into
        JBPM4_LOB
        (DBVERSION_, BLOB_VALUE_, DBID_)
    values
        (?, ?, ?)
Hibernate:
    insert
    into
        JBPM4_LOB
        (DBVERSION_, BLOB_VALUE_, DBID_)
    values
        (?, ?, ?)
2014-04-19 16:44:19,625  WARN - SQL Error: 1064, SQLState: 42000
2014-04-19 16:44:19,625 ERROR - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '屻检賧欃??Y蟗挽賩?匙氾z骓?\0\0@c玺\0\0\0??\0\0?r
\0\0@k?\0\0??\0\0' at line 1
2014-04-19 16:44:19,625  INFO - exception while executing command org.jbpm.pvm.internal.cmd.DeployCmd@173afa2
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:92)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:114)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:109)
at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:244)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2412)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2875)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:265)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:64)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:1185)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1261)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.jbpm.pvm.internal.query.AbstractQuery.execute(AbstractQuery.java:93)
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(ProcessDefinitionQueryImpl.java:67)
at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:67)
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.list(ProcessDefinitionQueryImpl.java:157)
at org.jbpm.pvm.internal.repository.ProcessDeployer.checkKey(ProcessDeployer.java:133)
at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(ProcessDeployer.java:92)
at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:62)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:47)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:33)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:90)
at cn.itcast.jbpm.a_quickstart.QuickStartTest.testDeploy(QuickStartTest.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.sql.BatchUpdateException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '屻检賧欃??Y蟗挽賩?匙氾z骓?\0\0@c玺\0\0\0??\0\0?r
\0\0@k?\0\0??\0\0' at line 1
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1269)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:955)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 55 more


有兴趣的帮忙看看。。。。
2014年4月19日 17:02

2个答案 按时间排序 按投票排序

0 0

mysql语法错误,编码有误!

2014年4月21日 14:17
0 0

编码问题。

2014年4月19日 21:40

相关推荐

    jBPM4.4.rar_jbpm4.4_jbpm4.4 PDF

    《jBPM4.4开发指南》与《jBPM4.4中文用户手册》是深入理解jBPM4.4这一开源工作流管理系统的重要参考资料。jBPM,全称Java Business Process Management,是一个用于执行业务流程的轻量级、灵活的开源框架,它为业务...

    jbpm4.4 流程运转+驳回+分配组任务+ssh2

    - **命令行工具**:jbpm4.4可以通过SSH2与命令行工具结合,实现远程的流程部署、启动和管理,提供了一种安全的远程操作方式。 通过深入了解和实践jbpm4.4中的这些功能,你可以构建出强大的业务流程管理系统,有效...

    jBPM4.4开发实例

    **四、jBPM4.4流程部署** 1. **打包流程**:将流程定义文件和相关资源打包成.jar或.war文件。 2. **部署到jBPM服务器**:通过jBPM的API或管理控制台将流程部署到服务器,使其可供执行。 **五、jBPM4.4流程执行** ...

    JBPM4.4视频教程(22集附源码)

    资源名称:JBPM4.4视频教程(22集附源码)资源目录:【】(01)jbpm4.4简介【】(02)JBPM4.4开发环境搭建【】(03)jbpm4.4环境搭建续【】(04)jbpm4.4配置文件和开发前准备【】(05)jbpm4.4部署流程发起流程实例【】(06)...

    jbpm4.4下载地址

    1. **流程定义语言**:jBPM 4.4支持多种流程定义语言,包括BPMN2.0(Business Process Model and Notation),这是一种标准化的图形表示法,用于描述业务流程。此外,它还支持JPDL(jBPM Process Definition ...

    JBPM4.4流程管理Demo(附学习资料)

    【JBPM4.4流程管理Demo】是一个基于JBPM4.4版本的示例项目,主要展示了如何在实际业务场景中应用工作流引擎进行流程管理,特别是报销流程的管理。这个Demo不仅包含了可运行的代码,还附带了学习资料和SQL文件,方便...

    jbpm4.4 在线设计流程图 ext + raphael

    在jbpm4.4中设计流程图时,用户可以通过拖放操作添加各种流程元素,如开始事件、结束事件、任务和网关等。每种元素都有其特定的行为和规则,例如任务节点代表工作流中的一个具体步骤,而网关则用于控制流程分支和...

    jbpm4.4部署在myeclipse上详解

    jbpm4.4部署在myeclipse上详解。本文档是自己结合网上多个资料,进行总结而得。

    jbpm4.4+s2sh请假流程例子

    【jbpm4.4+s2sh请假流程例子】是一个典型的结合了jbpm4.4工作流引擎和Struts2、Spring、Hibernate(S2SH)框架的实战项目,旨在演示如何在企业级应用中实现一个完整的请假流程。在这个例子中,jbpm4.4作为流程管理的...

    JBPM4.4完整可用审批流程

    在开发和部署BPM流程时,错误和异常是常见的,如任务未找到、流程实例无法启动、数据库连接问题等。这些报错指南可能是开发者根据经验总结出的常见问题解决方案,或者是官方文档中的错误处理部分,对于快速定位和...

    jbpm4.4文档+学习资料

    jbpm4.4是JBoss企业级业务流程管理(Business Process Management)平台的一个重要版本,它为开发者提供了全面的工作流和业务流程管理解决方案。本文将深入解析jbpm4.4的相关知识点,帮助那些寻找优质学习资源的朋友...

    JBPM4.4资料的其他补充

    在JBPM4.4版本中,开发者可以利用其提供的API和工具来设计、部署和执行复杂的业务流程。 首先,让我们深入了解一下JBPM4.4的核心特性: 1. **流程建模**:JBPM4.4支持BPMN(Business Process Modeling Notation)...

    jbpm4.4中文开发指南

    1. **流程建模**: jbpm4.4使用BPMN(Business Process Model and Notation)2.0标准进行流程建模,这是一种图形化的方式,使得业务人员和开发者可以直观地理解并创建流程。BPMN符号包括活动、事件、网关、数据对象等...

    jBPM4.4开发指南

    - **添加 jPDL 4.4 Schema 校验**:用于校验流程定义文件的 xsd 文件路径为 JBPM_HOME/src/jpdl-4.4.xsd。 - 添加方法: 1. Window -&gt; Preferences 2. 选择 XML -&gt; XML Catalog 3. 点击 Add 4. 打开 Add XML ...

    jBPM 4.4用户手册 中文PDF

    **jBPM 4.4** 是一个开源的工作流程管理系统,由Red Hat公司开发并维护,主要用于业务流程管理(BPM)和工作流自动化。该系统提供了强大的流程建模、执行和监控功能,支持Java平台,并与Java EE和Spring框架高度集成...

    jbpm4.4开发用户指南

    4. **部署与执行**:讲解如何将流程部署到jBPM服务器,并启动和监控流程实例。 5. **编程接口**:详细说明如何使用API来控制流程实例的生命周期,如启动、挂起、恢复和终止流程。 6. **任务管理**:涵盖如何处理...

    jbpm4.4 shh2 项目示例

    - 创建流程定义文件(.bpmn或.bpmn2),并在jbpm工作台中进行设计和部署。 - 实现业务服务接口,使用jbpm提供的API启动流程实例,处理任务,完成流程流转。 - 设计Struts2 Action,处理用户请求,与Spring服务层...

    jbpm4.4+tomcat6+eclipse jee

    在jbpm4.4的部署中,Tomcat6将承载流程服务和Web界面,使得用户可以通过Web浏览器访问和操作流程。 Eclipse JEE版为开发提供了全面的工具集,包括代码编辑器、调试器、构建工具等,还特别针对Java EE项目提供了额外...

    jbpm4.4+ssh

    因此,用户需要确保数据库中已创建了这些表,或者在部署时让jbpm自动创建。如果使用的是默认的表结构,通常会包含如`jbpm_processdefinition`、`jbpm_processinstance`等表,根据具体需求可能还需要配置相关的权限。...

Global site tag (gtag.js) - Google Analytics