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

ClassNotFoundException #5

Open
carlphilipp opened this issue Jun 15, 2017 · 7 comments
Open

ClassNotFoundException #5

carlphilipp opened this issue Jun 15, 2017 · 7 comments

Comments

@carlphilipp
Copy link

Hello,

I just followed the documentation: Checkout the code, compile and run. I'm connected to my Hazelcast cluster, but I obtain that exception, when it tries to read from the nodes

WARNING: could not read stats from node [ #object[com.hazelcast.client.impl.MemberImpl 0x758a46a1 Member [XXXXXXXXX]:XXXX - d300a7fb-a00d-4b4d-8e82-78c93a01058b] ]: com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: org.hface.InstanceStatsTask
Jun 15, 2017 2:24:52 PM clojure.tools.logging$eval1155$fn__1159 invoke
WARNING: could not read stats from node [ #object[com.hazelcast.client.impl.MemberImpl 0x5de34984 Member [XXXXXXXXX]:XXXX - 4e614058-c91d-4383-b972-65c6bf698590] ]: com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: org.hface.InstanceStatsTask
Jun 15, 2017 2:24:52 PM clojure.tools.logging$eval1155$fn__1159 invoke

Any clue what it could be ?
Thanks,
Carl

@tolitius
Copy link
Owner

Hey Carl,

Sure. The idea is to monitor the cluster by distributing a "task" across all the Hazelcast nodes. This task would collect the stats and would report them back to hface.

The task is this little class: org.hface.InstanceStatsTask, which lives in this 8K dependency:

<dependency>
  <groupId>org.hface</groupId>
  <artifactId>hface-client</artifactId>
  <version>0.1.4</version>
</dependency>

Hence in order to be able to use hface with a Hazelcast cluster, this cluster would need to add this dependency, so when you start the cluster (nodes) they would know about this org.hface.InstanceStatsTask class.

@carlphilipp
Copy link
Author

Hey tolitus,

Thanks for your answer! I will that when I can.

Carl

@majidgolshadi
Copy link

@tolitius
I want to run Hazelcast like a service and in order, to monitor, it's behavior I want to use hface so after clone Hazelcast from Github add this dependency

<dependency>
  <groupId>org.hface</groupId>
  <artifactId>hface-client</artifactId>
  <version>0.1.4</version>
</dependency>

at the end of all pom.xml dependencies and compile that I still get error

com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: org.hface.InstanceStatsTask

What I did wrong?
How can I use hface?

@tolitius
Copy link
Owner

just to understand better what you are doing:

  • why clone hazelcast? you can create your own "server" node by having a small project with two dependencies: i.e. hazelcast and hface-client. changing hazelcast code does not sound right.

and compile that I still get error

  • where and when do you get ClassNotFoundException?

  • which hazelcast version are you trying it with?

@majidgolshadi
Copy link

Hello @tolitius
Thank you for response

  • why clone Hazelcast? I cloned to add hface dependency in. I want to have each node with hface monitoring functionality
  • where and when do you get? After compiling Hazelcast with hface dependency without any error and try to connect hface to each of Hazelcast node
  • which Hazelcast version are you trying it with? hazelcast-3.10.1

@tolitius
Copy link
Owner

I created a sample for you, it is a hazecast server with the hface client dependency: https://github.com/tolitius/hface-server

@majidgolshadi
Copy link

majidgolshadi commented Jul 1, 2018

@tolitius Thank you very much

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