Created 01-30-2017 09:58 AM
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
Created 01-30-2017 10:03 AM
@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.
Created 01-30-2017 10:09 AM
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
Created 01-30-2017 10:20 AM
How to run this patch in unix
Created 01-30-2017 10:43 AM
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.
Created 01-30-2017 10:46 AM
No, I didn't build it from source, I downloaded the binary file.
Created 01-30-2017 11:37 AM
@Pradhuman Gupta - ohh okay. Then I think you should just download binaries for fixed versions i.e. 3.4.7
Created 01-30-2017 11:56 AM
Your are right. But I am already working with 3.4.9 version , which contains the package as mentioned in patch file.
Created 01-31-2017 10:18 AM
@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