hface icon indicating copy to clipboard operation
hface copied to clipboard

Hazelcast version issue

Open bhagawathi opened this issue 4 years ago • 7 comments

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 avatar Feb 04 '20 11:02 bhagawathi

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 avatar Feb 14 '20 23:02 tolitius

also could you paste the full stack trace?

tolitius avatar Feb 14 '20 23:02 tolitius

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]

tolitius avatar Feb 14 '20 23:02 tolitius

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]

bhagawathi avatar Feb 17 '20 12:02 bhagawathi

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

tolitius avatar Mar 05 '20 02:03 tolitius

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.

bhagawathi avatar Mar 05 '20 11:03 bhagawathi

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

tolitius avatar Apr 29 '20 02:04 tolitius