Hello All,

surprisingly I was able to partially fix everything by changing
contentDisposition to be INLINE
Now things are more weird than before: this page [1] is rendered only partially
I can see "Before"
I can see contents of PDF
but there is no "After" and link :(((

Any help is highly appreciated! :)

My changes are in following commits:
https://github.com/wicketstuff/core/commit/f46fc954ddc81b10117685b2fd4b4a8e8259f103
https://github.com/wicketstuff/core/commit/11dfc177a41d317c1616df932d72827819c5b24c


[1] 
https://github.com/wicketstuff/core/blob/master/jasperreports-parent/jasperreports-examples/src/main/java/org/wicketstuff/jasperreports/examples/SimplePdfPage.html#L18

On Mon, 23 Mar 2026 at 08:18, Maxim Solodovnik <[email protected]> wrote:
>
> Hello Johannes,
>
> On Mon, 23 Mar 2026 at 00:27, Johannes Renoth <[email protected]> wrote:
> >
> > Hi,
> >
> > i had a similar error when implementing WICKET-7169 in FileUploadTest, see
> > https://github.com/apache/wicket/pull/1382/changes#diff-e9602d778335878820e8fc2e20809e60befee4db12d4c3967c587ab9aaf59021
> > for my solution.
> >
> > i hope i remember correctly, but the error was that the stream was not
> > closed properly
>
> Thanks for the pointer, I'll try to dive deeper :)
> Here is the another solution FTR
> https://stackoverflow.com/questions/25890991/java-lang-illegalstateexception-stream-when-writing-excel-file-as-response-with
>
>
> >
> > On Sun, Mar 22, 2026 at 12:35 PM Maxim Solodovnik <[email protected]>
> > wrote:
> >
> > > Hello All,
> > >
> > > I've just updated "wicketstuff jasperreports" to the latest non
> > > vulnerable 7.x version
> > > The problem is: for whatever reason `jasperreports-examples` doesn't
> > > work as expected, I'm getting following stack trace:
> > >
> > > ERROR - RequestCycle               - Exception retry count exceeded
> > > java.lang.IllegalStateException: STREAM
> > > at org.eclipse.jetty.server.Response.getWriter(Response.java:910)
> > > at
> > > org.apache.wicket.protocol.http.servlet.ServletWebResponse.write(ServletWebResponse.java:114)
> > > at
> > > org.apache.wicket.protocol.http.HeaderBufferingWebResponse.write(HeaderBufferingWebResponse.java:184)
> > > at
> > > org.apache.wicket.protocol.http.BufferedWebResponse.lambda$write$7(BufferedWebResponse.java:247)
> > > at
> > > org.apache.wicket.protocol.http.BufferedWebResponse$Action.invoke(BufferedWebResponse.java:136)
> > > at
> > > org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:347)
> > > at
> > > org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:198)
> > > at
> > > org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:913)
> > > at
> > > org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:63)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:294)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:339)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:347)
> > > at
> > > org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:261)
> > > at
> > > org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:277)
> > > at
> > > org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:208)
> > > at
> > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:307)
> > > at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210)
> > > at
> > > org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
> > > <some more frames>
> > >
> > > Maybe some can help with this one? :)))
> > > Steps should be
> > >
> > > ```
> > > cd wicketstuff/jasperreports-parent/jasperreports-examples
> > > mvn clean jetty:run
> > >
> > > open
> > > http://localhost:8080/wicket/bookmarkable/org.wicketstuff.jasperreports.examples.SimplePdfPage
> > > ```
> > >
> > >
> > > million thanks in advance :))
> > > --
> > > Best regards,
> > > Maxim
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
> > --
> > Johannes Renoth
> > Freiberufler
> > Keplerstr. 71
> > 90766 Fürth
> > 0157 / 31033584
> > UstID DE312143892
>
>
>
> --
> Best regards,
> Maxim



-- 
Best regards,
Maxim

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to