页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 前一个 版本 6 下一个 »

20211215-a1b691048,2021年12月份培训

问题:codeAssemblyScript执行发现iotdb依赖失效

运行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默认加上此配置


问题:为什么模型包在调试环境下释放会出现乱码?

使用官方的模型包释放到调试环境下以后,内容出现乱码?

原因:

如果是中文windows操作系统默认使用的GBK编码,而模型包在打包的时候在linux上组装,所以使用的是UTF8

对策:

调试启动的时候需要将启动环境设为默认按照UTF8启动java虚拟机,设置方式是增加launch.json中虚拟机启动的参数:

如下所示:"vmArgs": "-Dfile.encoding=utf-8"

       {
            "type": "java",
            "name": "Launch MyApp",
            "request": "launch",
            "mainClass": "edu.thss.MyApp",
            "projectName": "dwf-app",
            "vmArgs": "-Dfile.encoding=utf-8"
        },

问题:怎么样把调试输出控制台的乱码改正过来?

现象是SpringBoot调试输出的中文字打印出来以后就成了乱码,怎么样变成正常?

原因:

SpringBoot进程启动的时候使用UTF8,控制台显示的时候使用操作系统的字符集GBK,所以产生乱码。

对策:

修改工作空间的环境变量,在settings.json中增加配置,使用GBK编码显示程序的输出:

    "terminal.integrated.profiles.windows": {
        "PowerShell": {
          "source": "PowerShell",
          "overrideName": true,
          "args": ["-NoExit", "/c", "chcp 65001"],
          "icon": "terminal-powershell",
          "env": {
            "TEST_VAR": "value"
          }
        }
      },
    "terminal.integrated.defaultProfile.windows": "PowerShell",

问题: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压缩。

终极解决方案是:下一轮迭代中将使用中文名的图片文件一律改成英文名。

问题:调试方式启动后端进程的时候出现无法找到主类

  • 无标签