1、IDEA出现Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpst
解决方式:
跳过Test测试,一般当Tests中有错误想要忽略时,也将这个勾上。
2、java.io.IOException Stream closed
一般是在读取某文件内容,要转为流,再转为其他类型(比如字符串)时出现了问题。我这里是文件位置有误。
3、对于多模块项目,出现 Maven报错: Non-resolvable parent POM for XXX
原因:父pom文件设置了 modules 没有先 install 一次会报错
<modules>
<module>../XXX-commons</module>
<module>../XXX-server</module>
<module>../XXX-XXX</module>
<module>../XXX-XXX</module>
<module>../XXX-XXX</module>
<module>../XXX-XXX</module>
</modules>
解决办法:modules注释掉然后先 install一次,再解开之后再 install 就可以了。
若 install 时出现测试类中的错误,可通过 mvn install -DskipTests
4、对于多模块项目,需要注意,当修改了父模块中某个依赖的版本:
注意所有子模块同步一下!
5、集成积木报表时报错:
页面报错:
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> reportConfig [in template "jmreport/desreport/index.ftl" at line 13, column 33] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${reportConfig} [in template "jmreport/desreport/index.ftl" at line 13, column 31] ----
后端日志打印还报 JSONERROR 的错误
解决办法:升级 fastjson 版本 为 2.0.20 及以上
<fastjson.version>2.0.20</fastjson.version>