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
I spend times on it and I didn't find a solution. The DeflaterOutputStream class doesn't support async call and I didn't find an implementation of an asyncGzipFilter class.
I spend times on it and I don't find a solution. Actually the
DeflaterOutputStream doesn't support async and I didn't find an
implementation of an asyncGzipFilter class.
—
Reply to this email directly or view it on GitHub #854 (comment)
.
GZIP filter seems configured for async however when my controller return a Callable:
code of the method:
@RequestMapping(method = RequestMethod.PUT, value="/rest/voitures/{voitureId}", consumes="application/json; charset=utf-8", produces = MediaType.APPLICATION_JSON_VALUE)
public Callable voitureUpdate(@RequestBody final Voiture v, @PathVariable("voitureId") final Long voitureId) {
return new Callable() {
override
public Voiture call() throws Exception {
log.debug("REST request to update Voiture : {}", v);
Voiture voiture2Update = voitureRepository.findOne(voitureId);
voitureRepository.save(v);
return v; } }; }
The following Exception is thrown:
[ERROR] org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jhipster].[dispatcherServlet] - "Servlet.service()" pour la servlet dispatcherServlet a lancé une exception
java.io.IOException: write beyond end of stream
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:201) ~[na:1.7.0_55]
at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:146) ~[na:1.7.0_55]
at java.io.FilterOutputStream.write(FilterOutputStream.java:97) ~[na:1.7.0_55]
The text was updated successfully, but these errors were encountered: