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
We have a hierarchy where the 2 classes 'DefaultDownloadManager' and 'S3DownloadManager' implements the 'DownloadManager' interface. There is a Java class 'AddressingProvider' which has the following constructor.
public AddressingProvider(String path, DownloadManager downloadManager, List<String> resources, String libAddress) {
// Other Initialization Stuff
}
I call the AddressingProvider constructor as follows:
When I call the constructor from python by accessing the AddressingProvider class from a gateway jvm, I get the following exception:
An error occurred while calling None.com.bigdata.spark.api.AddressingProvider. Trace:
py4j.Py4JException: Constructor com.bigdata.spark.api.AddressingProvider([class java.lang.String, class com.bigdata.spark.api.internal.DefaultDownloadManager, class java.util.ArrayList, class java.lang.String]) does not exist
at py4j.reflection.ReflectionEngine.getConstructor(ReflectionEngine.java:179)
at py4j.reflection.ReflectionEngine.getConstructor(ReflectionEngine.java:196)
at py4j.Gateway.invoke(Gateway.java:237)
at py4j.commands.ConstructorCommand.invokeConstructor(ConstructorCommand.java:80)
at py4j.commands.ConstructorCommand.execute(ConstructorCommand.java:69)
at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:182)
at py4j.ClientServerConnection.run(ClientServerConnection.java:106)
at java.base/java.lang.Thread.run(Thread.java:834)
I am not able to understand why Py4j is not accepting the Child Class DefaultDownloadManager in the constructor? Does it only accepts the actual classes?
The text was updated successfully, but these errors were encountered:
We have a hierarchy where the 2 classes 'DefaultDownloadManager' and 'S3DownloadManager' implements the 'DownloadManager' interface. There is a Java class 'AddressingProvider' which has the following constructor.
I call the AddressingProvider constructor as follows:
When I call the constructor from python by accessing the AddressingProvider class from a gateway jvm, I get the following exception:
An error occurred while calling None.com.bigdata.spark.api.AddressingProvider. Trace:
py4j.Py4JException: Constructor com.bigdata.spark.api.AddressingProvider([class java.lang.String, class com.bigdata.spark.api.internal.DefaultDownloadManager, class java.util.ArrayList, class java.lang.String]) does not exist
at py4j.reflection.ReflectionEngine.getConstructor(ReflectionEngine.java:179)
at py4j.reflection.ReflectionEngine.getConstructor(ReflectionEngine.java:196)
at py4j.Gateway.invoke(Gateway.java:237)
at py4j.commands.ConstructorCommand.invokeConstructor(ConstructorCommand.java:80)
at py4j.commands.ConstructorCommand.execute(ConstructorCommand.java:69)
at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:182)
at py4j.ClientServerConnection.run(ClientServerConnection.java:106)
at java.base/java.lang.Thread.run(Thread.java:834)
I am not able to understand why Py4j is not accepting the Child Class DefaultDownloadManager in the constructor? Does it only accepts the actual classes?
The text was updated successfully, but these errors were encountered: