apache / apache/iotdb

[Bug] could not insert data, maybe connect issue

オープン
#16,409 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
6.4k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
115

説明

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

using `iotdb-session` maven repo, version `2.0.5` in my springboot project.

### Describe the bug and provide the minimal reproduce step

deploy **IoTDB** in my own PC wsl2 environment, and I can login into it with CLI tool.

### What did you expect to see?

i want conoect to my iotdb service to save some data.

### What did you see instead?

I got this exception

```
org.eclipse.paho.client.mqttv3.MqttException: MqttException
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.run(CommsCallback.java:228)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.iotdb.rpc.TConfigurationConst
at org.apache.iotdb.rpc.BaseRpcTransportFactory.getTransport(BaseRpcTransportFactory.java:88)
at org.apache.iotdb.session.SessionConnection.init(SessionConnection.java:199)
at org.apache.iotdb.session.SessionConnection.initClusterConn(SessionConnection.java:264)
at org.apache.iotdb.session.SessionConnection.(SessionConnection.java:178)
at org.apache.iotdb.session.Session.constructSessionConnection(Session.java:658)
at org.apache.iotdb.session.Session.open(Session.java:617)
at org.apache.iotdb.session.pool.SessionPool.getSession(SessionPool.java:712)
at org.apache.iotdb.session.pool.SessionPool.insertRecord(SessionPool.java:1596)
at ut.cbb.videomonitor.service.impl.IotDbServiceImpl.insert(IotDbServiceImpl.java:26)
at ut.cbb.videomonitor.service.impl.ThermometryServiceImpl.handleThermometryData(ThermometryServiceImpl.java:69)
at ut.cbb.videomonitor.component.MqttManager$1.lambda$messageArrived$0(MqttManager.java:96)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at ut.cbb.videomonitor.component.MqttManager$1.messageArrived(MqttManager.java:94)
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.deliverMessage(CommsCallback.java:519)
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.handleMessage(CommsCallback.java:417)
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.run(CommsCallback.java:214)
... 1 common frames omitted
```

ignore the mqtt info (cause i do insert action in mqtt message callback)
tht core info is `Could not initialize class org.apache.iotdb.rpc.TConfigurationConst`

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Spring Boot プロジェクトで iotdb-session 2.0.5 の依存関係を使用し、org.apache.iotdb.rpc.TConfigurationConst のスタックトレースと IotDbServiceImpl.java からの SessionPool.insertRecord 呼び出しを起点に調査します。MQTT コールバックの外部で失敗を再現し、クラス初期化エラーの原因が依存関係にあるのか、ランタイム環境にあるのかを特定します。原因と必要な修正が文書化または検証されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, spring-boot
領域
databases
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
28/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。