Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

ClientBuilder error caused by deprecation of SchemeRegistryFactory #182

Closed
jzbyers opened this issue Jul 23, 2017 · 0 comments
Closed

ClientBuilder error caused by deprecation of SchemeRegistryFactory #182

jzbyers opened this issue Jul 23, 2017 · 0 comments

Comments

@jzbyers
Copy link

jzbyers commented Jul 23, 2017

Trying to initialize a ClientBuilder results in the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/impl/conn/SchemeRegistryFactory
	at com.twitter.hbc.ClientBuilder.<init>(ClientBuilder.java:102)
	at twitter.Main.streamTwitterData(Main.java:101)
	at twitter.Main.main(Main.java:75)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: java.lang.ClassNotFoundException: org.apache.http.impl.conn.SchemeRegistryFactory
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 8 more

org/apache/http/impl/conn/SchemeRegistryFactory has been deprecated and HttpClientBuilder looks to be the replacement.

@jzbyers jzbyers closed this as completed Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant