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

No svm 22.1.0 artifact in maven central #4518

Closed
danslapman opened this issue Apr 28, 2022 · 6 comments
Closed

No svm 22.1.0 artifact in maven central #4518

danslapman opened this issue Apr 28, 2022 · 6 comments
Assignees
Labels

Comments

@danslapman
Copy link

Describe the issue
There is no org.graalvm.nativeimage:svm:22.1.0 artifact in maven central. Building with 22.0.0.2 dependency on graal 22.1.0 leads to error:

[error] Error: ImageSingletons.add must not overwrite existing key com.oracle.svm.core.jdk.ProtectionDomainSupport
[error] Existing value: com.oracle.svm.core.jdk.ProtectionDomainSupport@5217f3d0
[error] New value: com.oracle.svm.core.jdk.ProtectionDomainSupport@37ebc9d8
[error] Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception

I'm using svm to implement autofeature:

 import com.oracle.svm.core.annotate.*;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.graalvm.nativeimage.ImageSingletons;
import org.graalvm.nativeimage.hosted.Feature;
import org.graalvm.nativeimage.hosted.RuntimeClassInitialization;
import org.graalvm.nativeimage.impl.RuntimeClassInitializationSupport;

import java.security.Security;

@AutomaticFeature
public class BouncyCastleFeature implements Feature {

    @Override
    public void afterRegistration(AfterRegistrationAccess access) {
        RuntimeClassInitialization.initializeAtBuildTime("org.bouncycastle");
        RuntimeClassInitializationSupport rci = ImageSingletons.lookup(RuntimeClassInitializationSupport.class);
        rci.rerunInitialization("org.bouncycastle.jcajce.provider.drbg.DRBG$Default", "");
        rci.rerunInitialization("org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV", "");
        Security.addProvider(new BouncyCastleProvider());
    }
}

Describe GraalVM and your environment:

  • GraalVM version (latest snapshot builds can be found here), or commit id if built from source: 22.1.0
@danslapman danslapman added the bug label Apr 28, 2022
@kristofdho
Copy link

For reference: #4146 (reply in thread)

@zakkak
Copy link
Collaborator

zakkak commented May 5, 2022

Hello @gilles-duboscq are there any updates on that front?

@gilles-duboscq
Copy link
Member

I'm looking into it. The original reason they got removed from the maven upload when removing Java 8 support is the complications around generating javadoc for those jars in a modular world (plus multi-release jars).
With the help of @fniephaus we got something almost working. If we hit a blocker we'll look into generating dummy javadoc for those jars.

@gilles-duboscq
Copy link
Member

The necessary configuration landed in master last Friday in b62be62.
Although most changes were in mx (graalvm/mx@939c475).

I have applied the same changes to build the artefacts for 22.1.0, they are now in the pipeline to be published out to maven central.

@danslapman
Copy link
Author

Thank You, @gilles-duboscq!

@danslapman
Copy link
Author

I confirm that everything is now fine with new artifact

zakkak added a commit to zakkak/quarkus that referenced this issue May 24, 2022
zakkak added a commit to zakkak/quarkus that referenced this issue May 25, 2022
brandonstubbs added a commit to brandonstubbs/pod-babashka-buddy that referenced this issue Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants