03-04-2016 05:32 AM
public static void main(String[] args) throws InterruptedException {
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
RuntimeService runtimeService = processEngine.getRuntimeService();
for(int i=0;i<10;i++) {
ProcessInstance message = runtimeService.startProcessInstanceByMessage("gaap");
Thread.sleep(60000);
}
}
Exception in thread "main" org.activiti.engine.ActivitiException: couldn't initialize process engine from spring configuration resource file:/{filepath}/activiti-context.xml: Class org.activiti.engine.ProcessEngines can not access a member of class org.activiti.spring.SpringConfigurationHelper with modifiers "public static"
at org.activiti.engine.ProcessEngines.initProcessEngineFromSpringResource(ProcessEngines.java:130)
at org.activiti.engine.ProcessEngines.init(ProcessEngines.java:109)
at org.activiti.engine.ProcessEngines.getProcessEngine(ProcessEngines.java:224)
at org.activiti.engine.ProcessEngines.getDefaultProcessEngine(ProcessEngines.java:217)
at {sandbox}.main(ErrorQueueMessageListener.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: java.lang.IllegalAccessException: Class org.activiti.engine.ProcessEngines can not access a member of class org.activiti.spring.SpringConfigurationHelper with modifiers "public static"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
at java.lang.reflect.Method.invoke(Method.java:490)
at org.activiti.engine.ProcessEngines.initProcessEngineFromSpringResource(ProcessEngines.java:122)
… 9 more
03-07-2016 05:27 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.