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
I am trying to create a package that allows one to to do source from a https url with a self signed certificate. It works fine from Java but when I call the java code I created, Renjin throws a java.lang.NoSuchFieldError.
It fails when i initialize the SSLConnectionSocketFactory with the following error:
org.renjin.eval.EvalException: INSTANCE
at org.renjin.invoke.reflection.FunctionBinding$Overload.invoke(FunctionBinding.java:125)
at org.renjin.invoke.reflection.FunctionBinding.invoke(FunctionBinding.java:172)
at org.renjin.invoke.reflection.FunctionBinding.evaluateArgsAndInvoke(FunctionBinding.java:154)
at org.renjin.invoke.reflection.MethodFunction.apply(MethodFunction.java:58)
at org.renjin.sexp.FunctionCall.eval(FunctionCall.java:80)
at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:58)
at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:42)
at org.renjin.sexp.FunctionCall.eval(FunctionCall.java:80)
at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:39)
at org.renjin.sexp.FunctionCall.eval(FunctionCall.java:80)
at org.renjin.sexp.Closure.applyPromised(Closure.java:200)
at org.renjin.sexp.Closure.apply(Closure.java:133)
at org.renjin.sexp.FunctionCall.eval(FunctionCall.java:80)
at org.renjin.sexp.ExpressionVector.eval(ExpressionVector.java:85)
at org.renjin.eval.Context.evaluate(Context.java:280)
at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:174)
at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:133)
at se.alipsa.ride.console.ConsoleComponent.executeScriptAndReport(ConsoleComponent.java:927)
at se.alipsa.ride.console.ConsoleComponent.access$900(ConsoleComponent.java:68)
at se.alipsa.ride.console.ConsoleComponent$3.call(ConsoleComponent.java:473)
at se.alipsa.ride.console.ConsoleComponent$3.call(ConsoleComponent.java:468)
at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NoSuchFieldError: INSTANCE
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:151)
at se.alipsa.sourceurl.SourceUrl.fetchHttps(SourceUrl.java:74)
I am trying to create a package that allows one to to do source from a https url with a self signed certificate. It works fine from Java but when I call the java code I created, Renjin throws a java.lang.NoSuchFieldError.
I am using
It fails when i initialize the SSLConnectionSocketFactory with the following error:
I initialize like this
The SSLConnectionSocketFactory has a field like this
...which is the reason for the failure. The AllowAllHostnameVerifier.INSTANCE looks like this:
...so it is a pretty standard singleton initializer.
The package code is available here: https://github.com/perNyfelt/sourceUrl
The text was updated successfully, but these errors were encountered: