You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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)
The text was updated successfully, but these errors were encountered:
vklidu
pushed a commit
to vklidu/spring-kotlin-coroutine
that referenced
this issue
Dec 22, 2020
propertyName is not resolved and Exception is thrown
The text was updated successfully, but these errors were encountered: