Cannot enable the 'test' and 'prod' mode when the 'application.configuration' property is set #404

Closed
cescoffier opened this Issue Jan 8, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@cescoffier
Member

cescoffier commented Jan 8, 2015

while I launch

 mvn integration-test  -Dapplication.mode="TEST"

I get the following error :

15:45:03.190 [[iPOJO] pool-1-thread-1] ERROR o.o.util.log.impl.osgi.LoggerService - [ERROR]  : [org.wisdom.configuration.ApplicationConfigurationImpl-0] createInstance -> Cannot invoke the constructor method - the constructor throws an exception : com.typesafe.config.ConfigException$WrongType: system properties: application.configuration has type STRING rather than OBJECT
java.lang.RuntimeException: com.typesafe.config.ConfigException$WrongType: system properties: application.configuration has type STRING rather than OBJECT
        at org.wisdom.configuration.ConfigurationImpl.retrieve(ConfigurationImpl.java:109) ~[na:na]
        at org.wisdom.configuration.ConfigurationImpl.getBooleanWithDefault(ConfigurationImpl.java:230) ~[na:na]
        at org.wisdom.configuration.ApplicationConfigurationImpl.<init>(ApplicationConfigurationImpl.java:102) ~[na:na]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_05]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_05]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_05]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ~[na:1.8.0_05]
        at org.apache.felix.ipojo.InstanceManager.createObject(InstanceManager.java:740) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.InstanceManager.getPojoObject(InstanceManager.java:963) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.util.Callback.call(Callback.java:233) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.util.Callback.call(Callback.java:193) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallback.call(LifecycleCallback.java:86) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__M_stateChanged(LifecycleCallbackHandler.java:162) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.InstanceManager.stateChanged(InstanceManager.java:1533) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:585) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.HandlerManager.stateChanged(HandlerManager.java:239) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.Handler.setValidity(Handler.java:174) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_checkContext(DependencyHandler.java:170) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.checkContext(DependencyHandler.java) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__M_validate(DependencyHandler.java:133) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.validate(DependencyHandler.java) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.util.DependencyModel.validate(DependencyModel.java:522) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.util.DependencyModel.computeAndSetDependencyState(DependencyModel.java:362) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.util.DependencyModel.onChange(DependencyModel.java:1123) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.fireUpdate(ServiceReferenceManager.java:561) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.onNewMatchingService(ServiceReferenceManager.java:525) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.dependency.impl.ServiceReferenceManager.addedService(ServiceReferenceManager.java:504) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.util.Tracker$Tracked.trackAdding(Tracker.java:711) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.util.Tracker$Tracked.track(Tracker.java:672) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.util.Tracker$Tracked.serviceChanged(Tracker.java:633) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943) [chameleon-core-1.10.3.jar:na]
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794) [chameleon-core-1.10.3.jar:na]
        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544) [chameleon-core-1.10.3.jar:na]
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445) [chameleon-core-1.10.3.jar:na]
        at org.apache.felix.framework.Felix.registerService(Felix.java:3431) [chameleon-core-1.10.3.jar:na]
        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346) [chameleon-core-1.10.3.jar:na]
        at org.apache.felix.ipojo.IPojoContext.registerService(IPojoContext.java:395) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.providedservice.ProvidedService.registerService(ProvidedService.java:351) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.__M_stateChanged(ProvidedServiceHandler.java:503) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler.stateChanged(ProvidedServiceHandler.java) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:560) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:440) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.ComponentFactory.createInstance(ComponentFactory.java:179) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:319) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:240) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(ManagedType.java:312) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport$1.call(ManagedType.java:306) [org.apache.felix.ipojo-1.12.1.jar:na]
        at org.apache.felix.ipojo.extender.internal.queue.JobInfoCallable.call(JobInfoCallable.java:114) [org.apache.felix.ipojo-1.12.1.jar:na]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_05]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_05]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_05]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_05]
Caused by: com.typesafe.config.ConfigException$WrongType: system properties: application.configuration has type STRING rather than OBJECT
        at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:133) ~[akka-system-0.7.0.jar:na]
        at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:147) ~[akka-system-0.7.0.jar:na]
        at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:151) ~[akka-system-0.7.0.jar:na]
        at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:159) ~[akka-system-0.7.0.jar:na]
        at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:164) ~[akka-system-0.7.0.jar:na]
        at com.typesafe.config.impl.SimpleConfig.getBoolean(SimpleConfig.java:174) ~[akka-system-0.7.0.jar:na]
        at org.wisdom.configuration.ConfigurationImpl$8.call(ConfigurationImpl.java:233) ~[na:na]
        at org.wisdom.configuration.ConfigurationImpl$8.call(ConfigurationImpl.java:230) ~[na:na]
        at org.wisdom.configuration.ConfigurationImpl.retrieve(ConfigurationImpl.java:104) ~[na:na]
        ... 53 common frames omitted

@cescoffier cescoffier added the bug label Jan 8, 2015

@cescoffier cescoffier self-assigned this Jan 8, 2015

@cescoffier cescoffier added this to the 0.7.1 milestone Jan 8, 2015

@cescoffier cescoffier closed this in 619bdb3 Jan 8, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment