Hi,

On Mon, Jun 16, 2014 at 5:17 PM, rexar <invi...@gmail.com> wrote:

> Hi Martin!
>
> Thank you for advice, but now I have another problem :(
> In my RequestLogger class I do next:
>
> /@Override
>     protected void log(RequestData rd, SessionData sd)
>     {
>         Long requestDuration = rd.getTimeTaken();
>         IRequestHandler requesthandler = rd.getEventTarget();
>         if(requesthandler != null) {
>

change the line above to:
if (requesthandler instanceof ILoggableRequestHandler) {


>             ILogData logData = ((ILoggableRequestHandler)
> requesthandler).getLogData();
>             String requestHandlerData = logData.toString();
>
>             Map<String, String> handlerData =
> parseHandlerData(requestHandlerData);
>
>             Tuple2<String, String> monitorinProperties =
> makeMonitoringProperties(handlerData);
>             monitoring.add(monitorinProperties.e1, monitorinProperties.e2,
> MonblankConst.MS, requestDuration);
>         }
>     }/
>
> But sometimes I have an exception:
> HTTP Status 500 -
> org.apache.wicket.core.request.handler.BufferedResponseRequestHandler
> cannot
> be cast to org.apache.wicket.request.ILoggableRequestHandler
>
> It appears when trying onSubmit on Form on some ExternalPage. Actually I
> cant say more concrete, because there is project-specific.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Custom-RequestLogger-tp4665676p4666276.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to