Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Running Kafka and Zookeeper in local and I am trying to push data into kafka using ServiceMix but I am unable to do that. Please refer to below log

avatar
Rising Star

NoClassDefFoundError: org/ietf/jgss/GSSException Session 0x0 for server null.

2017-01-30 04:38:48,899 | WARN | (localhost:2181) | ClientCnxn | 97 - org.apache.hadoop.zookeeper - 3.4.6 | Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.lang.NoClassDefFoundError: org/ietf/jgss/GSSException at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:945)[97:org.apache.hadoop.zookeeper:3.4.6] at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1003)[97:org.apache.hadoop.zookeeper:3.4.6] Caused by: java.lang.ClassNotFoundException: org.ietf.jgss.GSSException not found by org.apache.hadoop.zookeeper [97] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)[org.apache.felix.framework-5.4.0.jar:] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_111] ... 2 more

8 REPLIES 8

avatar
Master Guru

@Pradhuman Gupta - This is a BUG in zookeeper 3.4.6 which is fixed in 3.4.7

Please see - https://issues.apache.org/jira/browse/ZOOKEEPER-2056 for more details.

avatar
Rising Star

@Kuldeep Kulkarni

Thanks Kuldeep for reply.

I went through your link and checked what patch contains and it is adding one import '

org.ietf.jgss' in build.xml.

But this import is already their in my build.xm

avatar
Rising Star

@Kuldeep Kulkarni

How to run this patch in unix

avatar
Master Guru

@Pradhuman Gupta

Did you built this from source? if that is the case.. I would say update the build.xml as per given patch in apache JIRA and rebuild.

avatar
Rising Star

@Kuldeep Kulkarni

No, I didn't build it from source, I downloaded the binary file.

avatar
Master Guru

@Pradhuman Gupta - ohh okay. Then I think you should just download binaries for fixed versions i.e. 3.4.7

avatar
Rising Star

@Kuldeep Kulkarni

Your are right. But I am already working with 3.4.9 version , which contains the package as mentioned in patch file.

avatar
Rising Star

@Kuldeep Kulkarni As mentioned above I have package(

org.ietf.jgss

) in build.xml as well as manifest file of zookeeper-3.4.9.jar. But still I am getting exception as :

java.lang.NoClassDefFoundError: org/ietf/jgss/GSSException

I opened zookeeper-3.4.9.jar but I am not able to trace GSSException in jar. How to ensure this file comes in JAR.

I did ant build in local to ensure this but still no help