This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.apache.ibatis.exceptions.PersistenceException: | |
### Error updating database. Cause: java.lang.IllegalArgumentException: updateProcessDefinitionVersion is ambiguous in Mapped Statements collection (try using the full name including the namespace, or rename one of the entries) | |
### Cause: java.lang.IllegalArgumentException: updateProcessDefinitionVersion is ambiguous in Mapped Statements collection (try using the full name including the namespace, or rename one of the entries) | |
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23) | |
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:150) | |
at org.activiti.engine.impl.db.DbSqlSession.update(DbSqlSession.java:140) | |
at org.activiti.engine.impl.persistence.entity.ExecutionEntityManager.updateProcessDefinitionVersion(ExecutionEntityManager.java:182) | |
at org.activiti.engine.impl.cmd.UpdateProcessDefinitionVersionCommand.execute(UpdateProcessDefinitionVersionCommand.java:67) | |
at org.activiti.engin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProcessDefinition definition = repositoryService.createProcessDefinitionQuery().processDefinitionKey("leave").singleResult(); | |
ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity) ((RepositoryServiceImpl) repositoryService) | |
.getDeployedProcessDefinition(definition.getId()); | |
List<ActivityImpl> activitiList = processDefinition.getActivities(); | |
for (ActivityImpl activity : activitiList) { | |
Map<String, Object> properties = activity.getProperties(); | |
String type = properties.get("type").toString(); | |
if (type.equals("exclusiveGateway")) { | |
List<PvmTransition> outgoingTransitions = activity.getOutgoingTransitions(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Replacing: /Users/henryyan/work/runchain/projects/joying/sources/joying-tpa-web/target/joying-tpa-web-2.0.0-SNAPSHOT | |
[INFO] Replacing file: /Users/henryyan/work/runchain/projects/joying/sources/joying-tpa-web/target/joying-tpa-web-2.0.0-SNAPSHOT/WEB-INF/classes/log4j.properties | |
[INFO] Replacing: /Users/henryyan/work/runchain/projects/joying/sources/joying-tpa-web/target/joying-tpa-web-2.0.0-SNAPSHOT.war | |
[WARNING] File: /Users/henryyan/work/runchain/projects/joying/sources/joying-tpa-web/target/joying-tpa-web-2.0.0-SNAPSHOT.war/WEB-INF/classes/log4j.properties does not exist or is a directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.UnsupportedEncodingException; | |
import java.util.Scanner; | |
import org.apache.commons.lang.StringUtils; | |
/** | |
* @author: Henry Yan | |
*/ | |
public class Convert16UnicodeToUTF8 { | |
public static void main(String[] args) throws UnsupportedEncodingException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AutoClaimService { | |
private int completeThreads = 0; | |
List<List<Bill>> splitBills; | |
public void doClaim() { | |
List<Bill> bills = // 用hibernate读取集合 | |
splitBills = splitBills(bills, 10); // 每组十个 | |
for (int i = 0; i < splitedBillList.size(); i++) { | |
AutoClaimThread claimThread = new AutoClaimThread(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
分为11组 | |
组1数量:15 | |
bills=15,index=1 | |
开始理赔第 1 张发票,线程:1 | |
开始理赔第 2 张发票,线程:1 | |
开始理赔第 3 张发票,线程:1 | |
开始理赔第 4 张发票,线程:1 | |
开始理赔第 5 张发票,线程:1 | |
开始理赔第 6 张发票,线程:1 | |
开始理赔第 7 张发票,线程:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12:14:19,686 [main] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor - --- GetTableCountCmd finished -------------------------------------------------------- | |
12:14:19,686 [main] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor - | |
java.lang.ArrayIndexOutOfBoundsException: 0 | |
at org.activiti.engine.impl.bpmn.data.FieldBaseStructureInstance.loadFrom(FieldBaseStructureInstance.java:65) | |
at org.activiti.engine.impl.webservice.WSOperation.createResponseMessage(WSOperation.java:90) | |
at org.activiti.engine.impl.webservice.WSOperation.sendFor(WSOperation.java:63) | |
at org.activiti.engine.impl.bpmn.webservice.Operation.sendMessage(Operation.java:50) | |
at org.activiti.engine.impl.bpmn.behavior.WebServiceActivityBehavior.execute(WebServiceActivityBehavior.java:75) | |
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Output pattern : date [thread] priority category - message | |
log4j.rootLogger=${log4j.rootLogger} | |
# | |
##Console | |
log4j.appender.Console=org.apache.log4j.ConsoleAppender | |
log4j.appender.Console.layout=org.apache.log4j.PatternLayout | |
log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n | |
# | |
##RollingFile | |
log4j.appender.RollingFile.encoding=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.apache.ibatis.exceptions.PersistenceException: | |
### Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'byteArrayValueId' in 'class org.activiti.engine.impl.persistence.entity.HistoricVariableInstanceEntity' | |
### The error may exist in org/activiti/db/mapping/entity/HistoricVariableInstance.xml | |
### The error may involve defaultParameterMap | |
### The error occurred while setting parameters | |
### SQL: select * from ACT_HI_VARINST where ID_ = ? | |
### Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'byteArrayValueId' in 'class org.activiti.engine.impl.persistence.entity.HistoricVariableInstanceEntity' | |
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23) | |
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:107) | |
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:98) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property name="activityFontName" value="simsun"/> | |
Can't get instance of ProcessEngineConfiguration by Context.getProcessEngineConfiguration() in Controller(Spring MVC) when invode codes bellow: | |
InputStream imageStream = ProcessDiagramGenerator.generateDiagram(bpmnModel, "png", activeActivityIds); | |
The activityFontName should be "simsun", but is "Arial" (default font name). | |
can you help me ? |