Comments (14)
Hey Giovanni,
I'll look into why tagging the release did not update it correctly, as far as I'm aware the connection type has been updated so the AREQ is an odd regression.
I'll be looking into this today and inform you once its complete,
Thanks,
Yasser
from deepstream.io-client-java.
Thanks very much Yasser for your prompt reply. I'll wait for your next info. Have a nice day and good work.
from deepstream.io-client-java.
Hey @gioma68,
We've just released a fix for some authentication issues in the client and I managed to get the release deploying properly on tags, so it's now available as v1.0.1 on bintray/maven.
Let me know if this fixes the issues you were having,
John
from deepstream.io-client-java.
hi @jdmnd, i'll try and let you the result soon ..thank very much for your strong support.
Giovanni
from deepstream.io-client-java.
We compile the java project with the new client v1.0.1 on bintray/maven (adding the repo reference to pom.xml).
But DP server hang with this error log when client establish the first connection:
INFO | Listening for health checks on path /health-check CLUSTER_JOIN | ivsavwkl-whjldk4pd40g INFO | Listening for websocket connections on 0.0.0.0:6020/deepstream INFO | Deepstream started INCOMING_CONNECTION | from undefined (undefined) TypeError: name.charCodeAt is not a function TypeError: name.charCodeAt is not a function at DistributedStateRegistry._createCheckSum (nexe.js:21420:55) at DistributedStateRegistry._add (nexe.js:21345:20) at DistributedStateRegistry.add (nexe.js:21236:9) at PresenceHandler._handleJoin (nexe.js:26705:26) at emitOne (events.js:96:13) at ConnectionEndpoint.emit (events.js:188:7) at ConnectionEndpoint._registerAuthenticatedSocket (nexe.js:24444:8) at ConnectionEndpoint._processAuthResult (nexe.js:24532:8) at HttpAuthenticationRequest._onComplete (nexe.js:20536:9) at done (nexe.js:19477:14) CLUSTER_LEAVE | ivsavwkl-whjldk4pd40g
In the client side, the flow work with login OK (even if we can't parse the json response - obviously). Consider we have enabled http auth that point to a rest server for user login credentials verification, but this work well in the previous version.
from deepstream.io-client-java.
Hey @gioma68, we tried to replicate this but weren't able to. Could you get back to us with a java code snippet we can run?
from deepstream.io-client-java.
Hi @AlexBHarley this is the code part of our java server that establish a connection to DP and login with a test account (this code work well with DP 1.1.1)
`......
try {
ds = new DeepstreamClient(ServerParams.DEEPSTREAM_HOST);
Trace.println("DEEPSTREAM: Try to login with GAME-SERVER account...");
JsonObject authData = new JsonObject();
// USE UID/PWD credentials for GAME SERVER
authData.addProperty("username", "test");
authData.addProperty("password", "test");
LoginResult res = ds.login(authData);
// Checking if logged...
if (res.loggedIn()){
Trace.println("DEEPSTREAM: LOGIN OK.");
.........
`
from deepstream.io-client-java.
Hi @gioma68, I tried this again with a various combination of the java client 1.0.1, master and deepstream 2.0.0, 2.0.1 and couldn't recreate this.
Could you confirm that you're on deepstream 2.0.1? We were aware of some issues with undefined connection data in 2.0.0
from deepstream.io-client-java.
No @AlexBHarley the test was done only with DP 2.0.0. Now we came back to DP 1.1.1 because we are busy with game server development...when it was possible we will try to migrate to DP 2.0.1 and related java+js client. Thanks for your strong support.
from deepstream.io-client-java.
Hi @AlexBHarley, just for completeness.
I notice that the java source on git have version 1.0-SNAPSHOT
yet in build.gradle
, and the repo was changed from jcentral to mavencentral. Where I can find the 1.0.1 version to set in my pom file and try with the right java client for DP 2.0.1? Thanks in advance.
from deepstream.io-client-java.
Hey @gioma68,
The snapshot version in the gradle file is actually picked up from a seperate section ( using bin tray ).
The way bintray works is via https://bintray.com/deepstreamio/maven/deepstream.io-client-java, which uploads to bintray which then gets mirrored to jCenter. As far as I'm aware it should not go near mavencentral.
from deepstream.io-client-java.
Hi @yasserf,
we recompile our java server using jar client 1.0.1 on bintray and as backend DP 2.0.1, but also in this case DP server hang with trace error TypeError: name.charCodeAt is not a function TypeError: name.charCodeAt...
when java client try to get login auth.
from deepstream.io-client-java.
hey @gioma68,
Thank you for your update. We are not able to reproduce the issue, but it is something we certainly we want to fix.
Can you run ./deepstream info
so we can get an idea about your platform on 2.0.1?
from deepstream.io-client-java.
Closing due to age
from deepstream.io-client-java.
Related Issues (20)
- Serious Issues with Login if Deepstream Host is Down HOT 2
- Android app hangs on client.close() after client.login()
- client.record.getRecord() hangs for ever if no internet connection is available
- deepstream.io-client-java v2+ not able to login API 21-
- Update Java Web Sockets Dependency
- DeepstreamClient.close() throwing NullPointerException on Android 8(Oreo) HOT 3
- Connection Error
- Don't know if subscribed to event with DeepstreamClient.event.subscribe
- No updates on repository. HOT 3
- NPE when calling unsubscribe() while not subcribed
- Reconnect throw exception but didn't return it to the method who wants to connect
- Add source jars?
- Include custom Gson serialization
- getRecord() method hangs on simultaneous request.
- Redundant JsonElement handling in method Record:set if pass JsonElement as value
- App crashes on connection change using deepstream
- v4 support? HOT 6
- deepstream java v2.2.2 cannot login to deepstream server v4.2.5 HOT 5
- java client code does not work well HOT 2
- Would love some information about the android/ios integration, to work on the code HOT 1
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 deepstream.io-client-java.