Skip to content

[Bug] could not insert data, maybe connect issue #16409

@itachijames

Description

@itachijames

Search before asking

  • I searched in the 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.<init>(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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions