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

RandomServerPort and GraalVM don't cooperate (bug) #36657

Closed
nkrul opened this issue Aug 1, 2023 · 1 comment
Closed

RandomServerPort and GraalVM don't cooperate (bug) #36657

nkrul opened this issue Aug 1, 2023 · 1 comment
Assignees
Labels
for: external-project For an external project and not something we can fix status: invalid An issue that we don't feel is valid

Comments

@nkrul
Copy link

nkrul commented Aug 1, 2023

Bug Report:
Using the GraalVM plugin breaks things when using Kotlin and the graal plugin (org.graalvm.buildtools.native), and specifying a amnagement server port in a spring boot reactive web app.

A worked example is here: https://github.com/nkrul/SpringBootIssue

versions:

plugins {
	id("org.springframework.boot") version "3.1.2"
	id("io.spring.dependency-management") version "1.1.2"
	kotlin("jvm") version "1.8.22"
	kotlin("plugin.spring") version "1.8.22"

	// this seems to interfere with tests and AOT compilation
	id("org.graalvm.buildtools.native") version "0.9.20"
}

I would guess that that the context reloading and the Aot Compilation steps aren't correctly computing dependencies.

To reproduce the failure, just ./gradlew test - see Readme.md in the linked example for what to do to not trigger the issue.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 1, 2023
@wilkinsona wilkinsona self-assigned this Aug 1, 2023
@wilkinsona
Copy link
Member

Thanks for the sample. The problem does not occur with Spring Framework 6.0.12-SNAPSHOT:

repositories {
	mavenCentral()
	maven {
		url = uri("https://repo.spring.io/snapshot")
	}
}

ext {
	set("spring-framework.version", "6.0.12-SNAPSHOT")
}

Duplicates spring-projects/spring-framework#30861.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2023
@wilkinsona wilkinsona added status: invalid An issue that we don't feel is valid for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants