zalando-stups/fullstop

java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map

Closed this issue · 0 comments

ERROR [pool-7-thread-1] o.z.s.f.PluginEventsProcessor - java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2203) ~[guava-18.0.jar!/:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:3937) ~[guava-18.0.jar!/:?]
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941) ~[guava-18.0.jar!/:?]
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824) ~[guava-18.0.jar!/:?]
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4830) ~[guava-18.0.jar!/:?]
at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl.apply(TaupageYamlProviderImpl.java:83) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl.apply(TaupageYamlProviderImpl.java:27) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
at org.zalando.stups.fullstop.plugin.impl.EC2InstanceContextImpl.getTaupageYaml(EC2InstanceContextImpl.java:183) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
at org.zalando.stups.fullstop.plugin.taupageyaml.TaupageYamlPlugin.process(TaupageYamlPlugin.java:35) ~[fullstop-taupage-yaml-plugin-1.2.0-SNAPSHOT.jar!/:?]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_66-internal]
at org.zalando.stups.fullstop.plugin.AbstractEC2InstancePlugin.processEvent(AbstractEC2InstancePlugin.java:36) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
at org.zalando.stups.fullstop.PluginEventsProcessor.doProcess(PluginEventsProcessor.java:52) ~[fullstop-processing-1.2.0-SNAPSHOT.jar!/:?]
at org.zalando.stups.fullstop.PluginEventsProcessor.doProcess(PluginEventsProcessor.java:43) ~[fullstop-processing-1.2.0-SNAPSHOT.jar!/:?]
at java.util.ArrayList.forEach(ArrayList.java:1249) [?:1.8.0_66-internal]
at org.zalando.stups.fullstop.PluginEventsProcessor.process(PluginEventsProcessor.java:33) [fullstop-processing-1.2.0-SNAPSHOT.jar!/:?]
at com.amazonaws.services.cloudtrail.processinglibrary.reader.EventReader.emitEvents(EventReader.java:229) [aws-cloudtrail-processing-library-1.0.2.jar!/:?]
at com.amazonaws.services.cloudtrail.processinglibrary.reader.EventReader.processSource(EventReader.java:156) [aws-cloudtrail-processing-library-1.0.2.jar!/:?]
at com.amazonaws.services.cloudtrail.processinglibrary.AWSCloudTrailProcessingExecutor$ScheduledJob$1.run(AWSCloudTrailProcessingExecutor.java:178) [aws-cloudtrail-processing-library-1.0.2.jar!/:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_66-internal]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_66-internal]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66-internal]
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl.lambda$getTaupageYaml$9(TaupageYamlProviderImpl.java:65) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_66-internal]
at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl.getTaupageYaml(TaupageYamlProviderImpl.java:65) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl.access$000(TaupageYamlProviderImpl.java:27) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]