java.lang.NoClassDefFoundError: com/hazelcast/nio/Connection

1,628 views
Skip to first unread message

Jeff

unread,
Feb 13, 2012, 4:58:45 PM2/13/12
to Hazelcast
Hazelcast thread not able to find hazelcast class...? How is this
possible

[#|2012-02-10T15:12:55.932-0500|WARNING|sun-appserver2.1|
com.hazelcast.nio.InSelector|_ThreadID=75;_ThreadName=hz.
1.InThread;_RequestID=c2e1122f-c537-4c96-9512-23bc15769cce;|/
10.67.96.136:5901 [mafAdapter-ricvmf-mplus12.ricuc.com] Selector
exception at hz.1.InThread, cause= java.lang.NoClassDefFoundError:
com/hazelcast/nio/Connection

java.lang.NoClassDefFoundError: com/hazelcast/nio/Connection

at
com.hazelcast.nio.ConnectionManager.createConnection(ConnectionManager.java:
128)

at
com.hazelcast.nio.SelectorBase.createConnection(SelectorBase.java:182)

at com.hazelcast.nio.InSelector
$Acceptor.handle(InSelector.java:74)

at com.hazelcast.nio.SelectorBase.run(SelectorBase.java:146)

at java.lang.Thread.run(Thread.java:619)

Caused by: java.lang.ClassNotFoundException:
com.hazelcast.nio.Connection

at
com.sun.jbi.framework.CustomClassLoader.loadClass(CustomClassLoader.java:
284)

at
com.sun.jbi.framework.CustomClassLoader.loadClass(CustomClassLoader.java:
133)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
320)

... 5 more

|#]



[#|2012-02-10T15:19:17.025-0500|SEVERE|sun-appserver2.1|
com.hazelcast.cluster.ClusterService|_ThreadID=41;_ThreadName=hz.
1.ServiceThread;_RequestID=2dd19ae1-2de7-4de8-981f-4e8d69dd529a;|/
10.67.96.136:5901 [mafAdapter-ricvmf-mplus12.ricuc.com] com/hazelcast/
impl/SplitBrainHandler$1

java.lang.NoClassDefFoundError: com/hazelcast/impl/SplitBrainHandler$1

at
com.hazelcast.impl.SplitBrainHandler.run(SplitBrainHandler.java:43)

at
com.hazelcast.cluster.ClusterService.checkPeriodics(ClusterService.java:
284)

at
com.hazelcast.cluster.ClusterService.run(ClusterService.java:172)

at java.lang.Thread.run(Thread.java:619)

Caused by: java.lang.ClassNotFoundException:
com.hazelcast.impl.SplitBrainHandler$1

at
com.sun.jbi.framework.CustomClassLoader.loadClass(CustomClassLoader.java:
284)

at
com.sun.jbi.framework.CustomClassLoader.loadClass(CustomClassLoader.java:
133)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
320)

... 4 more

|#]

Christian Migowski

unread,
Feb 14, 2012, 2:39:23 AM2/14/12
to haze...@googlegroups.com
Hi Jeff,

welcome to the wonderful world of Java classloading :-)
As you can tell this has nothing to do with Hazelcast itself but with
your environment: You are running an JEE server and have most
certainly multiple copies of Hazelcast in your effective classpath
which interfere with each other (probably where each is loaded by a
different classloader). This article:
http://frankkieviet.blogspot.com/2009/03/javalanglinkageerror-loader-constraint.html
helped me a lot with understanding and resolving such issues.
Good luck!

regards,
christian!

> --
> You received this message because you are subscribed to the Google Groups "Hazelcast" group.
> To post to this group, send email to haze...@googlegroups.com.
> To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
>

Talip Ozturk

unread,
Feb 14, 2012, 2:49:41 AM2/14/12
to haze...@googlegroups.com
Yes.. Classloader issues... This could also happen if you restarted or
hot-deployed your application.

-talip

Reply all
Reply to author
Forward
0 new messages