BladeX物联网平台运行blade-broker报错

Blade 未结 1 435
zjk861018
zjk861018 剑童 2024-08-01 09:14

一、该问题的重现步骤是什么?

1. 根据官方文档https://iot.bladex.cn/tech/start/run.html,满足运行环境要求后,使用docker启动了mysql、redis、influxdb后,启动BladeX-Links工程下的blade-broker模块的BrokerApplication启动类,报错

image.png


二、你期待的结果是什么?实际看到的又是什么?

期待能够按照技术文档一样能够正常启动:

image.png


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

BladeX物联网平台,在Windows操作系统上


四、请提供详细的错误堆栈信息,这很重要。

"D:\Program Files\Java\zulu17.52.17-ca-jdk17.0.12\bin\java.exe" -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2023.2.2\lib\idea_rt.jar=54307:D:\Program Files\JetBrains\IntelliJ IDEA 2023.2.2\bin" -Dfile.encoding=UTF-8 -classpath "F:\code\test\BladeX-Links-dev\bladex-links\blade-broker\target\classes;F:\code\test\BladeX-Links-dev\bladex-links\blade-base\target\classes;D:\Program Files\Apache\apache-maven-repository\org\springblade\blade-core-launch\4.2.0-SNAPSHOT\blade-core-launch-4.2.0-20240727.091059-5.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter-web\3.2.7\spring-boot-starter-web-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter-json\3.2.7\spring-boot-starter-json-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.15.4\jackson-datatype-jdk8-2.15.4.jar;D:\Program Files\Apache\apache-maven-repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.15.4\jackson-module-parameter-names-2.15.4.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-web\6.1.10\spring-web-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-webmvc\6.1.10\spring-webmvc-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-expression\6.1.10\spring-expression-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter-undertow\3.2.7\spring-boot-starter-undertow-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\io\undertow\undertow-core\2.3.13.Final\undertow-core-2.3.13.Final.jar;D:\Program Files\Apache\apache-maven-repository\org\jboss\xnio\xnio-api\3.8.8.Final\xnio-api-3.8.8.Final.jar;D:\Program Files\Apache\apache-maven-repository\org\wildfly\common\wildfly-common\1.5.4.Final\wildfly-common-1.5.4.Final.jar;D:\Program Files\Apache\apache-maven-repository\org\wildfly\client\wildfly-client-config\1.0.1.Final\wildfly-client-config-1.0.1.Final.jar;D:\Program Files\Apache\apache-maven-repository\org\jboss\xnio\xnio-nio\3.8.8.Final\xnio-nio-3.8.8.Final.jar;D:\Program Files\Apache\apache-maven-repository\org\jboss\threads\jboss-threads\3.5.0.Final\jboss-threads-3.5.0.Final.jar;D:\Program Files\Apache\apache-maven-repository\io\undertow\undertow-servlet\2.3.13.Final\undertow-servlet-2.3.13.Final.jar;D:\Program Files\Apache\apache-maven-repository\io\undertow\undertow-websockets-jsr\2.3.13.Final\undertow-websockets-jsr-2.3.13.Final.jar;D:\Program Files\Apache\apache-maven-repository\jakarta\websocket\jakarta.websocket-api\2.1.1\jakarta.websocket-api-2.1.1.jar;D:\Program Files\Apache\apache-maven-repository\jakarta\websocket\jakarta.websocket-client-api\2.1.1\jakarta.websocket-client-api-2.1.1.jar;D:\Program Files\Apache\apache-maven-repository\org\apache\tomcat\embed\tomcat-embed-el\10.1.25\tomcat-embed-el-10.1.25.jar;D:\Program Files\Apache\apache-maven-repository\jakarta\servlet\jakarta.servlet-api\6.0.0\jakarta.servlet-api-6.0.0.jar;D:\Program Files\Apache\apache-maven-repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;D:\Program Files\Apache\apache-maven-repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;D:\Program Files\Apache\apache-maven-repository\com\sun\xml\bind\jaxb-core\4.0.5\jaxb-core-4.0.5.jar;D:\Program Files\Apache\apache-maven-repository\org\eclipse\angus\angus-activation\2.0.2\angus-activation-2.0.2.jar;D:\Program Files\Apache\apache-maven-repository\com\sun\xml\bind\jaxb-impl\4.0.5\jaxb-impl-4.0.5.jar;D:\Program Files\Apache\apache-maven-repository\javax\activation\activation\1.1.1\activation-1.1.1.jar;D:\Program Files\Apache\apache-maven-repository\org\springblade\blade-starter-mybatis\4.2.0-SNAPSHOT\blade-starter-mybatis-4.2.0-20240727.091059-5.jar;D:\Program Files\Apache\apache-maven-repository\org\mybatis\mybatis\3.5.16\mybatis-3.5.16.jar;D:\Program Files\Apache\apache-maven-repository\org\mybatis\mybatis-spring\3.0.3\mybatis-spring-3.0.3.jar;D:\Program Files\Apache\apache-maven-repository\com\baomidou\mybatis-plus\3.5.7\mybatis-plus-3.5.7.jar;D:\Program Files\Apache\apache-maven-repository\com\baomidou\mybatis-plus-core\3.5.7\mybatis-plus-core-3.5.7.jar;D:\Program Files\Apache\apache-maven-repository\com\baomidou\mybatis-plus-annotation\3.5.7\mybatis-plus-annotation-3.5.7.jar;D:\Program Files\Apache\apache-maven-repository\com\baomidou\mybatis-plus-extension\3.5.7\mybatis-plus-extension-3.5.7.jar;D:\Program Files\Apache\apache-maven-repository\com\github\jsqlparser\jsqlparser\4.9\jsqlparser-4.9.jar;D:\Program Files\Apache\apache-maven-repository\net\dreamlu\mica-mqttx-common\3.1.5\mica-mqttx-common-3.1.5.jar;D:\Program Files\Apache\apache-maven-repository\net\dreamlu\mica-mqttx-codec\3.1.5\mica-mqttx-codec-3.1.5.jar;D:\Program Files\Apache\apache-maven-repository\net\dreamlu\mica-net-core\1.0.4\mica-net-core-1.0.4.jar;D:\Program Files\Apache\apache-maven-repository\net\dreamlu\mica-net-utils\1.0.4\mica-net-utils-1.0.4.jar;D:\Program Files\Apache\apache-maven-repository\org\springblade\blade-core-boot\4.2.0-SNAPSHOT\blade-core-boot-4.2.0-20240727.091059-5.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter-jdbc\3.2.7\spring-boot-starter-jdbc-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\com\zaxxer\HikariCP\5.0.1\HikariCP-5.0.1.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-jdbc\6.1.10\spring-jdbc-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-beans\6.1.10\spring-beans-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-tx\6.1.10\spring-tx-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter-cache\3.2.7\spring-boot-starter-cache-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-context-support\6.1.10\spring-context-support-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-context\6.1.10\spring-context-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\springblade\blade-core-tool\4.2.0-SNAPSHOT\blade-core-tool-4.2.0-20240727.091059-5.jar;D:\Program Files\Apache\apache-maven-repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.15.4\jackson-datatype-jsr310-2.15.4.jar;D:\Program Files\Apache\apache-maven-repository\com\fasterxml\jackson\core\jackson-annotations\2.15.4\jackson-annotations-2.15.4.jar;D:\Program Files\Apache\apache-maven-repository\com\fasterxml\jackson\core\jackson-core\2.15.4\jackson-core-2.15.4.jar;D:\Program Files\Apache\apache-maven-repository\com\google\guava\guava\33.1.0-jre\guava-33.1.0-jre.jar;D:\Program Files\Apache\apache-maven-repository\com\google\guava\failureaccess\1.0.2\failureaccess-1.0.2.jar;D:\Program Files\Apache\apache-maven-repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\Program Files\Apache\apache-maven-repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\Program Files\Apache\apache-maven-repository\org\checkerframework\checker-qual\3.42.0\checker-qual-3.42.0.jar;D:\Program Files\Apache\apache-maven-repository\com\google\errorprone\error_prone_annotations\2.26.1\error_prone_annotations-2.26.1.jar;D:\Program Files\Apache\apache-maven-repository\com\google\j2objc\j2objc-annotations\3.0.0\j2objc-annotations-3.0.0.jar;D:\Program Files\Apache\apache-maven-repository\io\swagger\core\v3\swagger-annotations\2.2.19\swagger-annotations-2.2.19.jar;D:\Program Files\Apache\apache-maven-repository\io\protostuff\protostuff-core\1.6.0\protostuff-core-1.6.0.jar;D:\Program Files\Apache\apache-maven-repository\io\protostuff\protostuff-api\1.6.0\protostuff-api-1.6.0.jar;D:\Program Files\Apache\apache-maven-repository\io\protostuff\protostuff-runtime\1.6.0\protostuff-runtime-1.6.0.jar;D:\Program Files\Apache\apache-maven-repository\io\protostuff\protostuff-collectionschema\1.6.0\protostuff-collectionschema-1.6.0.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter-data-redis\3.2.7\spring-boot-starter-data-redis-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\io\lettuce\lettuce-core\6.3.2.RELEASE\lettuce-core-6.3.2.RELEASE.jar;D:\Program Files\Apache\apache-maven-repository\io\netty\netty-common\4.1.111.Final\netty-common-4.1.111.Final.jar;D:\Program Files\Apache\apache-maven-repository\io\netty\netty-handler\4.1.111.Final\netty-handler-4.1.111.Final.jar;D:\Program Files\Apache\apache-maven-repository\io\netty\netty-resolver\4.1.111.Final\netty-resolver-4.1.111.Final.jar;D:\Program Files\Apache\apache-maven-repository\io\netty\netty-buffer\4.1.111.Final\netty-buffer-4.1.111.Final.jar;D:\Program Files\Apache\apache-maven-repository\io\netty\netty-transport-native-unix-common\4.1.111.Final\netty-transport-native-unix-common-4.1.111.Final.jar;D:\Program Files\Apache\apache-maven-repository\io\netty\netty-codec\4.1.111.Final\netty-codec-4.1.111.Final.jar;D:\Program Files\Apache\apache-maven-repository\io\netty\netty-transport\4.1.111.Final\netty-transport-4.1.111.Final.jar;D:\Program Files\Apache\apache-maven-repository\io\projectreactor\reactor-core\3.6.7\reactor-core-3.6.7.jar;D:\Program Files\Apache\apache-maven-repository\org\reactivestreams\reactive-streams\1.0.4\reactive-streams-1.0.4.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\data\spring-data-redis\3.2.7\spring-data-redis-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\data\spring-data-keyvalue\3.2.7\spring-data-keyvalue-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\data\spring-data-commons\3.2.7\spring-data-commons-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-oxm\6.1.10\spring-oxm-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\bouncycastle\bcprov-jdk18on\1.78.1\bcprov-jdk18on-1.78.1.jar;D:\Program Files\Apache\apache-maven-repository\org\springblade\blade-core-secure\4.2.0-SNAPSHOT\blade-core-secure-4.2.0-20240727.091059-5.jar;D:\Program Files\Apache\apache-maven-repository\io\jsonwebtoken\jjwt-impl\0.11.2\jjwt-impl-0.11.2.jar;D:\Program Files\Apache\apache-maven-repository\io\jsonwebtoken\jjwt-api\0.11.2\jjwt-api-0.11.2.jar;D:\Program Files\Apache\apache-maven-repository\io\jsonwebtoken\jjwt-jackson\0.11.2\jjwt-jackson-0.11.2.jar;D:\Program Files\Apache\apache-maven-repository\org\springblade\blade-starter-log\4.2.0-SNAPSHOT\blade-starter-log-4.2.0-20240727.091059-5.jar;D:\Program Files\Apache\apache-maven-repository\org\springblade\blade-starter-swagger\4.2.0-SNAPSHOT\blade-starter-swagger-4.2.0-20240727.091059-5.jar;D:\Program Files\Apache\apache-maven-repository\com\github\xiaoymin\knife4j-openapi3-jakarta-spring-boot-starter\4.5.0\knife4j-openapi3-jakarta-spring-boot-starter-4.5.0.jar;D:\Program Files\Apache\apache-maven-repository\com\github\xiaoymin\knife4j-core\4.5.0\knife4j-core-4.5.0.jar;D:\Program Files\Apache\apache-maven-repository\org\springdoc\springdoc-openapi-starter-webmvc-ui\2.3.0\springdoc-openapi-starter-webmvc-ui-2.3.0.jar;D:\Program Files\Apache\apache-maven-repository\org\springdoc\springdoc-openapi-starter-webmvc-api\2.3.0\springdoc-openapi-starter-webmvc-api-2.3.0.jar;D:\Program Files\Apache\apache-maven-repository\org\springdoc\springdoc-openapi-starter-common\2.3.0\springdoc-openapi-starter-common-2.3.0.jar;D:\Program Files\Apache\apache-maven-repository\io\swagger\core\v3\swagger-core-jakarta\2.2.19\swagger-core-jakarta-2.2.19.jar;D:\Program Files\Apache\apache-maven-repository\org\apache\commons\commons-lang3\3.13.0\commons-lang3-3.13.0.jar;D:\Program Files\Apache\apache-maven-repository\io\swagger\core\v3\swagger-annotations-jakarta\2.2.19\swagger-annotations-jakarta-2.2.19.jar;D:\Program Files\Apache\apache-maven-repository\io\swagger\core\v3\swagger-models-jakarta\2.2.19\swagger-models-jakarta-2.2.19.jar;D:\Program Files\Apache\apache-maven-repository\com\fasterxml\jackson\dataformat\jackson-dataformat-yaml\2.15.4\jackson-dataformat-yaml-2.15.4.jar;D:\Program Files\Apache\apache-maven-repository\org\webjars\swagger-ui\5.10.3\swagger-ui-5.10.3.jar;D:\Program Files\Apache\apache-maven-repository\com\baomidou\mybatis-plus-spring-boot3-starter\3.5.7\mybatis-plus-spring-boot3-starter-3.5.7.jar;D:\Program Files\Apache\apache-maven-repository\com\baomidou\mybatis-plus-spring-boot-autoconfigure\3.5.7\mybatis-plus-spring-boot-autoconfigure-3.5.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-autoconfigure\3.2.7\spring-boot-autoconfigure-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\mybatis\mybatis-typehandlers-jsr310\1.0.2\mybatis-typehandlers-jsr310-1.0.2.jar;D:\Program Files\Apache\apache-maven-repository\net\sf\ehcache\ehcache\2.10.5\ehcache-2.10.5.jar;D:\Program Files\Apache\apache-maven-repository\com\alibaba\druid-spring-boot-3-starter\1.2.22\druid-spring-boot-3-starter-1.2.22.jar;D:\Program Files\Apache\apache-maven-repository\com\alibaba\druid\1.2.22\druid-1.2.22.jar;D:\Program Files\Apache\apache-maven-repository\com\mysql\mysql-connector-j\8.3.0\mysql-connector-j-8.3.0.jar;D:\Program Files\Apache\apache-maven-repository\com\google\protobuf\protobuf-java\3.25.1\protobuf-java-3.25.1.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter-aop\3.2.7\spring-boot-starter-aop-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-aop\6.1.10\spring-aop-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\aspectj\aspectjweaver\1.9.22\aspectjweaver-1.9.22.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter-actuator\3.2.7\spring-boot-starter-actuator-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-actuator-autoconfigure\3.2.7\spring-boot-actuator-autoconfigure-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-actuator\3.2.7\spring-boot-actuator-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\io\micrometer\micrometer-observation\1.12.7\micrometer-observation-1.12.7.jar;D:\Program Files\Apache\apache-maven-repository\io\micrometer\micrometer-commons\1.12.7\micrometer-commons-1.12.7.jar;D:\Program Files\Apache\apache-maven-repository\io\micrometer\micrometer-jakarta9\1.12.7\micrometer-jakarta9-1.12.7.jar;D:\Program Files\Apache\apache-maven-repository\io\micrometer\micrometer-core\1.12.7\micrometer-core-1.12.7.jar;D:\Program Files\Apache\apache-maven-repository\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;D:\Program Files\Apache\apache-maven-repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\retry\spring-retry\2.0.6\spring-retry-2.0.6.jar;D:\Program Files\Apache\apache-maven-repository\org\hibernate\validator\hibernate-validator\8.0.1.Final\hibernate-validator-8.0.1.Final.jar;D:\Program Files\Apache\apache-maven-repository\jakarta\validation\jakarta.validation-api\3.0.2\jakarta.validation-api-3.0.2.jar;D:\Program Files\Apache\apache-maven-repository\org\jboss\logging\jboss-logging\3.5.3.Final\jboss-logging-3.5.3.Final.jar;D:\Program Files\Apache\apache-maven-repository\com\fasterxml\classmate\1.6.0\classmate-1.6.0.jar;D:\Program Files\Apache\apache-maven-repository\net\dreamlu\mica-mqttx-server-spring-boot-starter\3.1.5\mica-mqttx-server-spring-boot-starter-3.1.5.jar;D:\Program Files\Apache\apache-maven-repository\net\dreamlu\mica-mqttx-server\3.1.5\mica-mqttx-server-3.1.5.jar;D:\Program Files\Apache\apache-maven-repository\net\dreamlu\mica-net-http\1.0.4\mica-net-http-1.0.4.jar;D:\Program Files\Apache\apache-maven-repository\net\dreamlu\mica-mqttx-client\3.1.5\mica-mqttx-client-3.1.5.jar;D:\Program Files\Apache\apache-maven-repository\org\influxdb\influxdb-java\2.23\influxdb-java-2.23.jar;D:\Program Files\Apache\apache-maven-repository\com\squareup\retrofit2\retrofit\2.9.0\retrofit-2.9.0.jar;D:\Program Files\Apache\apache-maven-repository\com\squareup\retrofit2\converter-moshi\2.9.0\converter-moshi-2.9.0.jar;D:\Program Files\Apache\apache-maven-repository\com\squareup\moshi\moshi\1.8.0\moshi-1.8.0.jar;D:\Program Files\Apache\apache-maven-repository\org\msgpack\msgpack-core\0.9.3\msgpack-core-0.9.3.jar;D:\Program Files\Apache\apache-maven-repository\com\squareup\okhttp3\okhttp\4.12.0\okhttp-4.12.0.jar;D:\Program Files\Apache\apache-maven-repository\com\squareup\okio\okio\3.6.0\okio-3.6.0.jar;D:\Program Files\Apache\apache-maven-repository\com\squareup\okio\okio-jvm\3.6.0\okio-jvm-3.6.0.jar;D:\Program Files\Apache\apache-maven-repository\org\jetbrains\kotlin\kotlin-stdlib-common\1.9.24\kotlin-stdlib-common-1.9.24.jar;D:\Program Files\Apache\apache-maven-repository\org\jetbrains\kotlin\kotlin-stdlib-jdk8\1.9.24\kotlin-stdlib-jdk8-1.9.24.jar;D:\Program Files\Apache\apache-maven-repository\org\jetbrains\kotlin\kotlin-stdlib\1.9.24\kotlin-stdlib-1.9.24.jar;D:\Program Files\Apache\apache-maven-repository\org\jetbrains\annotations\13.0\annotations-13.0.jar;D:\Program Files\Apache\apache-maven-repository\org\jetbrains\kotlin\kotlin-stdlib-jdk7\1.9.24\kotlin-stdlib-jdk7-1.9.24.jar;D:\Program Files\Apache\apache-maven-repository\com\squareup\okhttp3\logging-interceptor\4.12.0\logging-interceptor-4.12.0.jar;D:\Program Files\Apache\apache-maven-repository\com\rabbitmq\amqp-client\5.21.0\amqp-client-5.21.0.jar;D:\Program Files\Apache\apache-maven-repository\org\slf4j\slf4j-api\2.0.13\slf4j-api-2.0.13.jar;D:\Program Files\Apache\apache-maven-repository\org\openjdk\nashorn\nashorn-core\15.4\nashorn-core-15.4.jar;D:\Program Files\Apache\apache-maven-repository\org\ow2\asm\asm\7.3.1\asm-7.3.1.jar;D:\Program Files\Apache\apache-maven-repository\org\ow2\asm\asm-commons\7.3.1\asm-commons-7.3.1.jar;D:\Program Files\Apache\apache-maven-repository\org\ow2\asm\asm-analysis\7.3.1\asm-analysis-7.3.1.jar;D:\Program Files\Apache\apache-maven-repository\org\ow2\asm\asm-tree\7.3.1\asm-tree-7.3.1.jar;D:\Program Files\Apache\apache-maven-repository\org\ow2\asm\asm-util\7.3.1\asm-util-7.3.1.jar;D:\Program Files\Apache\apache-maven-repository\com\ibeetl\beetl\3.16.2.RELEASE\beetl-3.16.2.RELEASE.jar;D:\Program Files\Apache\apache-maven-repository\org\antlr\antlr4-runtime\4.9.2\antlr4-runtime-4.9.2.jar;D:\Program Files\Apache\apache-maven-repository\com\ibeetl\beetl-core\3.16.2.RELEASE\beetl-core-3.16.2.RELEASE.jar;D:\Program Files\Apache\apache-maven-repository\com\ibeetl\beetl-default-antlr4.9-support\3.16.2.RELEASE\beetl-default-antlr4.9-support-3.16.2.RELEASE.jar;D:\Program Files\Apache\apache-maven-repository\com\ibeetl\beetl-ext\3.16.2.RELEASE\beetl-ext-3.16.2.RELEASE.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter\3.2.7\spring-boot-starter-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot\3.2.7\spring-boot-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\boot\spring-boot-starter-logging\3.2.7\spring-boot-starter-logging-3.2.7.jar;D:\Program Files\Apache\apache-maven-repository\ch\qos\logback\logback-classic\1.4.14\logback-classic-1.4.14.jar;D:\Program Files\Apache\apache-maven-repository\ch\qos\logback\logback-core\1.4.14\logback-core-1.4.14.jar;D:\Program Files\Apache\apache-maven-repository\org\apache\logging\log4j\log4j-to-slf4j\2.21.1\log4j-to-slf4j-2.21.1.jar;D:\Program Files\Apache\apache-maven-repository\org\apache\logging\log4j\log4j-api\2.21.1\log4j-api-2.21.1.jar;D:\Program Files\Apache\apache-maven-repository\org\slf4j\jul-to-slf4j\2.0.13\jul-to-slf4j-2.0.13.jar;D:\Program Files\Apache\apache-maven-repository\jakarta\annotation\jakarta.annotation-api\2.1.1\jakarta.annotation-api-2.1.1.jar;D:\Program Files\Apache\apache-maven-repository\org\yaml\snakeyaml\2.2\snakeyaml-2.2.jar;D:\Program Files\Apache\apache-maven-repository\jakarta\xml\bind\jakarta.xml.bind-api\4.0.2\jakarta.xml.bind-api-4.0.2.jar;D:\Program Files\Apache\apache-maven-repository\jakarta\activation\jakarta.activation-api\2.1.3\jakarta.activation-api-2.1.3.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-core\6.1.10\spring-core-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\org\springframework\spring-jcl\6.1.10\spring-jcl-6.1.10.jar;D:\Program Files\Apache\apache-maven-repository\com\fasterxml\jackson\core\jackson-databind\2.15.4\jackson-databind-2.15.4.jar;D:\Program Files\Apache\apache-maven-repository\com\github\xiaoymin\knife4j-openapi3-ui\4.5.0\knife4j-openapi3-ui-4.5.0.jar;D:\Program Files\Apache\apache-maven-repository\org\projectlombok\lombok\1.18.30\lombok-1.18.30.jar" org.springblade.mqtt.broker.BrokerApplication

----启动中,读取到的环境变量:[dev],jar地址:[/F:/code/test/BladeX-Links-dev/bladex-links/blade-broker/target/classes/]----

   ____  _           _     __   __    _     _       _

  |  _ \| |         | |    \ \ / /   | |   (_)     | |

  | |_) | | __ _  __| | ___ \ V /    | |    _ _ __ | | _____

  |  _ <| |/ _` |/ _` |/ _ \ > <     | |   | | '_ \| |/ / __|

  | |_) | | (_| | (_| |  __// . \    | |___| | | | |   <\__ \

  |____/|_|\__,_|\__,_|\___/_/ \_\   |_____|_|_| |_|_|\_\___/


:: BladeX :: blade-broker:dev :: Running SpringBoot 3.2.7 :: 


2024-07-31 18:37:01.250  INFO 5252 --- [kground-preinit] o.h.validator.internal.util.Version      : HV000001: Hibernate Validator 8.0.1.Final

2024-07-31 18:37:01.285  INFO 5252 --- [           main] o.s.mqtt.broker.BrokerApplication        : Starting BrokerApplication using Java 17.0.12 with PID 5252 (F:\code\test\BladeX-Links-dev\bladex-links\blade-broker\target\classes started by Administrator in F:\code\test\BladeX-Links-dev\bladex-links)

2024-07-31 18:37:01.285 DEBUG 5252 --- [           main] o.s.mqtt.broker.BrokerApplication        : Running with Spring Boot v3.2.7, Spring v6.1.10

2024-07-31 18:37:01.286  INFO 5252 --- [           main] o.s.mqtt.broker.BrokerApplication        : The following 1 profile is active: "dev"

2024-07-31 18:37:02.046  INFO 5252 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode

2024-07-31 18:37:02.048  INFO 5252 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.

2024-07-31 18:37:02.071  INFO 5252 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 15 ms. Found 0 Redis repository interfaces.

2024-07-31 18:37:02.132  WARN 5252 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : Skipping MapperFactoryBean with name 'mqttAccountMapper' and 'org.springblade.mqtt.broker.auth.mapper.MqttAccountMapper' mapperInterface. Bean already defined with the same name!

2024-07-31 18:37:02.133  WARN 5252 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : Skipping MapperFactoryBean with name 'mqttAuthLogMapper' and 'org.springblade.mqtt.broker.auth.mapper.MqttAuthLogMapper' mapperInterface. Bean already defined with the same name!

2024-07-31 18:37:02.133  WARN 5252 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : Skipping MapperFactoryBean with name 'deviceMapper' and 'org.springblade.mqtt.broker.device.mapper.DeviceMapper' mapperInterface. Bean already defined with the same name!

2024-07-31 18:37:02.196  INFO 5252 --- [           main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor init.

2024-07-31 18:37:02.226  INFO 5252 --- [           main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor process @BladePropertySource bean.

2024-07-31 18:37:02.461  WARN 5252 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'net.dreamlu.iot.mqtt.spring.server.config.MqttServerConfiguration' of type [net.dreamlu.iot.mqtt.spring.server.config.MqttServerConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [mqttServerFunctionDetector] is declared through a non-static factory method on that class; consider declaring it as static instead.

2024-07-31 18:37:02.470  WARN 5252 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'deviceFunctionConfiguration' of type [org.springblade.mqtt.broker.data.function.config.DeviceFunctionConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [mqttServerFunctionDetector]? Check the corresponding BeanPostProcessor declaration and its dependencies.

2024-07-31 18:37:02.473  WARN 5252 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'mqttFunctionManager' of type [net.dreamlu.iot.mqtt.core.server.func.MqttFunctionManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [mqttServerFunctionDetector]? Check the corresponding BeanPostProcessor declaration and its dependencies.

2024-07-31 18:37:02.678  WARN 5252 --- [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used

2024-07-31 18:37:02.688  INFO 5252 --- [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext

2024-07-31 18:37:02.688  INFO 5252 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1376 ms

2024-07-31 18:37:02.900  INFO 5252 --- [           main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource

2024-07-31 18:37:02.960  INFO 5252 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited

2024-07-31 18:37:03.892  INFO 5252 --- [           main] n.d.i.m.core.server.MqttServerCreator    : Mica mqtt http api enable:false websocket enable:true

2024-07-31 18:37:04.654  INFO 5252 --- [           main] o.s.core.boot.config.RetryConfiguration  : configServerRetryInterceptor: Changing backOffOptions to initial: 1000, multiplier: 1.2, maxInterval: 5000

2024-07-31 18:37:04.684  INFO 5252 --- [           main] o.s.core.log.logger.BladeLogger          : blade-broker: BladeLogger init success!

2024-07-31 18:37:05.195  INFO 5252 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint(s) beneath base path '/actuator'

2024-07-31 18:37:05.310 DEBUG 5252 --- [           main] o.s.c.b.tenant.BladeTenantInterceptor    : original SQL: SELECT  id,product_id,product_key,script,script_type,tenant_id,create_user,create_dept,create_time,update_user,update_time,status,is_deleted  FROM iot_product_script  WHERE is_deleted=0     AND (status = ?)

2024-07-31 18:37:05.338 DEBUG 5252 --- [           main] o.s.c.b.tenant.BladeTenantInterceptor    : SQL to parse, SQL: SELECT  id,product_id,product_key,script,script_type,tenant_id,create_user,create_dept,create_time,update_user,update_time,status,is_deleted  FROM iot_product_script  WHERE is_deleted=0     AND (status = ?)

2024-07-31 18:37:05.339 DEBUG 5252 --- [           main] o.s.c.b.tenant.BladeTenantInterceptor    : parse the finished SQL: SELECT id, product_id, product_key, script, script_type, tenant_id, create_user, create_dept, create_time, update_user, update_time, status, is_deleted FROM iot_product_script WHERE is_deleted = 0 AND (status = ?)

2024-07-31 18:37:05.347 DEBUG 5252 --- [           main] o.s.m.b.d.m.P.selectList                 : ==>  Preparing: SELECT id, product_id, product_key, script, script_type, tenant_id, create_user, create_dept, create_time, update_user, update_time, status, is_deleted FROM iot_product_script WHERE is_deleted = 0 AND (status = ?)

2024-07-31 18:37:05.360  WARN 5252 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.mybatis.spring.MyBatisSystemException

2024-07-31 18:37:05.372  INFO 5252 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closing ...

2024-07-31 18:37:05.375  INFO 5252 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closed

2024-07-31 18:37:05.384  INFO 5252 --- [           main] .s.b.a.l.ConditionEvaluationReportLogger : 


Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.

2024-07-31 18:37:05.395 ERROR 5252 --- [           main] o.s.boot.SpringApplication               : Application run failed


org.mybatis.spring.MyBatisSystemException: null

at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:97)

at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:439)

at jdk.proxy2/jdk.proxy2.$Proxy125.selectList(Unknown Source)

at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224)

at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:164)

at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:77)

at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:152)

at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)

at jdk.proxy2/jdk.proxy2.$Proxy144.selectList(Unknown Source)

at com.baomidou.mybatisplus.extension.service.IService.list(IService.java:407)

at org.springblade.mqtt.broker.data.service.impl.ProductScriptServiceImpl.afterSingletonsInstantiated(ProductScriptServiceImpl.java:168)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:569)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:354)

at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)

at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:174)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:720)

at org.springblade.mqtt.broker.data.service.impl.ProductScriptServiceImpl$$SpringCGLIB$$0.afterSingletonsInstantiated(<generated>)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:986)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149)

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:49)

at org.springblade.mqtt.broker.BrokerApplication.main(BrokerApplication.java:43)

Caused by: org.apache.ibatis.exceptions.PersistenceException: 

### Error querying database.  Cause: java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module @48974e45

### The error may exist in org/springblade/mqtt/broker/device/mapper/ProductScriptMapper.java (best guess)

### The error may involve defaultParameterMap

### The error occurred while setting parameters

### SQL: SELECT id, product_id, product_key, script, script_type, tenant_id, create_user, create_dept, create_time, update_user, update_time, status, is_deleted FROM iot_product_script WHERE is_deleted = 0 AND (status = ?)

### Cause: java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module @48974e45

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:156)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:142)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:569)

at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:425)

... 32 common frames omitted

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module @48974e45

at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)

at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)

at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)

at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)

at org.apache.ibatis.reflection.invoker.GetFieldInvoker.invoke(GetFieldInvoker.java:38)

at org.apache.ibatis.reflection.wrapper.BeanWrapper.getBeanProperty(BeanWrapper.java:158)

at org.apache.ibatis.reflection.wrapper.BeanWrapper.get(BeanWrapper.java:50)

at org.apache.ibatis.reflection.MetaObject.getValue(MetaObject.java:115)

at org.apache.ibatis.reflection.MetaObject.metaObjectForProperty(MetaObject.java:123)

at org.apache.ibatis.reflection.wrapper.BaseWrapper.getChildValue(BaseWrapper.java:117)

at org.apache.ibatis.reflection.wrapper.BeanWrapper.get(BeanWrapper.java:46)

at org.apache.ibatis.reflection.MetaObject.getValue(MetaObject.java:115)

at org.springblade.core.mp.plugins.SqlLogInterceptor.intercept(SqlLogInterceptor.java:46)

at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:59)

at jdk.proxy2/jdk.proxy2.$Proxy177.query(Unknown Source)

at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:65)

at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:336)

at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:158)

at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:81)

at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:59)

at jdk.proxy2/jdk.proxy2.$Proxy176.query(Unknown Source)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:154)

... 39 common frames omitted


五、若有更多详细信息,请在下面提供。

配置文件application.yml,只修改了sign-key和aes-key:

:
  : :
    : 1024
    : :
      : : :
    :
      : UTF-8
      : :
  :
    :
      : classpath:config/ehcache.xml
  :
    :
      : 256MB
      : 1024MB
  :
    :
      : :
    : com.mysql.cj.jdbc.Driver


:
  : classpath:log/logback_${}.xml

:
  : classpath:org/springblade/**/mapper/*Mapper.xml
  : org.springblade.**.entity
  :
    : :
      : : : : : : 1
      : 0
  :
    : : :
  : :
    : : blade
    : blade
  :
    : : : : http://localhost
    : : : POST
    : : : : Copyright © 2024 BladeX All Rights Reserved

:
  : BladeX : BladeX : 1.0.0
  : Powered By BladeX
  : https://bladex.cn
  : https://bladex.cn
  :
    : bladex
    : bladejava@qq.com
    : https://bladex.cn

:
  :
    : vfTvoVdUeEn5lRoHt64IiTHTOixgPZIe
    : n3jpCsFtxk9ve3tTZ7F9CEAGjafS6twl
  :
    : :
      - /blade-test/**
  :
    :
      - /blade-test/**
  :
    : tenant_id
    :
      - iot_mqtt_account
      - iot_product
      - iot_device

key是通过运行SignKeyGenerator.java获取的:

image.png

配置文件:application-dev.yml,修改了mysql的连接和密码,其他的都是使用默认的

:
  :
    :
      : 127.0.0.1
      : :
      : :
        : :
    : jdbc:mysql://localhost:13306/bladex_iot?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
    : root
    : mysql123456
    : com.mysql.cj.jdbc.Driver

:
  : http://127.0.0.1:8086
  : admin
  : links
  : links
  : false

:
  :
    : : : BladeX-Mqtt-Server      : : 8KB       : 10MB  :
      : : : : : : : : :            :            :          :          : :
  :
    : 127.0.0.1
    :

docker中启动了redis,mysql和influxdb

image.png

mysql中的数据库已经建好了,连接也正常:

image.png

报错中提到的表在数据库中存在:

image.png

1条回答
提交回复