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

Hazelcast version issue #14

Open
bhagawathi opened this issue Feb 4, 2020 · 7 comments
Open

Hazelcast version issue #14

bhagawathi opened this issue Feb 4, 2020 · 7 comments

Comments

@bhagawathi
Copy link

bhagawathi commented Feb 4, 2020

While using hazelcast 3.12.5 and spring boot 2.2.4 I get the following error.
WARNING: could not read stats from node [ #object[com.hazelcast.client.impl.MemberImpl 0x216b0803 Member [127.0.0.1]:5701 - 1046b59f-b020-419d-a027-c9dc6fd54de8] ]: Unexpected character (':' (code 58)): was expecting double-quote to start field name
at [Source: java.io.StringReader@927a225; line: 1, column: 3].
How can I get past this ? It looks like there are no issues with <3.12.4

@bhagawathi bhagawathi changed the title Hazelcast update Hazelcast version issue Feb 4, 2020
@tolitius
Copy link
Owner

It looks like there are no issues with <3.12.4

just to confirm: you tested it with <3.12.4 and it does work, but once you upgrade your cluster to 3.12.5 it does not?

@tolitius
Copy link
Owner

tolitius commented Feb 14, 2020

also could you paste the full stack trace?

@tolitius
Copy link
Owner

I just tested hface (the current released version) against 3.2.15 cluster and it does work for me:

$ wget https://github.com/tolitius/hface/releases/download/v0.1.0/hface-dash-0.1.0.jar
$ java -jar -Dconf=./hface.conf hface-dash-0.1.0.jar

where

$ cat hface.conf
{:collector {:refresh-interval 4}                       ;; refresh cluster stats every 4 seconds
 :hz-client {:hosts ["127.0.0.1"]                       ;; hazelcast cluster hosts/ips
             :retry-ms 5000                             ;; retry to reconnect in 5 seconds
             :retry-max 720000                          ;; 720000 * 5000 = one hour
             :group-name "dev"                          ;; creds to the cluster (dev/dev-pass are hz defaults)
             :group-password "dev-pass"}}

server side:

Feb 14, 2020 6:27:54 PM com.hazelcast.client.impl.protocol.task.AuthenticationMessageTask
INFO: [192.168.43.74]:5701 [dev] [3.12.5] Received auth from Connection[id=4, /127.0.0.1:5701->/127.0.0.1:62832, qualifier=null, endpoint=[127.0.0.1]:62832, alive=true, type=JAVA_CLIENT], successfully authenticated, principal: ClientPrincipal{uuid='cbb24d05-388f-472a-b30f-d93973eae7c0', ownerUuid='8f19a47d-0d64-4deb-8b9e-d75ea318cd9c'}, owner connection: true, client version: 3.12.1

i.e. connected to 3.12.5 from 3.12.1, and I do see stats at the endpoint i.e. http://localhost:3000/stats as well as "visually" at http://localhost:3000/#maps/[map name]

@bhagawathi
Copy link
Author

bhagawathi commented Feb 17, 2020

Here is some background. I used a Spring Boot application with the following versions. If it isn't issue with your code my apologies but looked like a parse issue with the config. It was passed just like you posted in the documentation. Thanks in advance.
JDK 11. 0
Spring boot - 2.19
Hazelcast 3.12.6 . Looks like the config has issue. When I downgraded to 3.12.4 it worked fine.

Feb 04, 2020 8:50:16 AM clojure.tools.logging$eval1155$fn__1159 invoke
WARNING: could not read stats from node [ #object[com.hazelcast.client.impl.MemberImpl 0x445b7dac Member [Node01]:5701 - 69fb6cfc-ab13-4dac-94e4-ee340276bc77] ]: Unexpected character (':' (code 58)): was expecting double-quote to start field name
at [Source: java.io.StringReader@4201c016; line: 1, column: 3]
Feb 04, 2020 8:50:16 AM clojure.tools.logging$eval1155$fn__1159 invoke
WARNING: could not read stats from node [ #object[com.hazelcast.client.impl.MemberImpl 0x346ad3a5 Member [Node02]:5701 - 729099e4-a667-4128-b1be-8713e2f682be] ]: Unexpected character (':' (code 58)): was expecting double-quote to start field name
at [Source: java.io.StringReader@3973b4ec; line: 1, column: 3]
Feb 04, 2020 8:50:16 AM clojure.tools.logging$eval1155$fn__1159 invoke
WARNING: could not read stats from node [ #object[com.hazelcast.client.impl.MemberImpl 0x678e00fb Member [Node07]:5701 - ada60455-09a4-474a-8d22-83cbead4b066] ]: Unexpected character (':' (code 58)): was expecting double-quote to start field name
at [Source: java.io.StringReader@7827b44e; line: 1, column: 3]
Feb 04, 2020 8:50:16 AM clojure.tools.logging$eval1155$fn__1159 invoke
WARNING: could not read stats from node [ #object[com.hazelcast.client.impl.MemberImpl 0x216b0803 Member [Node08]:5701 - 1046b59f-b020-419d-a027-c9dc6fd54de8] ]: Unexpected character (':' (code 58)): was expecting double-quote to start field name
at [Source: java.io.StringReader@437e1c32; line: 1, column: 3]

@tolitius
Copy link
Owner

tolitius commented Mar 5, 2020

just to confirm, this is resolved (from the hface side)?

@bhagawathi
Copy link
Author

As mentioned I have seen this issue when I use it with Spring . So I am not sure if it is hface compatibility with it. If I use a lower version as I stated it works. That is with 3.12.4 I did not see any errors.

@tolitius
Copy link
Owner

just checking in. were you able to isolate to the library that seems to cause this issue?

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

2 participants