java.lang.NoClassDefFoundError

org/apache/http/conn/socket/ConnectionSocketFactory

Samebug tips9

Check if you didn't forget to instantiate your topic in the kafka broker.

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web19482

  • org/apache/http/conn/socket/ConnectionSocketFactory
  • via jboss.org by Unknown author, 1 year ago
    org/apache/http/conn/socket/LayeredConnectionSocketFactory
  • org/apache/http/conn/socket/LayeredConnectionSocketFactory
  • Stack trace

    • java.lang.NoClassDefFoundError: org/apache/http/conn/socket/ConnectionSocketFactory at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.<init>(ApacheHttpClientFactory.java:42) at com.amazonaws.http.AmazonHttpClient.<clinit>(AmazonHttpClient.java:141) at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:162) at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:153) at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:138) at com.amazonaws.services.glacier.AmazonGlacierClient.<init>(AmazonGlacierClient.java:248) at com.amazonaws.services.glacier.AmazonGlacierClient.<init>(AmazonGlacierClient.java:227) at de.kopis.glacier.commands.AbstractCommand.<init>(AbstractCommand.java:51) at de.kopis.glacier.commands.CreateVaultCommand.<init>(CreateVaultCommand.java:41) at de.kopis.glacier.GlacierUploader.findAndExecCommand(GlacierUploader.java:105) at de.kopis.glacier.GlacierUploader.main(GlacierUploader.java:70) Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.socket.ConnectionSocketFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 11 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Once, 8 months ago
    Unknown user
    Once, 8 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    2363 more bugmates