Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

loss java address set for JavaClient #502

Open
143230 opened this issue Oct 24, 2022 · 1 comment
Open

loss java address set for JavaClient #502

143230 opened this issue Oct 24, 2022 · 1 comment

Comments

@143230
Copy link

143230 commented Oct 24, 2022

in py4j-java/src/main/java/py4j/JavaServer.java there must use the defaultaddress() to set the java address, when in docker, this may cause problem of connection, so need to add constructor that can pass the java address to JavaClient

@143230
Copy link
Author

143230 commented Oct 24, 2022

public JavaServer(Object entryPoint, InetAddress address, int port, int connectTimeout, int readTimeout,
List<Class<? extends Command>> customCommands, Py4JPythonClientPerThread pythonClient, String authToken) {
super(entryPoint, port, address, connectTimeout, readTimeout, customCommands, pythonClient,
ServerSocketFactory.getDefault(), authToken);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant