Comments (3)
Can you point to a specific place in the code where this is failing?
from cointrader.
According to the MapConfiguration docs getProperty
should return null. And of course MapConfiguration
implements the Configuration interface
from cointrader.
Hi Tim,
Stack trace below.
The issues seems to be in package org.apache.commons.configuration.getProperty, the map is null, hence the stack trace. May be we need to institiate the configuration map earlier.
public Object getProperty(String key)
{
Object value = map.get(key);
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1009) ~[guice-4.0-beta4.jar:na]
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1035) ~[guice-4.0-beta4.jar:na]
at org.cryptocoinpartners.util.Injector.getInstance(Injector.java:30) ~[classes/:na]
at org.cryptocoinpartners.module.Context.attach(Context.java:145) ~[classes/:na]
at org.cryptocoinpartners.module.Context.attach(Context.java:132) ~[classes/:na]
at org.cryptocoinpartners.schema.StrategyInstance.afterAttach(StrategyInstance.java:64) ~[classes/:na]
at org.cryptocoinpartners.module.Context.attach(Context.java:157) ~[classes/:na]
at org.cryptocoinpartners.module.Context.attachInstance(Context.java:166) ~[classes/:na]
at org.cryptocoinpartners.bin.BacktestRunMode.run(BacktestRunMode.java:41) ~[classes/:na]
at org.cryptocoinpartners.bin.Main.main(Main.java:100) ~[classes/:na]
Caused by: java.lang.NullPointerException: null
at org.apache.commons.configuration.MapConfiguration.getProperty(MapConfiguration.java:64) ~[commons-configuration-1.6.jar:1.6]
at org.apache.commons.configuration.AbstractConfiguration.resolveContainerStore(AbstractConfiguration.java:1160) ~[commons-configuration-1.6.jar:1.6]
at org.apache.commons.configuration.AbstractConfiguration.getString(AbstractConfiguration.java:1035) ~[commons-configuration-1.6.jar:1.6]
at org.cryptocoinpartners.module.DemoStrategy.(DemoStrategy.java:25) ~[classes/:na]
at org.cryptocoinpartners.module.DemoStrategy$$FastClassByGuice$$af1ca731.newInstance() ~[guice-4.0-beta4.jar:na]
at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40) ~[guice-4.0-beta4.jar:na]
at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61) ~[guice-4.0-beta4.jar:na]
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108) ~[guice-4.0-beta4.jar:na]
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88) ~[guice-4.0-beta4.jar:na]
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:279) ~[guice-4.0-beta4.jar:na]
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1000) ~[guice-4.0-beta4.jar:na]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1046) ~[guice-4.0-beta4.jar:na]
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:996) ~[guice-4.0-beta4.jar:na]
... 9 common frames omitted
INFO o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000030: Cleaning up connection pool [jdbc:mysql://localhost:3306/cointrader]
from cointrader.
Related Issues (20)
- no module file found for MarketsCommand.epl HOT 1
- Cannot exit console HOT 1
- buy antlr command error parsing HOT 3
- Information HOT 4
- Running BookTest in Eclipse failed due to failed db initialization HOT 2
- Latest master cannot build with mvn HOT 44
- I built it... but it fails to store data... HOT 3
- QUESTION: Recovery from outages HOT 7
- Is master a working version? HOT 2
- Upgrade to Apache Flink
- Problem with connecting to Mysql database HOT 2
- Location of cointrader.properties HOT 3
- NoClassDefFoundError: javax/xml/bind/JAXBException HOT 8
- doc update: input console under eclipse HOT 1
- exit fails HOT 4
- How to Add an XChange HOT 4
- Trigger on order fill? HOT 1
- Is last version working? HOT 3
- Dependency org.apache.zookeeper:zookeeper, leading to CVE problem HOT 2
- Application can not start because of the hibernate version HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cointrader.