catch bad base64 data
Closed this issue · 2 comments
Gregsen commented
ERROR [pool-4-thread-1] o.z.s.f.PluginEventsProcessor - java.lang.IllegalArgumentException: Illegal character in Base64 encoded data.
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException: Illegal character in Base64 encoded data.
#011at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2207) ~[guava-19.0.jar!/:?]
#011at com.google.common.cache.LocalCache.get(LocalCache.java:3953) ~[guava-19.0.jar!/:?]
#011at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3957) ~[guava-19.0.jar!/:?]
#011at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4875) ~[guava-19.0.jar!/:?]
#011at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4881) ~[guava-19.0.jar!/:?]
#011at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl.apply(TaupageYamlProviderImpl.java:87) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
#011at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl.apply(TaupageYamlProviderImpl.java:27) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
#011at org.zalando.stups.fullstop.plugin.impl.EC2InstanceContextImpl.getTaupageYaml(EC2InstanceContextImpl.java:183) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
#011at org.zalando.stups.fullstop.plugin.taupageyaml.TaupageYamlPlugin.process(TaupageYamlPlugin.java:35) ~[fullstop-taupage-yaml-plugin-1.2.0-SNAPSHOT.jar!/:?]
#011at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_66-internal]
#011at org.zalando.stups.fullstop.plugin.AbstractEC2InstancePlugin.processEvent(AbstractEC2InstancePlugin.java:36) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
#011at org.zalando.stups.fullstop.PluginEventsProcessor.doProcess(PluginEventsProcessor.java:52) ~[fullstop-processing-1.2.0-SNAPSHOT.jar!/:?]
#011at org.zalando.stups.fullstop.PluginEventsProcessor.doProcess(PluginEventsProcessor.java:43) ~[fullstop-processing-1.2.0-SNAPSHOT.jar!/:?]
#011at java.util.ArrayList.forEach(ArrayList.java:1249) [?:1.8.0_66-internal]
#011at org.zalando.stups.fullstop.PluginEventsProcessor.process(PluginEventsProcessor.java:33) [fullstop-processing-1.2.0-SNAPSHOT.jar!/:?]
#011at com.amazonaws.services.cloudtrail.processinglibrary.reader.EventReader.emitEvents(EventReader.java:229) [aws-cloudtrail-processing-library-1.0.1-ZAL-2.jar!/:?]
#011at com.amazonaws.services.cloudtrail.processinglibrary.reader.EventReader.processSource(EventReader.java:156) [aws-cloudtrail-processing-library-1.0.1-ZAL-2.jar!/:?]
#011at com.amazonaws.services.cloudtrail.processinglibrary.AWSCloudTrailProcessingExecutor$ScheduledJob$1.run(AWSCloudTrailProcessingExecutor.java:178) [aws-cloudtrail-processing-library-1.0.1-ZAL-2.jar!/:?]
#011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_66-internal]
#011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_66-internal]
#011at java.lang.Thread.run(Thread.java) [?:1.8.0_66-internal]
Caused by: java.lang.IllegalArgumentException: Illegal character in Base64 encoded data.
#011at org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder.decode(Base64Coder.java:288) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder.decode(Base64Coder.java:246) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlBinary.construct(SafeConstructor.java:270) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:373) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:147) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:354) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:373) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:147) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:354) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlMap.construct(SafeConstructor.java:489) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450) ~[snakeyaml-1.16.jar!/:?]
#011at org.yaml.snakeyaml.Yaml.load(Yaml.java:369) ~[snakeyaml-1.16.jar!/:?]
#011at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_66-internal]
#011at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl.getTaupageYaml(TaupageYamlProviderImpl.java:67) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
#011at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl.access$000(TaupageYamlProviderImpl.java:27) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
#011at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl$1.load(TaupageYamlProviderImpl.java:39) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
#011at org.zalando.stups.fullstop.plugin.provider.impl.TaupageYamlProviderImpl$1.load(TaupageYamlProviderImpl.java:36) ~[fullstop-instance-plugin-support-1.2.0-SNAPSHOT.jar!/:?]
#011at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3542) ~[guava-19.0.jar!/:?]
#011at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2323) ~[guava-19.0.jar!/:?]
#011at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2286) ~[guava-19.0.jar!/:?]
#011at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201) ~[guava-19.0.jar!/:?]
#011... 20 more
Gregsen commented
and maybe add some functionality to show the responsible team