Replies: 1 comment
-
Ooops, my mistake, a custom request logging filter was causing this :( Franck |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to stream the content of a file back to the REST client, in a RestEasy method. At this point I am not worrying about blocking the I/O thread, I read this GitHub issue:
#28385
... but I can't make this work: RestEasy insists on trying to have Jackson serialize the response entity.
I have tried returning an InputStream as the entity, I tried StreamingOutput (below) with and without a StreamingOutputMessageBodyWriter registered, and I always get the Jackson error below... am I missing something obvious?
_exportService.getExportData returns a proper StreamingOutput, however RestEasy is trying to serialize the entity and I get this 500 error... am I missing something obvious?
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.easypass.booking.service.ExportService$PathStreamingOutput
I am using these dependencies:
Beta Was this translation helpful? Give feedback.
All reactions