You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2011/04/25 13:55:26 UTC

onBeforeRender called twice

Hi!

Is it ok that onBeforeRender is called twice (1.4.9):

1.
	Server.handle(HttpConnection) line: 326	
	HttpConnection.handleRequest() line: 534	
	HttpConnection$RequestHandler.headerComplete() line: 864	
	HttpParser.parseNext() line: 539	


2.
	Server.handle(HttpConnection) line: 326	
	HttpConnection.handleRequest() line: 534	
	HttpConnection$RequestHandler.content(Buffer) line: 879	
	HttpParser.parseNext() line: 747	
	HttpParser.parseAvailable() line: 218	
	HttpConnection.handle() line: 404	


Is this normal ?

**
Martin

Re: onBeforeRender called twice

Posted by Martin Grigorov <mg...@apache.org>.
Put a breakpoint in WicketFilter#doFilter() and if it stops there
twice then there is a second request. It could be a redirect but it
can be something like <img src="" /> which will make another request
to the current url.

On Mon, Apr 25, 2011 at 8:38 PM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> Hi!
>
> Sorry for being imprecise.. anyways, the stacktrace goes all through
> to onBeforeRender being called twice. Is this normal or due to some
> redirect?
>
> **
> Martin
>
> 2011/4/25 Martin Grigorov <mg...@apache.org>:
>> onBeforRender has nothing to do with Servlet container's stack trace.
>>
>> On Mon, Apr 25, 2011 at 2:55 PM, Martin Makundi
>> <ma...@koodaripalvelut.com> wrote:
>>> Hi!
>>>
>>> Is it ok that onBeforeRender is called twice (1.4.9):
>>>
>>> 1.
>>>        Server.handle(HttpConnection) line: 326
>>>        HttpConnection.handleRequest() line: 534
>>>        HttpConnection$RequestHandler.headerComplete() line: 864
>>>        HttpParser.parseNext() line: 539
>>>
>>>
>>> 2.
>>>        Server.handle(HttpConnection) line: 326
>>>        HttpConnection.handleRequest() line: 534
>>>        HttpConnection$RequestHandler.content(Buffer) line: 879
>>>        HttpParser.parseNext() line: 747
>>>        HttpParser.parseAvailable() line: 218
>>>        HttpConnection.handle() line: 404
>>>
>>>
>>> Is this normal ?
>>>
>>> **
>>> Martin
>>>
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

Re: onBeforeRender called twice

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

Sorry for being imprecise.. anyways, the stacktrace goes all through
to onBeforeRender being called twice. Is this normal or due to some
redirect?

**
Martin

2011/4/25 Martin Grigorov <mg...@apache.org>:
> onBeforRender has nothing to do with Servlet container's stack trace.
>
> On Mon, Apr 25, 2011 at 2:55 PM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
>> Hi!
>>
>> Is it ok that onBeforeRender is called twice (1.4.9):
>>
>> 1.
>>        Server.handle(HttpConnection) line: 326
>>        HttpConnection.handleRequest() line: 534
>>        HttpConnection$RequestHandler.headerComplete() line: 864
>>        HttpParser.parseNext() line: 539
>>
>>
>> 2.
>>        Server.handle(HttpConnection) line: 326
>>        HttpConnection.handleRequest() line: 534
>>        HttpConnection$RequestHandler.content(Buffer) line: 879
>>        HttpParser.parseNext() line: 747
>>        HttpParser.parseAvailable() line: 218
>>        HttpConnection.handle() line: 404
>>
>>
>> Is this normal ?
>>
>> **
>> Martin
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>

Re: onBeforeRender called twice

Posted by Martin Grigorov <mg...@apache.org>.
onBeforRender has nothing to do with Servlet container's stack trace.

On Mon, Apr 25, 2011 at 2:55 PM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> Hi!
>
> Is it ok that onBeforeRender is called twice (1.4.9):
>
> 1.
>        Server.handle(HttpConnection) line: 326
>        HttpConnection.handleRequest() line: 534
>        HttpConnection$RequestHandler.headerComplete() line: 864
>        HttpParser.parseNext() line: 539
>
>
> 2.
>        Server.handle(HttpConnection) line: 326
>        HttpConnection.handleRequest() line: 534
>        HttpConnection$RequestHandler.content(Buffer) line: 879
>        HttpParser.parseNext() line: 747
>        HttpParser.parseAvailable() line: 218
>        HttpConnection.handle() line: 404
>
>
> Is this normal ?
>
> **
> Martin
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com