Description
Describe the bug
Since upgrading org.springframework.cloud:spring-cloud-dependencies
from 2021.0.6
-> 2021.0.7
we started facing issues with lambda executions utilizing ScheduledEvent
from cloudwatch events.
For now we've fixed this by downgrading to 2021.0.6
version which seems to do the trick.
Error:
java.lang.ClassCastException: class [B cannot be cast to class com.amazonaws.services.lambda.runtime.events.ScheduledEvent ([B is in module java.base of loader 'bootstrap'; com.amazonaws.services.lambda.runtime.events.ScheduledEvent is in unnamed module of loader 'app')
Sample
Create lambda using provided java 17 runtime and trigger it through scheduled cloudwatch events using ScheduledEvent
from com.amazonaws.services.lambda.runtime.events.ScheduledEvent
.
Manual invocations from lambda console still works.