Comments (9)
Dear @kinda830,
Could you please check one thing: the nebula java client's version matches the nebula graph server side?
- java-client version
- nebula-graph version
Thanks.
nebulagraph : 2.0.0-nightly
java-client: 2.0.0java-client:2.0.0-SNAPSHOT 这个版本的依赖无法解决,找不到这个版本
You are using Nebula nightly, please make sure the client version is 2.0.0-SNAPSHOT. You can find the snapshot version from there: https://oss.sonatype.org/content/repositories/snapshots/com/vesoft/client/2.0.0-SNAPSHOT/
In your own pom.xml, you can add snapshot repository to auto download client-2.0.0-SNAPSHOT.jar
.
<repositories>
<repository>
<id>snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
from nebula-java.
Finally I found it!
In my case, the error was using one instance of session
by multi threads.
I have designed an object pool of session
s which keeps using sessions and assigns them to requester. In my case there was some cases that two threads request for one instance of session
and therefore it throws the mentioned error.
I think you can search your code for some cases that session could be used by 2 requester by executing session.execute()
from nebula-java.
Dear @kinda830,
Could you please check one thing: the nebula java client's version matches the nebula graph server side?
- java-client version
- nebula-graph version
Thanks.
from nebula-java.
nebulagraph : 2.0.0-nightly
java-client: 2.0.0
java-client:2.0.0-SNAPSHOT 这个版本的依赖无法解决,找不到这个版本
from nebula-java.
Dear @kinda830,
Could you please check one thing: the nebula java client's version matches the nebula graph server side?
- java-client version
- nebula-graph version
Thanks.
nebulagraph : 2.0.0-nightly
java-client: 2.0.0
java-client:2.0.0-SNAPSHOT 这个版本的依赖无法解决,找不到这个版本
from nebula-java.
Dear @kinda830
You are right, 2.0.0-SNAPSHOT
should be the client to be used as there were thrift changes between 2.0.0-nightly
and 2.0.0 GA+
, thus the RPC call including authentication itself may encounter protocol issues as you did through 2.0.0 client.
@Nicole00 could you help hint @kinda830 's dependencies issue?
Thanks!
from nebula-java.
com.vesoft.nebula.client.graph.exception.AuthFailedException: Auth failed: Authenticate failed: Expected protocol id ffffff82 but got 0
集群的登录验证没有开,但是登录失败
Please check if you use the correct graphd's host and port, can you post your code to establish a connection with Nebula Graph ?
from nebula-java.
Hi, I have the same problem.
I use client v2.0.0 and server v2.0.0
Today I see this error, every time I start my application.
Sometimes when I activate debug mode, when I execute session.execute(some_command)
, client executes it well, but when I deactivate debug mode and run it normally it throws the below exception.
com.vesoft.nebula.client.graph.exception.IOErrorException: Expected protocol id ffffff82 but got 7
at com.vesoft.nebula.client.graph.net.SyncConnection.execute(SyncConnection.java:74) ~[client-2.0.0.jar:?]
at com.vesoft.nebula.client.graph.net.Session.execute(Session.java:46) ~[client-2.0.0.jar:?]
from nebula-java.
Will close it as it's been inactive for days. Feel free to reopen it.
from nebula-java.
Related Issues (20)
- SessionPool 连接 3 节点集群时,一个节点宕机后,客户端无法连接,请问怎么设置集群可用度? HOT 3
- typo in examples? HOT 1
- The effective time of space is not friendly to testing HOT 2
- No worry
- Verify java client with custom header HOT 4
- the ordering of params was problematic, and it wasn't passing params correctly. HOT 2
- Does NebulaGraph support image storage? HOT 2
- [ent 3.6 zone]when upload to hdfs report error HOT 2
- 客户端连接集群问题 HOT 4
- When will storageclient provide the 'socketTimeout' parameter? HOT 1
- allow to config the charset for query statement
- support to config the version for graph client
- support to config the version for meta client
- support to auth for storage client
- nebula-java session会话 HOT 2
- Http2 example failed HOT 4
- support tls single authentication
- nebula java client HOT 3
- Shouldn't close the whole session pool on a single session error HOT 1
- a connection to http:// was leadked. Did you forget to close a response body
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nebula-java.