itachijames opened a new issue, #16409:
URL: https://github.com/apache/iotdb/issues/16409

   ### 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.<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!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to