Skip to content

Instantly share code, notes, and snippets.

View geosmart's full-sized avatar
🎯
Focusing

geosmart geosmart

🎯
Focusing
View GitHub Profile
@geosmart
geosmart / Activiti5.11-demo在Tomcat7运行错误
Created December 31, 2012 03:27
Activiti5.11-demo在Tomcat7运行错误
HTTP Status 500 - Servlet.init() for servlet springServlet threw exception
type Exception report
message Servlet.init() for servlet springServlet threw exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
@geosmart
geosmart / gist:4452867
Created January 4, 2013 14:16
ActivitiRestApplication
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
/**
*
* Base64 encode / decode
* http://www.webtoolkit.info/
*
**/
var Base64 = {
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
public class TestLogin {
2013-2-3 15:31:50 org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
信息: Processing resource process60.png
2013-2-3 15:31:50 org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
信息: Processing resource process60.bpmn20.xml
2013-2-3 15:31:50 org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
信息: XMLSchema currently not supported as typeLanguage
2013-2-3 15:31:50 org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
信息: XPath currently not supported as expressionLanguage
2013-2-3 15:31:50 com.vaadin.Application terminalError
严重: Terminal error:
HTTP Status 500 - org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'explorerApp' defined in ServletContext resource [/WEB-INF/activiti-ui-context.xml]: Cannot resolve reference to bean 'userCache' while setting bean property 'userCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userCache': FactoryBean threw exception on object creation; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 0
type Exception report
message org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'explorerApp' defined in ServletContext resource [/WEB-INF/activiti-ui-context.xml]: Cannot resolve reference to bean 'userCache' while setting bean property 'userCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userCache': FactoryBean threw exception on object creation; nested exception is java.lang.
package com.famousPro.process.service.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.activiti.engine.FormService;
import org.activiti.engine.HistoryService;
import org.activiti.engine.RepositoryService;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
public class TestLogin {
/**
* 更改流程实例的流程定义ID
* @param processInstanceId
* @param processDefinitionId
*/
@Transactional
public void changeProcessDefinitionId(String processInstanceId, String processDefinitionId) {
long count = repositoryService.createProcessDefinitionQuery().processDefinitionId(processDefinitionId).count();
if (count == 0) {
throw new ServiceException("指定的流程定义不存在!");