关于RuoYi-Vue-Plus项目启动后,电脑蓝屏导致项目无法编译的记录

128 阅读1分钟

老是报这些错误 For input string:"Le (default-compite) on project ruoyi-system: Fatal error compiling: java.lang.ExceptionInInitializerError: For input string: "000" -> [Help 1] owing articles:

Error: java.lang.ExceptionInInitializerError: For input string: "   "
com.ruoyi.system.constant.BusinessConstants

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project ruoyi-system: Fatal error compiling: java.lang.ExceptionInInitializerError: For input string: " " -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] cwiki.apache.org/confluence/… [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :ruoyi-system

本质就是依赖的一个库会向这个文件写入数据C:\Users\turni.msp中incrementMark(里面是一个数字),电脑意外蓝屏导致数据的没有写入,项目启动后会读取这个数据,但因为没有写入,导致数据是一个空字符串,然后库的Java代码中一直对这个数据进行强制转换,导致报错

image.png