You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.
apache.commons.logging.impl.LogFactoryImpl (Caused by java.lang.ClassNotFoundException: org.apache.commons.logging.impl
.LogFactoryImpl)
at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1158)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:960)
at java.security.AccessController.doPrivileged(AccessController.java:62)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:957)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:624)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655)
at org.apache.http.conn.ssl.DefaultHostnameVerifier.<init>(DefaultHostnameVerifier.java:82)
at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:966)
at org.apache.http.impl.client.HttpClients.createDefault(HttpClients.java:56)
at example.Sample$.runSample(ScalaApacheHttpRestClient.scala:19)
at example.ScalaApacheHttpRestClient$.main(ScalaApacheHttpRestClient.scala:51)
at example.ScalaApacheHttpRestClient.main(ScalaApacheHttpRestClient.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl
at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:51)
at java.lang.ClassLoader.loadClass(Target_java_lang_ClassLoader.java:127)
at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1020)
... 11 more
In issue #768 someone suggest to fix this error using:
Hi @kronolynx! While not a direct answer to your question why the reflection configuration doesn't work, I do have an alternative. You could substitute the methods in LogFactory and LogFactoryImpl that do reflection. With the following code (which is based on the work of @DmPanov, I get this to work:
Thanks @Jurrie
In my case I'm not sure if it's possible to use that kind of substitution, I'm actually trying to make a project in Scala with Elastic4s. Elastic4s uses the apache HttpClient.
I'm getting this error
In issue #768 someone suggest to fix this error using:
I can't make it work on
GraalVM 1.0.0-rc12
and I haven't found any other solution.Steps to reproduce
https://github.com/kronolynx/scala-graal-apache-http
After cloning the project
The text was updated successfully, but these errors were encountered: