Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
6.2.0, 6.3.0, 6.4.0
Description
When i add a new DateLabel from atmosphere subscribed method. I get an exception, because of the
DateConverter.getClientTimeZone().
There is only an AtmosphereWebRequest, not a ServletWebRequest which is needed by WebClientInfo class. There is no client info available from atmosphere.
------------------------
The exception:
java.lang.ClassCastException: org.apache.wicket.atmosphere.AtmosphereWebRequest cannot be cast to org.apache.wicket.protocol.http.servlet.ServletWebRequest
at org.apache.wicket.protocol.http.request.WebClientInfo.<init>(WebClientInfo.java:65)
at org.apache.wicket.protocol.http.WebSession.getClientInfo(WebSession.java:148)
at org.apache.wicket.protocol.http.WebSession.getClientInfo(WebSession.java:37)
at org.apache.wicket.datetime.DateConverter.getClientTimeZone(DateConverter.java:193)
at org.apache.wicket.datetime.DateConverter.convertToString(DateConverter.java:152)
at org.apache.wicket.datetime.DateConverter.convertToString(DateConverter.java:43)
at org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1671)
at org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1643)
at org.apache.wicket.datetime.markup.html.basic.DateLabel.onComponentTagBody(DateLabel.java:297)