挖矿异常,无法挖矿

求助
2 705
li2019
li2019 举报
2019-07-17

运行挖矿NBMiner.jar,日志文件如下:

2019-07-17 13:47:21.186  WARN 8784 --- [main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'network': Invocation of init method failed; nested exception is java.nio.file.InvalidPathException: Illegal char  at index 2: E:
ewpdata
2019-07-17 13:47:21.204 ERROR 8784 --- [main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'network': Invocation of init method failed; nested exception is java.nio.file.InvalidPathException: Illegal char  at index 2: E:
ewpdata
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:139) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:414) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1754) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[spring-boot-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]
	at nb.miner.JMinerApplication.main(JMinerApplication.java:92) [classes!/:0.6.0-RELEASE]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_211]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_211]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_211]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_211]
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [NBMiner.jar:0.6.0-RELEASE]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [NBMiner.jar:0.6.0-RELEASE]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [NBMiner.jar:0.6.0-RELEASE]
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [NBMiner.jar:0.6.0-RELEASE]
Caused by: java.nio.file.InvalidPathException: Illegal char  at index 2: E:
ewpdata
	at sun.nio.fs.WindowsPathParser.normalize(Unknown Source) ~[na:1.8.0_211]
	at sun.nio.fs.WindowsPathParser.parse(Unknown Source) ~[na:1.8.0_211]
	at sun.nio.fs.WindowsPathParser.parse(Unknown Source) ~[na:1.8.0_211]
	at sun.nio.fs.WindowsPath.parse(Unknown Source) ~[na:1.8.0_211]
	at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) ~[na:1.8.0_211]
	at java.nio.file.Paths.get(Unknown Source) ~[na:1.8.0_211]
	at nb.miner.core.reader.data.Plots.collectPlotFiles(Plots.java:87) ~[classes!/:0.6.0-RELEASE]
	at nb.miner.core.reader.data.Plots.(Plots.java:55) ~[classes!/:0.6.0-RELEASE]
	at nb.miner.core.reader.Reader.getPlots(Reader.java:245) ~[classes!/:0.6.0-RELEASE]
	at nb.miner.core.network.Network.postConstruct(Network.java:79) ~[classes!/:0.6.0-RELEASE]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_211]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_211]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_211]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_211]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:363) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:307) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
	... 23 common frames omitted

如何解决呢?


倒序看帖 只看楼主
回帖
  • newbi牛币
    2019-07-17

    看错误是路径包含特殊字符。。。

    0 举报 回复
  • 谢谢,已解决,win的默认路径格式是:

    D:\

    模板中的事Linux格式:

    D:/

    newbi牛币:看错误是路径包含特殊字符。。。
    0 举报 回复