sparkling-water icon indicating copy to clipboard operation
sparkling-water copied to clipboard

Python Initializer in some cases fails to inject the jar into classloader

Open exalate-issue-sync[bot] opened this issue 1 year ago • 2 comments

when the returned classloader doesn’t override the addURL method that error happens (but gets catched and ignored)

{noformat}Py4JJavaError: An error occurred while calling o461.getDeclaredMethod. : java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.addURL(java.net.URL) at java.lang.Class.getDeclaredMethod(Class.java:2130) 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 py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244) at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357) at py4j.Gateway.invoke(Gateway.java:282) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:238) at java.lang.Thread.run(Thread.java:750){noformat}

exalate-issue-sync[bot] avatar May 22 '23 11:05 exalate-issue-sync[bot]

JIRA Issue Migration Info

Jira Issue: SW-2708 Assignee: krasinski Reporter: krasinski State: Reopened Fix Version: Backlog Attachments: N/A Development PRs: Available

Linked PRs from JIRA

https://github.com/h2oai/sparkling-water/pull/2768

DinukaH2O avatar May 23 '23 08:05 DinukaH2O

JIRA Issue Migration Info Cont'd

Jira Issue Created Date: 2022-04-27T16:37:32.489-0700

hasithjp avatar May 29 '23 12:05 hasithjp