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

fixedDelayString error - embeddedValueResolver null in DefaultSchedulingPolicyProvider #47

Open
vklidu opened this issue Dec 22, 2020 · 0 comments

Comments

@vklidu
Copy link

vklidu commented Dec 22, 2020

@Scheduled(fixedDelayString = "\${propertyName}")
suspend fun methodName() = coroutineScope {
}

propertyName is not resolved and Exception is thrown

Caused by: java.lang.IllegalArgumentException: Invalid fixedDelayString value "${propertyName}" - cannot parse into integer
	at org.springframework.kotlin.coroutine.scheduler.DefaultSchedulingPolicyProvider.getValue(SchedulingPolicyProvider.kt:70)
	at org.springframework.kotlin.coroutine.scheduler.DefaultSchedulingPolicyProvider.getValue$default(SchedulingPolicyProvider.kt:57)
	at org.springframework.kotlin.coroutine.scheduler.DefaultSchedulingPolicyProvider$FIXED_DELAY_STRING_POLICY_CREATOR$1.invoke(SchedulingPolicyProvider.kt:105)
	at org.springframework.kotlin.coroutine.scheduler.DefaultSchedulingPolicyProvider$FIXED_DELAY_STRING_POLICY_CREATOR$1.invoke(SchedulingPolicyProvider.kt:30)
	at org.springframework.kotlin.coroutine.scheduler.DefaultSchedulingPolicyProvider.createSchedulingPolicy(SchedulingPolicyProvider.kt:42)

vklidu pushed a commit to vklidu/spring-kotlin-coroutine that referenced this issue Dec 22, 2020
…esolver null in DefaultSchedulingPolicyProvider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant