Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: Could not initialize class com.facebook.thrift.transport.TSocket #33

Open
xhrwp opened this issue Aug 16, 2022 · 3 comments

Comments

@xhrwp
Copy link

xhrwp commented Aug 16, 2022

image

nebula-jdbc. version:3.0.0

@Young-Flash
Copy link
Collaborator

seems dependence missing, make sure you have download all the maven dependence into the project

@chenlinzhong
Copy link

+1

version:3.0.0

java.lang.NoClassDefFoundError: Could not initialize class com.facebook.thrift.transport.TSocket
at com.vesoft.nebula.client.graph.net.SyncConnection.open(SyncConnection.java:94)
at com.vesoft.nebula.client.graph.net.RoundRobinLoadBalancer.ping(RoundRobinLoadBalancer.java:87)
at com.vesoft.nebula.client.graph.net.RoundRobinLoadBalancer.updateServersStatus(RoundRobinLoadBalancer.java:73)
at com.vesoft.nebula.client.graph.net.RoundRobinLoadBalancer.isServersOK(RoundRobinLoadBalancer.java:101)
at com.vesoft.nebula.client.graph.net.ConnObjectPool.init(ConnObjectPool.java:93)
at com.vesoft.nebula.client.graph.net.NebulaPool.init(NebulaPool.java:120)
at com.vesoft.nebula.jdbc.NebulaConnection.initNebulaPool(NebulaConnection.java:104)
at com.vesoft.nebula.jdbc.NebulaConnection.(NebulaConnection.java:64)
at com.vesoft.nebula.jdbc.NebulaDriver.connect(NebulaDriver.java:79)

@chenlinzhong
Copy link

[root]$ java -version
java version "1.8.0_131"

Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.facebook.thrift.transport.TSocket
at com.vesoft.nebula.client.graph.net.SyncConnection.open(SyncConnection.java:94)
at com.vesoft.nebula.client.graph.net.RoundRobinLoadBalancer.ping(RoundRobinLoadBalancer.java:87)
at com.vesoft.nebula.client.graph.net.RoundRobinLoadBalancer.updateServersStatus(RoundRobinLoadBalancer.java:73)
at com.vesoft.nebula.client.graph.net.RoundRobinLoadBalancer.isServersOK(RoundRobinLoadBalancer.java:101)
at com.vesoft.nebula.client.graph.net.ConnObjectPool.init(ConnObjectPool.java:93)
at com.vesoft.nebula.client.graph.net.NebulaPool.init(NebulaPool.java:120)
at com.vesoft.nebula.jdbc.NebulaConnection.initNebulaPool(NebulaConnection.java:107)
at com.vesoft.nebula.jdbc.NebulaConnection.(NebulaConnection.java:64)
at com.vesoft.nebula.jdbc.NebulaDriver.connect(NebulaDriver.java:79)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1652)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1718)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:915)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1389)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1385)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants