xielf93 发表于 2017-9-4 15:38:19

启动服务器后就boom!

本帖最后由 xielf93 于 2017-9-4 15:42 编辑

按照文档说的创建数据库,执行了sql文件,然后一跑起来就炸了,这个${approver}是配置在哪里的?找了好久都找不到,求大佬告知原因,还有hibernate执行的时候报错是不是因我mysql版本的问题,我的版本时5.7.11
下面的异常信息:

Exception in thread "Thread-2"
org.activiti.engine.ActivitiException: Unknown property used in expression: Task completed by ${approver}: ${(approved.equals('true')) ? 'Approved.' : 'Rejected!'}
      at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:53)
      at org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.execute(UserTaskActivityBehavior.java:61)
      at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)
      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)

      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:621)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:616)
      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)
      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)
      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)

      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:621)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:616)
      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)
      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:621)

      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:616)
      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)
      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:621)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:616)
      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)
      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:621)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:616)
      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)
      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:621)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:616)
      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35)
      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)

      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:621)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:616)
      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)
      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)

      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:621)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:616)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:440)
      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:418)
      at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:131)
      at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:64)
      at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)
      at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)
      at org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.signal(UserTaskActivityBehavior.java:139)

      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:397)
      at org.activiti.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:200)
      at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:50)
      at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:24)
      at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59)
      at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)

      at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
      at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
      at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
      at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
      at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
      at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
      at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
      at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:175)
      at org.activiti.explorer.demo.DemoDataGenerator$1.run(DemoDataGenerator.java:278)
      at java.lang.Thread.run(Thread.java:745)
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'approved'
      at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)
      at org.activiti.engine.impl.juel.AstMethod.invoke(AstMethod.java:79)
      at org.activiti.engine.impl.juel.AstMethod.eval(AstMethod.java:75)
      at org.activiti.engine.impl.juel.AstNested.eval(AstNested.java:30)
      at org.activiti.engine.impl.juel.AstChoice.eval(AstChoice.java:33)
      at org.activiti.engine.impl.juel.AstEval.eval(AstEval.java:50)
      at org.activiti.engine.impl.juel.AstComposite.eval(AstComposite.java:34)
      at org.activiti.engine.impl.juel.AstNode.getValue(AstNode.java:26)
      at org.activiti.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114)

      at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:33)
      at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)
      at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)
      at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:48)
      ... 58 more
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
SLF4J: Found binding in
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator instead
HHH000388: Unsuccessful: alter table cgform_field add index null (table_id), add constraint null foreign key (table_id) references cgform_head (id)
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 'null (table_id),
      add constraint null
      foreign key (table_id)
' at line 2


页: [1]
查看完整版本: 启动服务器后就boom!