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

Java Android controller build failure #3288

Closed
externl opened this issue Dec 18, 2024 · 0 comments · Fixed by #3323
Closed

Java Android controller build failure #3288

externl opened this issue Dec 18, 2024 · 0 comments · Fixed by #3323
Assignees
Milestone

Comments

@externl
Copy link
Member

externl commented Dec 18, 2024

From my draft Android CI PR: https://github.com/zeroc-ice/ice/actions/runs/12400418944/job/34617551843


> Task :compileDebugJavaWithJavac
/home/runner/work/ice/ice/java/test/android/controller/src/main/java/com/zeroc/testcontroller/ControllerApp.java:289: error: cannot find symbol
                com.zeroc.Ice.SSL.Plugin plugin =
                                 ^
  symbol:   class Plugin
  location: package com.zeroc.Ice.SSL
/home/runner/work/ice/ice/java/test/android/controller/src/main/java/com/zeroc/testcontroller/ControllerApp.java:290: error: cannot find symbol
                        (com.zeroc.Ice.SSL.Plugin)
                                          ^
  symbol:   class Plugin
  location: package com.zeroc.Ice.SSL
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

> Task :compileDebugJavaWithJavac FAILED

> Task :desugarDebugFileDependencies
22 actionable tasks: 22 executed
FAILURE: Build failed with an exception.

This plugin no longer exists and we'll need to update the controller to use the new native Java APIs.

if (properties
.getIceProperty("Ice.Plugin.IceSSL")
.equals("com.zeroc.IceSSL.PluginFactory")) {
com.zeroc.Ice.SSL.Plugin plugin =
(com.zeroc.Ice.SSL.Plugin)
communicator.getPluginManager().getPlugin("IceSSL");
String keystore = communicator.getProperties().getIceProperty("IceSSL.Keystore");
properties.setProperty("IceSSL.Keystore", "");
int resource = keystore.equals("client.bks") ? R.raw.client : R.raw.server;
java.io.InputStream certs = getResources().openRawResource(resource);
plugin.setKeystoreStream(certs);
plugin.setTruststoreStream(certs);
communicator.getPluginManager().initializePlugins();
}

@externl externl added this to the 3.8.0 milestone Dec 18, 2024
@externl externl added the java label Dec 18, 2024
@pepone pepone self-assigned this Dec 18, 2024
pepone added a commit to pepone/ice that referenced this issue Dec 23, 2024
pepone added a commit to pepone/ice that referenced this issue Jan 8, 2025
@pepone pepone closed this as completed in 5332063 Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants