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

Duplicate key exception when logging response headers in spring boot application #42

Closed
jhorstmann opened this issue Jan 21, 2016 · 0 comments

Comments

@jhorstmann
Copy link
Contributor

java.lang.IllegalStateException: Duplicate key no-cache, no-store, max-age=0, must-revalidate
at java.util.stream.Collectors.lambda$throwingMerger$156(Collectors.java:133) ~[?:1.8.0_65]
at java.util.HashMap.merge(HashMap.java:1245) ~[?:1.8.0_65]
at java.util.stream.Collectors.lambda$toMap$214(Collectors.java:1320) ~[?:1.8.0_65]
at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:1.8.0_65]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_65]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_65]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_65]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_65]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_65]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_65]
at org.zalando.logbook.httpclient.Response.getHeaders(Response.java:62) ~[logbook-httpclient-0.11.0.jar:?]
at org.zalando.logbook.ObfuscatedHttpResponse.getHeaders(ObfuscatedHttpResponse.java:49) ~[logbook-core-0.11.0.jar:?]
at org.zalando.logbook.JsonHttpLogFormatter.format(JsonHttpLogFormatter.java:87) ~[logbook-core-0.11.0.jar:?]
at org.zalando.logbook.DefaultLogbook.lambda$write$0(DefaultLogbook.java:55) ~[logbook-core-0.11.0.jar:?]
at org.zalando.logbook.httpclient.LogbookHttpResponseInterceptor.process(LogbookHttpResponseInterceptor.java:39) ~[logbook-httpclient-0.11.0.jar:?]
at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:141) ~[httpcore-4.4.3.jar:4.4.3]
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