在Eclipse中运行AlgoTrader [英] Run the AlgoTrader in Eclipse
问题描述
现在唯一的问题是当我运行SimulationStarter类时,我收到以下错误: / p>
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl初始化服务提供商:BASE
1989-12-31 23 :00:00,000 DEBUG RuleServiceImpl部署在服务提供商上的模块市场数据:BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl在服务提供商上部署了模块当前值:BASE
1989-12- 31 23:00:00,000 DEBUG RuleServiceImpl部署模块在服务提供商上交易:BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl部署在服务提供商上的模块组合:BASE
1989-12-31 23 :00:00,000 DEBUG RuleServiceImpl部署在服务提供商上的模块性能:BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl部署在服务提供商上的模块算法:BASE
1989-12-31 23:00 :00,000 DEBUG RuleServiceImpl部署模块ib-market-data服务冰供应商:BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl部署的模块ib-trades在服务提供商上:BASE
线程main中的异常com.algoTrader.service.SimulationServiceException:执行错误'SimulationService.simulateWithCurrentParams()' - > com.algoTrader.service.SimulationServiceException:执行SimulationService.runByUnderlayings()时出错 - > com.algoTrader.service.RuleServiceException:执行RuleService.initServiceProvider(String strategyName)时出错 - > com.espertech.esper.client.EPException:找不到esper-mov.cfg.xml
在com.algoTrader.service.SimulationServiceBase.simulateWithCurrentParams(SimulationServiceBase.java:246)
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)
在org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
在org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java: 183)
在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
在org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref lectiveMethodInvocation.java:172)
在org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 172)
在org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
在com.sun.proxy $ Proxy12.simulateWithCurrentParams(未知来源)
at com .algoTrader.starter.SimulationStarter.main(SimulationStarter.java:29)
导致:com.espertech.esper.client.EPException:没有找到esper-mov.cfg.xml
在com.espertech。 esper.client.Configuration.getResourceAsStream(Configuration.java:928)
at com.espertech.esper.client.Configuration.getConfigurationInputStream(Configuration.java:784)
at com.espertech.esper.client。 Configuration.configure(Configuration.java:767)
在com.algoTrader.service.RuleServiceImpl.handleInitServiceProvider(RuleServiceImpl。 java:81)
at com.algoTrader.service.RuleServiceBase.initServiceProvider(RuleServiceBase.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect。 NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
在java.lang.reflect.Method.invoke(Unknown Source)
在org.springframework。 aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
在org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
在org.springframework.aop.framework。 ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
在org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:172)
在org.springframework.transaction。 interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
在org.springframework.aop.framework.JdkDynamicAopProxy。调用(JdkDynamicAopProxy.java:202)
在com.sun.proxy $ Proxy14.initServiceProvider(未知源)
在com.algoTrader.service.SimulationServiceImpl.handleRunByUnderlayings(SimulationServiceImpl.java:139)
at com.algoTrader.service.SimulationServiceBase.runByUnderlayings(SimulationServiceBase.java:216)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source )
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
在java.lang.reflect.Method.invoke(未知来源)
在org.springframework.aop.support.AopUtils。 invokeJoinpointUsingReflection(AopUtils.java:309)
在org.springframework。 aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
在org.springframework.orm.hibernate3。 HibernateInterceptor.invoke(HibernateInterceptor.java:111)
在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
在org.springframework.transaction.interceptor.TransactionInterceptor.invoke( TransactionInterceptor.java:110)
在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
在org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java: 202)
在com.sun.proxy $ Proxy12.runByUnderlayings(未知来源)
在com.algoTrader.service.SimulationServiceImpl.handleSimulateWithCurrentParams(SimulationServiceImpl.java:183)
在com.algoTrader 。服务imulationServiceBase.simulateWithCurrentParams(SimulationServiceBase.java:242)
... 14更多
我可以运行 MOV策略
在cmd,但我被困在这里很长一段时间!
如果有任何想法或建议他们将非常感激,因为这对我来说非常重要,我已经尝试了我能想到的一切。
第一个问题,您可以在构建后添加后解决。
< build>
< pluginManagement>
< / pluginManagement>
< / build>
第二个看起来很复杂。每个人都可以解决它是机器
I am trying to run the AlgoTrader in Eclipse but I get two errors
The only problem now is when I run the SimulationStarter class I get the following error:
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl initialized service provider: BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl deployed module market-data on service provider: BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl deployed module current-values on service provider: BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl deployed module trades on service provider: BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl deployed module portfolio on service provider: BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl deployed module performance on service provider: BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl deployed module algo on service provider: BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl deployed module ib-market-data on service provider: BASE
1989-12-31 23:00:00,000 DEBUG RuleServiceImpl deployed module ib-trades on service provider: BASE
Exception in thread "main" com.algoTrader.service.SimulationServiceException: Error performing 'SimulationService.simulateWithCurrentParams()' --> com.algoTrader.service.SimulationServiceException: Error performing 'SimulationService.runByUnderlayings()' --> com.algoTrader.service.RuleServiceException: Error performing 'RuleService.initServiceProvider(String strategyName)' --> com.espertech.esper.client.EPException: esper-mov.cfg.xml not found
at com.algoTrader.service.SimulationServiceBase.simulateWithCurrentParams(SimulationServiceBase.java:246)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy12.simulateWithCurrentParams(Unknown Source)
at com.algoTrader.starter.SimulationStarter.main(SimulationStarter.java:29)
Caused by: com.espertech.esper.client.EPException: esper-mov.cfg.xml not found
at com.espertech.esper.client.Configuration.getResourceAsStream(Configuration.java:928)
at com.espertech.esper.client.Configuration.getConfigurationInputStream(Configuration.java:784)
at com.espertech.esper.client.Configuration.configure(Configuration.java:767)
at com.algoTrader.service.RuleServiceImpl.handleInitServiceProvider(RuleServiceImpl.java:81)
at com.algoTrader.service.RuleServiceBase.initServiceProvider(RuleServiceBase.java:86)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy14.initServiceProvider(Unknown Source)
at com.algoTrader.service.SimulationServiceImpl.handleRunByUnderlayings(SimulationServiceImpl.java:139)
at com.algoTrader.service.SimulationServiceBase.runByUnderlayings(SimulationServiceBase.java:216)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy12.runByUnderlayings(Unknown Source)
at com.algoTrader.service.SimulationServiceImpl.handleSimulateWithCurrentParams(SimulationServiceImpl.java:183)
at com.algoTrader.service.SimulationServiceBase.simulateWithCurrentParams(SimulationServiceBase.java:242)
... 14 more
I am able to run the MOV strategy
in the cmd but I have been stuck here for a very long time!
If anyone has any ideas or suggestions they would be much appreciated as this is very important for me and I have tried everything I could think of.
For the first problem you can solve it when you add the after the build.
<build>
<pluginManagement>
</pluginManagement>
</build>
The second one seems quite complex. Everyone that can solve it is machine
这篇关于在Eclipse中运行AlgoTrader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!