NCC is stopped - localhost refused to connect

Yesterday my NEM client was working fine, and then we had a sudden electrical outage. When I tried to restart my NEM client,
it says that NIS is running and is synchronized but it says NCC is not running.
Right-clicking the NEM icon in my task bar and selecting “Start NCC” doesn’t do anything and if I select “Start NCC in browser”,
my browser opens but it says “localhost refused to connect”

Any ideas on how I can fix this?

I have pasted my ncc-0.log below. Thanks for any help.


2016-07-23 15:21:17.770 INFO NEM logging has been bootstrapped! (org.nem.deploy.LoggingBootstrapper bootstrap)
2016-07-23 15:21:17.771 INFO Acquiring exclusive lock to lock file: C:\Users\Greg\nem\ncc.lock (org.nem.deploy.CommonStarter tryAcquireLock)
2016-07-23 15:21:17.773 WARNING no certificate found for (file:/C:/Program%20Files/nemwallet/ncc/nem-deploy-0.6.77-BETA.jar ) (org.nem.core.metadata.CodeSourceFacade )
2016-07-23 15:21:17.774 INFO Analyzing meta data in <nem-deploy-0.6.77-BETA.jar> (org.nem.core.metadata.JarFacade )
2016-07-23 15:21:17.776 INFO Meta data title , version <0.6.77-BETA> (org.nem.core.metadata.JarFacade )
2016-07-23 15:21:17.784 INFO Starting embedded Jetty Server. (org.nem.deploy.CommonStarter main)
2016-07-23 15:21:17.896 INFO Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@6574b225: startup date [Sat Jul 23 10:21:17 EDT 2016]; root of context hierarchy (org.springframework.context.annotation.AnnotationConfigApplicationContext prepareRefresh)
2016-07-23 15:21:18.290 WARNING Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘cloudConnector’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.core.connect.client.AsyncNisConnector]: Factory method ‘cloudConnector’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountLookup’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.services.AccountMetaDataPairLookup]: Factory method ‘accountLookup’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.(AnnotationConfigApplicationContext.java:95)
at org.nem.deploy.CommonStarter.initializeConfigurationPolicy(CommonStarter.java:97)
at org.nem.deploy.CommonStarter.boot(CommonStarter.java:177)
at org.nem.deploy.CommonStarter.bootAndWait(CommonStarter.java:82)
at org.nem.deploy.CommonStarter.main(CommonStarter.java:76)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.core.connect.client.AsyncNisConnector]: Factory method ‘cloudConnector’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountLookup’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.services.AccountMetaDataPairLookup]: Factory method ‘accountLookup’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
… 16 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountLookup’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.services.AccountMetaDataPairLookup]: Factory method ‘accountLookup’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:322)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.accountLookup()
at org.nem.specific.deploy.appconfig.NccAppConfig.cloudConnector(NccAppConfig.java:42)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.CGLIB$cloudConnector$12()
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626$$FastClassBySpringCGLIB$$d6c633fb.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.cloudConnector()
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.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
… 17 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.services.AccountMetaDataPairLookup]: Factory method ‘accountLookup’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
… 38 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:322)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.accountCache()
at org.nem.specific.deploy.appconfig.NccAppConfig.accountLookup(NccAppConfig.java:174)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.CGLIB$accountLookup$19()
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626$$FastClassBySpringCGLIB$$d6c633fb.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.accountLookup()
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.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
… 39 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
… 60 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.nem.ncc.cache.AccountsFileRepository.tryLoad(AccountsFileRepository.java:57)
at org.nem.ncc.cache.AccountsFileRepository.load(AccountsFileRepository.java:42)
at org.nem.specific.deploy.appconfig.NccAppConfig.accountCache(NccAppConfig.java:167)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.CGLIB$accountCache$22()
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626$$FastClassBySpringCGLIB$$d6c633fb.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.accountCache()
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.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
… 61 more
(org.springframework.context.annotation.AnnotationConfigApplicationContext refresh)
2016-07-23 15:21:18.293 SEVERE Stopping Jetty Server.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘cloudConnector’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.core.connect.client.AsyncNisConnector]: Factory method ‘cloudConnector’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountLookup’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.services.AccountMetaDataPairLookup]: Factory method ‘accountLookup’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.(AnnotationConfigApplicationContext.java:95)
at org.nem.deploy.CommonStarter.initializeConfigurationPolicy(CommonStarter.java:97)
at org.nem.deploy.CommonStarter.boot(CommonStarter.java:177)
at org.nem.deploy.CommonStarter.bootAndWait(CommonStarter.java:82)
at org.nem.deploy.CommonStarter.main(CommonStarter.java:76)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.core.connect.client.AsyncNisConnector]: Factory method ‘cloudConnector’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountLookup’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.services.AccountMetaDataPairLookup]: Factory method ‘accountLookup’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
… 16 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountLookup’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.services.AccountMetaDataPairLookup]: Factory method ‘accountLookup’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:322)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.accountLookup()
at org.nem.specific.deploy.appconfig.NccAppConfig.cloudConnector(NccAppConfig.java:42)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.CGLIB$cloudConnector$12()
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626$$FastClassBySpringCGLIB$$d6c633fb.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.cloudConnector()
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.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
… 17 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.services.AccountMetaDataPairLookup]: Factory method ‘accountLookup’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
… 38 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountCache’ defined in org.nem.specific.deploy.appconfig.NccAppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:322)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.accountCache()
at org.nem.specific.deploy.appconfig.NccAppConfig.accountLookup(NccAppConfig.java:174)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.CGLIB$accountLookup$19()
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626$$FastClassBySpringCGLIB$$d6c633fb.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.accountLookup()
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.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
… 39 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nem.ncc.cache.NccAccountCache]: Factory method ‘accountCache’ threw exception; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
… 60 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to net.minidev.json.JSONObject
at org.nem.ncc.cache.AccountsFileRepository.tryLoad(AccountsFileRepository.java:57)
at org.nem.ncc.cache.AccountsFileRepository.load(AccountsFileRepository.java:42)
at org.nem.specific.deploy.appconfig.NccAppConfig.accountCache(NccAppConfig.java:167)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.CGLIB$accountCache$22()
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626$$FastClassBySpringCGLIB$$d6c633fb.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
at org.nem.specific.deploy.appconfig.NccAppConfig$$EnhancerBySpringCGLIB$$a1946626.accountCache()
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.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
… 61 more
(org.nem.deploy.CommonStarter bootAndWait)
2016-07-23 15:21:18.294 INFO NEM Deploy 0.6.77-BETA shutdown… (org.nem.deploy.CommonStarter bootAndWait)

Delete the file accounts_cache_mainnet.json in the folder c:\users\ < your_user > \nem\ncc.
Then start ncc again.

That was easy. It’s working fine again. Thanks a lot.

Thank you, had the same issue!!!