Discussion:
WebSocket tests fail after migration to Wicket 8
Manfred Bergmann
2018-09-29 14:58:03 UTC
Permalink
Hi.

I’m using a WebSocket on a component of a page based on WebSocketBehavior.
It’s working fine when running the app.

But the tests of the Panel fail, in contrast to Wicket 7 with:

Caused by: java.lang.NullPointerException
at org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.getSessionId(BaseWebSocketBehavior.java:176) ~[wicket-native-websocket-core-8.1.0.jar:8.1.0]
at org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.renderHead(BaseWebSocketBehavior.java:128) ~[wicket-native-websocket-core-8.1.0.jar:8.1.0]

Is there something that must change for testing WebSocket behavior in Wicket 8?



Regards,
Manfred
Andrea Del Bene
2018-09-29 15:33:20 UTC
Permalink
Hi,

you probably found an issue with we recently fixed :
https://issues.apache.org/jira/browse/WICKET-6588

Could you test your code using 8.2.0-SNAPSHOT version?

Thank you.
Hi.
I’m using a WebSocket on a component of a page based on WebSocketBehavior.
It’s working fine when running the app.
Caused by: java.lang.NullPointerException
at org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.getSessionId(BaseWebSocketBehavior.java:176) ~[wicket-native-websocket-core-8.1.0.jar:8.1.0]
at org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.renderHead(BaseWebSocketBehavior.java:128) ~[wicket-native-websocket-core-8.1.0.jar:8.1.0]
Is there something that must change for testing WebSocket behavior in Wicket 8?
Regards,
Manfred
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Manfred Bergmann
2018-10-01 14:31:27 UTC
Permalink
Yes, I can confirm 8.2.0-SNAPSHOT works.


Thank you,
Manfred

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org

Loading...