From a7483c0ae8e823fc0778efb38d870eb55c19b752 Mon Sep 17 00:00:00 2001 From: xiwa Date: Wed, 25 Oct 2023 18:37:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=89=93=E5=8C=85=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-plugin/pom.xml | 1 + modbus-plugin/pom.xml | 1 + mqtt-plugin/pom.xml | 1 + pom.xml | 1 + tcp-plugin/pom.xml | 1 + .../java/cc/iotkit/plugins/tcp/parser/DataPackage.java | 1 - .../cc/iotkit/plugins/tcp/server/TcpServerVerticle.java | 8 ++++++-- 7 files changed, 11 insertions(+), 3 deletions(-) diff --git a/http-plugin/pom.xml b/http-plugin/pom.xml index b8d7d96..6b2680e 100755 --- a/http-plugin/pom.xml +++ b/http-plugin/pom.xml @@ -52,6 +52,7 @@ com.gitee.starblues spring-brick-maven-packager + ${spring-brick.version} ${plugin.build.mode} diff --git a/modbus-plugin/pom.xml b/modbus-plugin/pom.xml index c3c2eab..baa4ab2 100644 --- a/modbus-plugin/pom.xml +++ b/modbus-plugin/pom.xml @@ -45,6 +45,7 @@ com.gitee.starblues spring-brick-maven-packager + ${spring-brick.version} ${plugin.build.mode} diff --git a/mqtt-plugin/pom.xml b/mqtt-plugin/pom.xml index d0ad9b1..2739d51 100755 --- a/mqtt-plugin/pom.xml +++ b/mqtt-plugin/pom.xml @@ -56,6 +56,7 @@ com.gitee.starblues spring-brick-maven-packager + ${spring-brick.version} ${plugin.build.mode} diff --git a/pom.xml b/pom.xml index 073d9c9..a69115d 100755 --- a/pom.xml +++ b/pom.xml @@ -8,6 +8,7 @@ http-plugin modbus-plugin tcp-plugin + tcp-plugin2 diff --git a/tcp-plugin/pom.xml b/tcp-plugin/pom.xml index ca03e5d..8c7121d 100644 --- a/tcp-plugin/pom.xml +++ b/tcp-plugin/pom.xml @@ -57,6 +57,7 @@ com.gitee.starblues spring-brick-maven-packager + ${spring-brick.version} ${plugin.build.mode} diff --git a/tcp-plugin/src/main/java/cc/iotkit/plugins/tcp/parser/DataPackage.java b/tcp-plugin/src/main/java/cc/iotkit/plugins/tcp/parser/DataPackage.java index 0201dc6..d079736 100644 --- a/tcp-plugin/src/main/java/cc/iotkit/plugins/tcp/parser/DataPackage.java +++ b/tcp-plugin/src/main/java/cc/iotkit/plugins/tcp/parser/DataPackage.java @@ -5,7 +5,6 @@ import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import io.vertx.core.buffer.Buffer; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; diff --git a/tcp-plugin/src/main/java/cc/iotkit/plugins/tcp/server/TcpServerVerticle.java b/tcp-plugin/src/main/java/cc/iotkit/plugins/tcp/server/TcpServerVerticle.java index 6f75d41..ae2542a 100644 --- a/tcp-plugin/src/main/java/cc/iotkit/plugins/tcp/server/TcpServerVerticle.java +++ b/tcp-plugin/src/main/java/cc/iotkit/plugins/tcp/server/TcpServerVerticle.java @@ -79,8 +79,12 @@ public class TcpServerVerticle extends AbstractVerticle { @Override public void start() { tcpServer = new VertxTcpServer(); - initConfig(); - initTcpServer(); + try { + initConfig(); + initTcpServer(); + } catch (Exception e) { + log.error("init tcp server failed", e); + } } @Override