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

相关推荐

Global site tag (gtag.js) - Google Analytics