You are calling this method on the websocket response, which is not
supported by websockets (as there is already a connection and no headers
IIUC):

```
 @Override
public void setHeader(String name, String value)
{
throw new UnsupportedOperationException();
}
```

On Sun, Sep 7, 2025 at 7:47 PM Bas Gooren <b...@iswd.nl.invalid> wrote:

>  Hi!
>
> It looks like you have a RequestCycle listener (an anonymous class inside
> your tw.com.slsinfo.WicketApplication class), which is throwing an
> exception in its “onEndRequest” implementation.
>
> Since that is your own code, you need to have a look at line 108 in your
> WicketApplication and figure out why it is throwing an exception 🙂
>
> Met vriendelijke groet,
> Kind regards,
>
> Bas Gooren
>
>
> Op 7 sep 2025, 18:04:30 schreef 黃魚鴞 <front...@gmail.com>:
>
> > Dear all
> >
> > One i add WebSocketBehavior on page, when i start the web server
> (Wildfly)
> > , it showed error message:
> >
> > 16:01:43,648 ERROR [stderr] (default task-1) [default task-1] ERROR
> > org.apache.wicket.request.cycle.RequestCycle - Exception occurred during
> > onEndRequest
> >
> > 16:01:43,648 ERROR [stderr] (default task-1)
> > java.lang.UnsupportedOperationException
> >
> > 16:01:43,648 ERROR [stderr] (default task-1) at
> >
> deployment.llm4class-web-0.0.1-SNAPSHOT.war//org.apache.wicket.protocol.ws.api.WebSocketResponse.setHeader(WebSocketResponse.java:185)
> >
> > 16:01:43,648 ERROR [stderr] (default task-1) at
> > deployment.llm4class-web-0.0.1-SNAPSHOT.war//tw.com
> .slsinfo.WicketApplication$1.onEndRequest(WicketApplication.java:108)
> >
> > How do I fix this?
> >
> > Shengche
> >
> >
> >
>


-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

Reply via email to