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

build: enable testNative #733

Merged
merged 3 commits into from
Apr 26, 2023
Merged

build: enable testNative #733

merged 3 commits into from
Apr 26, 2023

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented Mar 28, 2023

@graemerocher do you know about this error:

The bundle named: org.glassfish.jaxb.runtime.v2.model.impl.Messages, has not been found. If the bundle is part of a module, verify the bundle name is a fully qualified class name. Otherwise verify the bundle path is accessible in the classpath.

Fatal error: java.lang.IllegalArgumentException: duplicate element: ALL_PUBLIC_METHODS
        at java.base/java.util.ImmutableCollections$SetN.<init>(ImmutableCollections.java:918)
        at java.base/java.util.Set.of(Set.java:706)
        at io.micronaut.core.graal.GraalReflectionConfigurer.lambda$configure$3(GraalReflectionConfigurer.java:65)
        at java.base/java.util.Optional.ifPresent(Optional.java:178)
        at io.micronaut.core.graal.GraalReflectionConfigurer.configure(GraalReflectionConfigurer.java:59)
        at io.micronaut.core.io.service.ServiceLoaderFeature.configureForReflection(ServiceLoaderInitialization.java:208)
        at io.micronaut.core.io.service.ServiceLoaderFeature.beforeAnalysis(ServiceLoaderInitialization.java:62)
------------------------------------------------------------------------------------------------------------------------
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$9(NativeImageGenerator.java:736)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:85)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:736)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:578)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:535)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:403)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:580)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:128)
                        0.6s (5.1% of total time) in 11 GCs | Peak RSS: 1.00GB | CPU load: 2.55
===================================================================================================

@sdelamo
Copy link
Contributor Author

sdelamo commented Mar 28, 2023

@sdelamo
Copy link
Contributor Author

sdelamo commented Mar 28, 2023

Probably fixed by micronaut-projects/micronaut-core#9015

@sdelamo
Copy link
Contributor Author

sdelamo commented Apr 25, 2023

@timyates can you merge master against this branch and see if it works.

@timyates
Copy link
Contributor

Still fails... Seems spock is getting on to the native classpath somehow...

@timyates
Copy link
Contributor

Pushed a fix to exclude spock from the nativeImageTestClasspath c9d1daa

I assume it's our build plugin that's adding it... I still can't read the dependencies tab in Gradle enterprise

@sonarcloud
Copy link

sonarcloud bot commented Apr 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sdelamo sdelamo merged commit 005e29e into master Apr 26, 2023
@sdelamo sdelamo deleted the enable-test-native branch April 26, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants