Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
exalate-issue-sync bot opened this issue May 22, 2023 · 2 comments
Assignees

Comments

@exalate-issue-sync
Copy link

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}

@DinukaH2O
Copy link

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

#2768

@krasinski krasinski added jira migrated stale issues issues that were migrated from jira but stale, to be potentially revisited migrated-from-jira and removed jira migrated stale issues issues that were migrated from jira but stale, to be potentially revisited migrated-from-jira labels May 28, 2023
@hasithjp
Copy link
Member

JIRA Issue Migration Info Cont'd

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants