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

Add Support for Java 16, 17 #3005

Open
exalate-issue-sync bot opened this issue May 22, 2023 · 2 comments · May be fixed by #5666
Open

Add Support for Java 16, 17 #3005

exalate-issue-sync bot opened this issue May 22, 2023 · 2 comments · May be fixed by #5666

Comments

@exalate-issue-sync
Copy link

H2OContext.getOrCreate() throws the following exception:

{noformat}java.lang.IllegalAccessError: class ai.h2o.sparkling.backend.utils.RestCommunication (in unnamed module @0x58cb38af) cannot access class sun.net.www.protocol.http.Handler (in module java.base) because module java.base does not export sun.net.www.protocol.http to unnamed module @0x58cb38af
at ai.h2o.sparkling.backend.utils.RestCommunication.resolveUrl(RestCommunication.scala:323)
at ai.h2o.sparkling.backend.utils.RestCommunication.readURLContent(RestCommunication.scala:381)
at ai.h2o.sparkling.backend.utils.RestCommunication.readURLContent$(RestCommunication.scala:370)
at ai.h2o.sparkling.backend.utils.RestApiUtils$.readURLContent(RestApiUtils.scala:96)
at ai.h2o.sparkling.backend.utils.RestCommunication.request(RestCommunication.scala:182)
at ai.h2o.sparkling.backend.utils.RestCommunication.request$(RestCommunication.scala:172)
at ai.h2o.sparkling.backend.utils.RestApiUtils$.request(RestApiUtils.scala:96)
at ai.h2o.sparkling.backend.utils.RestCommunication.update(RestCommunication.scala:88)
at ai.h2o.sparkling.backend.utils.RestCommunication.update$(RestCommunication.scala:81)
at ai.h2o.sparkling.backend.utils.RestApiUtils$.update(RestApiUtils.scala:96)
at ai.h2o.sparkling.backend.utils.H2OContextExtensions.lockCloud(H2OContextExtensions.scala:235)
at ai.h2o.sparkling.backend.utils.H2OContextExtensions.tryToLockCloud(H2OContextExtensions.scala:122)
at ai.h2o.sparkling.backend.utils.H2OContextExtensions.getAndVerifyWorkerNodes(H2OContextExtensions.scala:137)
at ai.h2o.sparkling.backend.utils.H2OContextExtensions.getAndVerifyWorkerNodes$(H2OContextExtensions.scala:131)
at ai.h2o.sparkling.H2OContext.getAndVerifyWorkerNodes(H2OContext.scala:65)
at ai.h2o.sparkling.H2OContext.(H2OContext.scala:85)
at ai.h2o.sparkling.H2OContext$.getOrCreate(H2OContext.scala:479)
at ai.h2o.sparkling.H2OContext$.getOrCreate(H2OContext.scala:491)
... 49 elided
{noformat}

Sparkling Water explicitly sets handlers for creation of http connection. (see [https://h2oai.atlassian.net/browse/SW-2302|https://h2oai.atlassian.net/browse/SW-2302|smart-link] )

{noformat} val handler = if (endpoint.getScheme == "https") {
new sun.net.www.protocol.https.Handler()
} else {
new sun.net.www.protocol.http.Handler()
}
val spec = new URI(endpointWithDelimiter).resolve(suffixWithoutDelimiter).toURL.toString

new URL(null, spec, handler){noformat}

because of the following problem: [https://issues.apache.org/jira/browse/SPARK-25694|https://issues.apache.org/jira/browse/SPARK-25694|smart-link]

@DinukaH2O
Copy link

JIRA Issue Migration Info

Jira Issue: SW-2741
Assignee: UNASSIGNED
Reporter: Marek Novotny
State: Open
Fix Version: Backlog
Attachments: N/A
Development PRs: N/A

@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-08-29T07:57:35.842-0700

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.

3 participants