20211215-a1b691048,2021年12月份培训
问题:codeAssemblyScript执行发现依赖失效
运行codeAssemblyScript的时候如果出现:T: Failed to collect dependencies at org.apache.iotdb:iotdb-jdbc:jar:0.11.2-> org.apache.iotdb:tsfile:jar:0.11.2-> org.glassfish.jaxb:jaxb-runtime:jar:2.4.0-b180725.0644-> com.sun.istack:istack-commons-runtime:jar:3.0.6
原因:是由于iotdb jdbc包依赖的jar包已经停止维护,
对策:
解决方案是找到dwf-common中的pom.xml将
<iotdb-version-11>0.11.2</iotdb-version-11>
改为
<iotdb-version-11>0.11.4</iotdb-version-11>
重新运行codeAssemblyScript.sh
问题:启动app端和modeler段springboot调试进程同时占用8080端口冲突的情况
原因:新版本app和modeler端允许开发了配置选项,支持开发人员在调试的时候自由选择端口
对策:
dwf-app\src\main\resources\application.properties
dwf-modeler\src\main\resources\application.properties
增加server.port配置项,如下所示
后续版本的SDK默认加上此配置
问题:modeler-web使用npm run dev时报缺少文件,These relative modules were not found
modeler-web/ npm run dev,ERROR Failed to compile with 2 errors,These relative modules were not found:
* ../../../assets/images/form-management/表单-1.png in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/form-engine/components/form-table-expand.vue?vue&type=script&lang=js&
* ../../../assets/images/form-management/表单-2.png in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/form-engine/components/form-table-expand.vue?vue&type=script&lang=js&
原因:使用winrar解压zip文件时候会出现文件名变成乱码的情况,如下图所示:
左边为rar解压以后的文件名,右边为相同压缩文件用window自带的解压工具打开以后的文件名
对策:
短期:使用Windows自带的解压缩工具解压zip包,或者换别的解压缩工具,例如:360压缩。
终极解决方案是:下一轮迭代中将使用中文名的图片文件一律改成英文名。
问题:调试方式启动后端进程的时候出现无法找到主类