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

Regression: Native fails with java.lang.ClassNotFoundException: java.lang.Integer #18814

Closed
Sgitario opened this issue Jul 19, 2021 · 1 comment · Fixed by #18825
Closed

Regression: Native fails with java.lang.ClassNotFoundException: java.lang.Integer #18814

Sgitario opened this issue Jul 19, 2021 · 1 comment · Fixed by #18825
Assignees
Labels
area/config kind/bug Something isn't working
Milestone

Comments

@Sgitario
Copy link
Contributor

Sgitario commented Jul 19, 2021

Describe the bug

I have a pretty basic scenario that uses the quarkus-config-yaml Quarkus extension and it fails after build the Native image with:

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.quarkus.qe.configmapping.NativeConfigMappingResourceIT
Executing [/home/jcarvaja/sources/beefy-scenarios/022-quarkus-properties-config-all/target/022-quarkus-properties-config-all-1.0.0-SNAPSHOT-runner, -Dquarkus.http.port=8081, -Dquarkus.http.ssl-port=8444, -Dtest.url=http://localhost:8081, -Dquarkus.log.file.path=/home/jcarvaja/sources/beefy-scenarios/022-quarkus-properties-config-all/target/quarkus.log, -Dquarkus.log.file.enable=true]
__  ____  __  _____   ___  __ ____  ______ 
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ 
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \   
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/   
2021-07-19 15:38:46,717 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.ClassNotFoundException: java.lang.Integer
	at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:64)
	at java.lang.Class.forName(DynamicHub.java:1308)
	at io.quarkus.arc.runtime.ConfigRecorder.load(ConfigRecorder.java:102)
	at io.quarkus.arc.runtime.ConfigRecorder.validateConfigProperties(ConfigRecorder.java:48)
	at io.quarkus.deployment.steps.ConfigBuildStep$validateConfigProperties1249763973.deploy_0(ConfigBuildStep$validateConfigProperties1249763973.zig:282)
	at io.quarkus.deployment.steps.ConfigBuildStep$validateConfigProperties1249763973.deploy(ConfigBuildStep$validateConfigProperties1249763973.zig:40)
	at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:535)
	at io.quarkus.runtime.Application.start(Application.java:101)
	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:101)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:119)
	at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)

Application was not started: 2021-07-19 15:38:46,717 localhost NativeImageGeneratorRunner$JDK9Plus[24] ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.ClassNotFoundException: java.lang.Integer

I don't think this issue is related to the quarkus-config-yaml extension as I saw the same error using the reactive Kafka extension.

Doing exactly the same using 2.0.2.Final works fine, but not with 2.1.0.CR1 or 999-SNAPSHOT.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

  1. git clone https://github.com/quarkus-qe/beefy-scenarios
  2. cd beefy-scenarios/022-quarkus-properties-config-all
  3. mvn clean verify -Dnative -Dquarkus.native.container-build=true -Dquarkus.native.native-image-xmx=4g

All the tests should pass, but the Native tests are failing.

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@gsmet
Copy link
Member

gsmet commented Jul 19, 2021

Good catch @Sgitario , just in time for the Final!

gsmet added a commit that referenced this issue Jul 19, 2021
Fix native regression in Config validation
@quarkus-bot quarkus-bot bot added this to the 2.2 - main milestone Jul 19, 2021
@gsmet gsmet modified the milestones: 2.2 - main, 2.1.0.Final Jul 21, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants