com.hazelcast.core.HazelcastException: java.lang.ClassCastException: Cannot cast com.hazelcast.client.impl.DefaultClientExtension to com.hazelcast.client.ClientExtension

199 views
Skip to first unread message

sunde...@gmail.com

unread,
Jun 3, 2017, 6:16:53 PM6/3/17
to Hazelcast
Hello all,

I am trying to run integration test cases on one of my application which puts data into hazelcast cache so i am making this application as jar file and running the jar file but when i tried to run the jar file the application tries to connect to hazelcast but it fails saying " com.hazelcast.core.HazelcastException: java.lang.ClassCastException: Cannot cast com.hazelcast.client.impl.DefaultClientExtension to com.hazelcast.client.ClientExtension" i am using hazelcast client version:3.6.2.


Thanks all in advance

 

Noctarius

unread,
Jun 4, 2017, 3:49:48 PM6/4/17
to Christoph Engelbert - Hazelcast
Hey,

Can you have a look if you have two different versions of Hazelcast in your classpath? This can happen if you (for example) use Maven to build but do not clean before build.

Chris

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/6237a4a2-526d-4592-af97-2698abb1d012%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages