Link to the source: https://github.com/apache/wicket/blob/88ad2ce361b04f4edee2dba86e141b34148f70a6/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/WebSocketResponse.java#L185
On Sun, Sep 7, 2025 at 9:49 PM Martijn Dashorst <[email protected]> wrote: > 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 <[email protected]> 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 黃魚鴞 <[email protected]>: >> >> > 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 > -- Become a Wicket expert, learn from the best: http://wicketinaction.com
