{"action":"opened","number":208,"pull_request":{"url":"https://api.github.com/repos/ethereum/ethereumj/pulls/208","id":27702920,"html_url":"https://github.com/ethereum/ethereumj/pull/208","diff_url":"https://github.com/ethereum/ethereumj/pull/208.diff","patch_url":"https://github.com/ethereum/ethereumj/pull/208.patch","issue_url":"https://api.github.com/repos/ethereum/ethereumj/issues/208","number":208,"state":"open","locked":false,"title":"fix how and when default properties are used","user":{"login":"ligi","id":111600,"avatar_url":"https://avatars.githubusercontent.com/u/111600?v=3","gravatar_id":"","url":"https://api.github.com/users/ligi","html_url":"https://github.com/ligi","followers_url":"https://api.github.com/users/ligi/followers","following_url":"https://api.github.com/users/ligi/following{/other_user}","gists_url":"https://api.github.com/users/ligi/gists{/gist_id}","starred_url":"https://api.github.com/users/ligi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligi/subscriptions","organizations_url":"https://api.github.com/users/ligi/orgs","repos_url":"https://api.github.com/users/ligi/repos","events_url":"https://api.github.com/users/ligi/events{/privacy}","received_events_url":"https://api.github.com/users/ligi/received_events","type":"User","site_admin":false},"body":"the main reason behind this PR was that I got this exception when merging the latest changes:\r\n```\r\n➜  ethereumj-studio git:(master) gradle clean run\r\nParallel execution is an incubating feature.\r\n[buildinfo] Properties file path was not found! (Relevant only for builds running on a CI Server)\r\n:ethereumj-studio:clean\r\n:ethereumj-core:antlr4\r\n:ethereumj-studio:processResources UP-TO-DATE\r\n:ethereumj-core:compileJava UP-TO-DATE\r\n:ethereumj-core:processResources UP-TO-DATE\r\n:ethereumj-core:classes UP-TO-DATE\r\n:ethereumj-core:jar UP-TO-DATE\r\n:ethereumj-studio:compileJava\r\nwarning: Supported source version 'RELEASE_6' from annotation processor 'org.antlr.v4.runtime.misc.NullUsageProcessor' less than -source '1.8'\r\nNote: Some input files use unchecked or unsafe operations.\r\nNote: Recompile with -Xlint:unchecked for details.\r\n1 warning\r\n:ethereumj-studio:classes\r\n:ethereumj-studio:run\r\nSLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\r\nSLF4J: Defaulting to no-operation (NOP) logger implementation\r\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\r\nlog4j:ERROR Could not instantiate class [org.apache.log4j.rolling.RollingFileAppender].\r\njava.lang.ClassNotFoundException: org.apache.log4j.rolling.RollingFileAppender\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:372)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:361)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:360)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\tat java.lang.Class.forName0(Native Method)\r\n\tat java.lang.Class.forName(Class.java:263)\r\n\tat org.apache.log4j.helpers.Loader.loadClass(Loader.java:198)\r\n\tat org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:327)\r\n\tat org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:124)\r\n\tat org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:785)\r\n\tat org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)\r\n\tat org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)\r\n\tat org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)\r\n\tat org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)\r\n\tat org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)\r\n\tat org.apache.log4j.LogManager.<clinit>(LogManager.java:127)\r\n\tat org.apache.log4j.Logger.getLogger(Logger.java:104)\r\n\tat org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)\r\n\tat org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:422)\r\n\tat org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)\r\n\tat org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)\r\n\tat org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)\r\n\tat org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)\r\n\tat org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)\r\n\tat org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)\r\n\tat org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:154)\r\n\tat org.springframework.context.support.GenericApplicationContext.<init>(GenericApplicationContext.java:100)\r\n\tat org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:60)\r\n\tat org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:82)\r\n\tat org.ethereum.facade.EthereumFactory.createEthereum(EthereumFactory.java:110)\r\n\tat org.ethereum.gui.UIEthereumManager.<clinit>(UIEthereumManager.java:11)\r\n\tat org.ethereum.gui.ToolBar.<init>(ToolBar.java:235)\r\n\tat org.ethereum.gui.ToolBar.lambda$main$13(ToolBar.java:240)\r\n\tat org.ethereum.gui.ToolBar$$Lambda$1/424058530.run(Unknown Source)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:702)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:696)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:719)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\nlog4j:ERROR Could not instantiate appender named \"file\".\r\nException in thread \"AWT-EventQueue-0\" java.lang.ExceptionInInitializerError\r\n\tat org.ethereum.gui.ToolBar.<init>(ToolBar.java:235)\r\n\tat org.ethereum.gui.ToolBar.lambda$main$13(ToolBar.java:240)\r\n\tat org.ethereum.gui.ToolBar$$Lambda$1/424058530.run(Unknown Source)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:702)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:696)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:719)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ethereumFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.ethereum.facade.Ethereum org.ethereum.facade.EthereumFactory.eth; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ethereumImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.ethereum.manager.WorldManager org.ethereum.facade.EthereumImpl.worldManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worldManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Blockchain org.ethereum.manager.WorldManager.blockchain; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockchainImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Repository org.ethereum.core.BlockchainImpl.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryImpl' defined in URL [jar:file:/home/ligi/git/3rd/ethereumj/ethereumj-core/build/libs/ethereumj-core-0.8.1-SNAPSHOT.jar!/org/ethereum/db/RepositoryImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotanPostProcessor.java:334)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1204)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)\r\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)\r\n\tat org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)\r\n\tat org.ethereum.facade.EthereumFactory.createEthereum(EthereumFactory.java:110)\r\n\tat org.ethereum.gui.UIEthereumManager.<clinit>(UIEthereumManager.java:11)\r\n\t... 17 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.ethereum.facade.Ethereum org.ethereum.facade.EthereumFactory.eth; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ethereumImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.ethereum.manager.WorldManager org.ethereum.                                                                              facade.EthereumImpl.worldManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worldManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Blockchain org.ethereum.manager.WorldManager.blockchain; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockchainImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Repository org.ethereum.core.BlockchainImpl.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryImpl' defined in URL [jar:file:/home/ligi/git/3rd/ethereumj/ethereumj-core/build/libs/ethereumj-core-0.8.1-SNAPSHOT.jar!/org/ethereum/db/RepositoryImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:555)\r\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)\r\n\t... 30 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ethereumImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.ethereum.manager.WorldManager org.ethereum.facade.EthereumImpl.worldManager; nested e     xception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worldManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Blockchain org.ethereum.manager.WorldManager.blockchain; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockchainImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Repository org.ethereum.core.BlockchainImpl.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryImpl' defined in URL [jar:file:/home/ligi/git/3rd/ethereumj/ethereumj-core/build/libs/ethereumj-core-0.8.1-SNAPSHOT.jar!/org/ethereum/db/RepositoryImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1204)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)\r\n\tat org.spmework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:527)\r\n\t... 32 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.ethereum.manager.WorldManager org.ethereum.facade.EthereumImpl.worldManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worldManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Blockchain org.ethereum.manager.WorldManager.blockchain; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockchainImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Repository org.ethereum.core.BlockchainImpl.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryImpl' defined in URL [jar:file:/home/ligi/git/3rd/ethereumj/ethereumj-core/build/libs/ethereumj-core-0.8.1-SNAPSHOT.jar!/org/ethereum/db/RepositoryImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantia                                                                                          te [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:555)\r\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)\r\n\t... 43 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worldManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Blockchain org.ethereum.manager.WorldManager.blockchain; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockchainImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Repository org.ethereum.core.BlockchainImpl.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryImpl' defined in URL [jar:file:/home/ligi/git/3rd/ethereumj/ethereumj-core/build/libs/ethereumj-core-0.8.1-SNAPSHOT.jar!/org/ethereum/db/RepositoryImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireBeanFactory.java:1204)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:527)\r\n\t... 45 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Blockchain org.ethereum.manager.WorldManager.blockchain; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockchainImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Repository org.ethereum.core.BlockchainImpl.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryImpl' defined in URL [jar:file:/home/ligi/git/3rd/ethereumj/ethereumj-core/build/li           bs/ethereumj-core-0.8.1-SNAPSHOT.jar!/org/ethereum/db/RepositoryImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:555)\r\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)\r\n\t... 56 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockchainImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Repository org.ethereum.core.BlockchainImpl.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryImpl' defined in URL [jar:file:/home/ligi/git/3rd/ethereumj/ethereumj-core/build/libs/ethereumj-core-0.8.1-SNAPSHOT.jar!/org/ethereum/db/RepositoryImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1204)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFacta:538)v\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:527)\r\n\t... 58 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ethereum.facade.Repository org.ethereum.core.BlockchainImpl.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryImpl' defined in URL [jar:file:/home/ligi/git/3rd/ethereumj/ethereumj-core/build/libs/ethereumj-core-0.8.1-SNAPSHOT.jar!/org/ethereum/db/RepositoryImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:555)\r\n\tat org.springframework.betory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)\r\n\t... 69 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryImpl' defined in URL [jar:file:/home/ligi/git/3rd/ethereumj/ethereumj-core/build/libs/ethereumj-core-0.8.1-SNAPSHOT.jar!/org/ethereum/db/RepositoryImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1095)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1040)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)\r\n\tat org.springfrabeans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:527)\r\n\t... 71 more\r\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.ethereum.db.RepositoryImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)\r\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1088)\r\n\t... 82 more\r\nCaused by: java.lang.NullPointerException\r\n\tat org.ethereum.db.DatabaseImpl.<init>(DatabaseImpl.java:35)\r\n\tat org.ethereum.db.RepositoryImpl.<init>(RepositoryImpl.java:60)\r\n\tat org.ethereum.db.RepositoryImpl.<init>(RepositoryImpl.java:56)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:422)\r\n\tat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)\r\n\t... 84 more\r\n\r\nBUILD SUCCESSFUL\r\n\r\nTotal time: 8.11 secs\r\n```\r\n\r\ninvestigation showed that it was rooted in when and how defaults are used - also while I was here I did some other minor code improvements in this area","created_at":"2015-01-20T19:03:41Z","updated_at":"2015-01-20T19:03:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e071aa7907c8f661fa78874e80d5e2a86d38b0b0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ethereum/ethereumj/pulls/208/commits","review_comments_url":"https://api.github.com/repos/ethereum/ethereumj/pulls/208/comments","review_comment_url":"https://api.github.com/repos/ethereum/ethereumj/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ethereum/ethereumj/issues/208/comments","statuses_url":"https://api.github.com/repos/ethereum/ethereumj/statuses/467e673bc6c7dc8d6c1d719ffa05b5e2ee088041","head":{"label":"ligi:ligi/bugfix/fix_system_properties_defaults","ref":"ligi/bugfix/fix_system_properties_defaults","sha":"467e673bc6c7dc8d6c1d719ffa05b5e2ee088041","user":{"login":"ligi","id":111600,"avatar_url":"https://avatars.githubusercontent.com/u/111600?v=3","gravatar_id":"","url":"https://api.github.com/users/ligi","html_url":"https://github.com/ligi","followers_url":"https://api.github.com/users/ligi/followers","following_url":"https://api.github.com/users/ligi/following{/other_user}","gists_url":"https://api.github.com/users/ligi/gists{/gist_id}","starred_url":"https://api.github.com/users/ligi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligi/subscriptions","organizations_url":"https://api.github.com/users/ligi/orgs","repos_url":"https://api.github.com/users/ligi/repos","events_url":"https://api.github.com/users/ligi/events{/privacy}","received_events_url":"https://api.github.com/users/ligi/received_events","type":"User","site_admin":false},"repo":{"id":27827211,"name":"ethereumj","full_name":"ligi/ethereumj","owner":{"login":"ligi","id":111600,"avatar_url":"https://avatars.githubusercontent.com/u/111600?v=3","gravatar_id":"","url":"https://api.github.com/users/ligi","html_url":"https://github.com/ligi","followers_url":"https://api.github.com/users/ligi/followers","following_url":"https://api.github.com/users/ligi/following{/other_user}","gists_url":"https://api.github.com/users/ligi/gists{/gist_id}","starred_url":"https://api.github.com/users/ligi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligi/subscriptions","organizations_url":"https://api.github.com/users/ligi/orgs","repos_url":"https://api.github.com/users/ligi/repos","events_url":"https://api.github.com/users/ligi/events{/privacy}","received_events_url":"https://api.github.com/users/ligi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ligi/ethereumj","description":"Ethereum pure Java implementation.","fork":true,"url":"https://api.github.com/repos/ligi/ethereumj","forks_url":"https://api.github.com/repos/ligi/ethereumj/forks","keys_url":"https://api.github.com/repos/ligi/ethereumj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ligi/ethereumj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ligi/ethereumj/teams","hooks_url":"https://api.github.com/repos/ligi/ethereumj/hooks","issue_events_url":"https://api.github.com/repos/ligi/ethereumj/issues/events{/number}","events_url":"https://api.github.com/repos/ligi/ethereumj/events","assignees_url":"https://api.github.com/repos/ligi/ethereumj/assignees{/user}","branches_url":"https://api.github.com/repos/ligi/ethereumj/branches{/branch}","tags_url":"https://api.github.com/repos/ligi/ethereumj/tags","blobs_url":"https://api.github.com/repos/ligi/ethereumj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ligi/ethereumj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ligi/ethereumj/git/refs{/sha}","trees_url":"https://api.github.com/repos/ligi/ethereumj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ligi/ethereumj/statuses/{sha}","languages_url":"https://api.github.com/repos/ligi/ethereumj/languages","stargazers_url":"https://api.github.com/repos/ligi/ethereumj/stargazers","contributors_url":"https://api.github.com/repos/ligi/ethereumj/contributors","subscribers_url":"https://api.github.com/repos/ligi/ethereumj/subscribers","subscription_url":"https://api.github.com/repos/ligi/ethereumj/subscription","commits_url":"https://api.github.com/repos/ligi/ethereumj/commits{/sha}","git_commits_url":"https://api.github.com/repos/ligi/ethereumj/git/commits{/sha}","comments_url":"https://api.github.com/repos/ligi/ethereumj/comments{/number}","issue_comment_url":"https://api.github.com/repos/ligi/ethereumj/issues/comments/{number}","contents_url":"https://api.github.com/repos/ligi/ethereumj/contents/{+path}","compare_url":"https://api.github.com/repos/ligi/ethereumj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ligi/ethereumj/merges","archive_url":"https://api.github.com/repos/ligi/ethereumj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ligi/ethereumj/downloads","issues_url":"https://api.github.com/repos/ligi/ethereumj/issues{/number}","pulls_url":"https://api.github.com/repos/ligi/ethereumj/pulls{/number}","milestones_url":"https://api.github.com/repos/ligi/ethereumj/milestones{/number}","notifications_url":"https://api.github.com/repos/ligi/ethereumj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ligi/ethereumj/labels{/name}","releases_url":"https://api.github.com/repos/ligi/ethereumj/releases{/id}","created_at":"2014-12-10T15:58:12Z","updated_at":"2015-01-20T13:11:18Z","pushed_at":"2015-01-20T19:01:07Z","git_url":"git://github.com/ligi/ethereumj.git","ssh_url":"git@github.com:ligi/ethereumj.git","clone_url":"https://github.com/ligi/ethereumj.git","svn_url":"https://github.com/ligi/ethereumj","homepage":"www.ethereum.org","size":15734,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ethereum:master","ref":"master","sha":"84859727c474477eb5d2f6694d55e8817ddf449b","user":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"repo":{"id":19730456,"name":"ethereumj","full_name":"ethereum/ethereumj","owner":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum/ethereumj","description":"Java implementation of the Ethereum yellowpaper","fork":false,"url":"https://api.github.com/repos/ethereum/ethereumj","forks_url":"https://api.github.com/repos/ethereum/ethereumj/forks","keys_url":"https://api.github.com/repos/ethereum/ethereumj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum/ethereumj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum/ethereumj/teams","hooks_url":"https://api.github.com/repos/ethereum/ethereumj/hooks","issue_events_url":"https://api.github.com/repos/ethereum/ethereumj/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum/ethereumj/events","assignees_url":"https://api.github.com/repos/ethereum/ethereumj/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum/ethereumj/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum/ethereumj/tags","blobs_url":"https://api.github.com/repos/ethereum/ethereumj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum/ethereumj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum/ethereumj/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum/ethereumj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum/ethereumj/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum/ethereumj/languages","stargazers_url":"https://api.github.com/repos/ethereum/ethereumj/stargazers","contributors_url":"https://api.github.com/repos/ethereum/ethereumj/contributors","subscribers_url":"https://api.github.com/repos/ethereum/ethereumj/subscribers","subscription_url":"https://api.github.com/repos/ethereum/ethereumj/subscription","commits_url":"https://api.github.com/repos/ethereum/ethereumj/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum/ethereumj/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum/ethereumj/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum/ethereumj/issues/comments/{number}","contents_url":"https://api.github.com/repos/ethereum/ethereumj/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum/ethereumj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum/ethereumj/merges","archive_url":"https://api.github.com/repos/ethereum/ethereumj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum/ethereumj/downloads","issues_url":"https://api.github.com/repos/ethereum/ethereumj/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum/ethereumj/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum/ethereumj/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum/ethereumj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum/ethereumj/labels{/name}","releases_url":"https://api.github.com/repos/ethereum/ethereumj/releases{/id}","created_at":"2014-05-13T07:50:14Z","updated_at":"2015-01-20T17:12:29Z","pushed_at":"2015-01-20T17:12:29Z","git_url":"git://github.com/ethereum/ethereumj.git","ssh_url":"git@github.com:ethereum/ethereumj.git","clone_url":"https://github.com/ethereum/ethereumj.git","svn_url":"https://github.com/ethereum/ethereumj","homepage":"https://ethereum.org","size":17875,"stargazers_count":98,"watchers_count":98,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":8,"forks":44,"open_issues":8,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum/ethereumj/pulls/208"},"html":{"href":"https://github.com/ethereum/ethereumj/pull/208"},"issue":{"href":"https://api.github.com/repos/ethereum/ethereumj/issues/208"},"comments":{"href":"https://api.github.com/repos/ethereum/ethereumj/issues/208/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum/ethereumj/pulls/208/comments"},"review_comment":{"href":"https://api.github.com/repos/ethereum/ethereumj/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ethereum/ethereumj/pulls/208/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum/ethereumj/statuses/467e673bc6c7dc8d6c1d719ffa05b5e2ee088041"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":68,"deletions":102,"changed_files":1}}