XPack ClassNotFoundException: com.unboundid.util.Debug in java

I m using Elasticsearch 6.3.1 and xpack 6.3.1,here is the Exception in my project
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.unboundid.util.Debug
at org.elasticsearch.xpack.core.XPackPlugin$1.run(XPackPlugin.java:101)
at org.elasticsearch.xpack.core.XPackPlugin$1.run(XPackPlugin.java:95)
at java.security.AccessController.doPrivileged(Native Method)
at org.elasticsearch.xpack.core.XPackPlugin.(XPackPlugin.java:95)
... 82 more
Caused by: java.lang.ClassNotFoundException: com.unboundid.util.Debug
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1328)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1156)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.elasticsearch.xpack.core.XPackPlugin$1.run(XPackPlugin.java:99)
... 85 more

and here is my gradle
repositories{
maven{
url:"https://artifacts.elastic.co/maven"
}
}

dependencies{
compile 'org.elasticsearch.client:x-pack-transport:6.3.1'
}

and i check the stack source code ,it is in a static are ,its looking for class com.unboundid.util.Debug

try {
            AccessController.doPrivileged(new PrivilegedAction<Void>() {
                public Void run() {
                    try {
                        Class.forName("com.unboundid.util.Debug");
                        return null;
                    } catch (ClassNotFoundException var2) {
                        throw new RuntimeException(var2);
                    }
                }
            });
        } 

please help me with this ,i m sure it can be downloaded and used. but still have this problem.

See: https://github.com/elastic/elasticsearch/issues/31946

You need to add the following additional dependencies to your POM, or upgrade to 6.3.2

      <dependency>
            <groupId>com.unboundid</groupId>
            <artifactId>unboundid-ldapsdk</artifactId>
            <version>3.2.0</version>
        </dependency>
        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcprov-jdk15on</artifactId>
            <version>1.58</version>
        </dependency>
        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcpkix-jdk15on</artifactId>
            <version>1.58</version>
        </dependency>

Thank u very much,this works for me . :smiley:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.