This problem is solved. I was smart enough to use setResponsePage in
logic built into onBeforeRender.

Why onBeforeRender? It's a wizard panel whose content changes on every
render and when the wizard finally ends, there was a setResponsePage.

Fix?: use throw new RestartResponseException(NewPage.class);

**
Martin

2009/7/18 Martin Makundi <[email protected]>:
> Hi!
>
>> You could try setting step debugging on your IDE and step through your code.
>
> Production code again... hindsight.
>
>> However, this type of error is not specific to wicket. Just the other day I 
>> was
>>  securing my site with Acegi and caused this to happen when I secured all
>>  pages, including my login.htm page - so, when Acegi noticed the unsecure
>>  request for a page, it redirected to the login.htm page, but that was 
>> re-directing
>> too.
>
> I will investigate this more on our test server.. If I can get it to
> repeat I will make a jira with quickstart (if it's not just my fault
> ;).
>
> **
> Martin
>
>
>> ----------------------------------------
>>> Date: Sat, 18 Jul 2009 07:58:26 +0300
>>> Subject: Re: What already redirecting error?
>>> From: [email protected]
>>> To: [email protected]
>>>
>>> None lead to my code, that's my point. The only thing I have used is
>>> setResponsePage().
>>>
>>> **
>>> Martin
>>>
>>> 2009/7/17 Igor Vaynberg :
>>>> pull the call hierarchy on
>>>> org.apache.wicket.protocol.http.BufferedWebResponse.redirect and see
>>>> what paths lead to your code.
>>>>
>>>> -igor
>>>>
>>>> On Fri, Jul 17, 2009 at 11:05 AM, Martin
>>>> Makundi wrote:
>>>>> I don't have a clue where that occured...
>>>>>
>>>>> **
>>>>> Martin
>>>>>
>>>>> 2009/7/17 Alex Objelean :
>>>>>>
>>>>>> Show us your code.
>>>>>>
>>>>>> Alex Objelean
>>>>>>
>>>>>>
>>>>>> MartinM wrote:
>>>>>>>
>>>>>>> At least I do not know of any such redirects...
>>>>>>>
>>>>>>> **
>>>>>>> Martin
>>>>>>>
>>>>>>> 2009/7/17 Igor Vaynberg :
>>>>>>>> you are triggering a redirect after something else has already done so.
>>>>>>>>
>>>>>>>> -igor
>>>>>>>>
>>>>>>>> On Fri, Jul 17, 2009 at 1:38 AM, Martin
>>>>>>>> Makundi wrote:
>>>>>>>>> Hi!
>>>>>>>>>
>>>>>>>>> What is this error and how can I avoid it? Don't even know why it 
>>>>>>>>> comes:
>>>>>>>>>
>>>>>>>>> 2009-07-17 11:43:22,804 181242389 [btpool0-503] ERROR RequestCycle  -
>>>>>>>>> Already redirecting to '?wicket:interface=:0:9:::'. Cannot redirect
>>>>>>>>> more than once
>>>>>>>>> org.apache.wicket.WicketRuntimeException: Already redirecting to
>>>>>>>>> '?wicket:interface=:0:9:::'. Cannot redirect more than once
>>>>>>>>>       at
>>>>>>>>> org.apache.wicket.protocol.http.BufferedWebResponse.redirect(BufferedWebResponse.java:101)
>>>>>>>>>       at
>>>>>>>>> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:257)
>>>>>>>>>       at
>>>>>>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>>>>>>>>>       at 
>>>>>>>>> org.apache.wicket.RequestCycle.respond(RequestCycle.java:1258)
>>>>>>>>>       at org.apache.wicket.RequestCycle.step(RequestCycle.java:1325)
>>>>>>>>>       at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1419)
>>>>>>>>>       at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
>>>>>>>>>       at
>>>>>>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456)
>>>>>>>>>       at
>>>>>>>>> org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160)
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe, e-mail: [email protected]
>>>>>>>>> For additional commands, e-mail: [email protected]
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: [email protected]
>>>>>>>> For additional commands, e-mail: [email protected]
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: [email protected]
>>>>>>> For additional commands, e-mail: [email protected]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context: 
>>>>>> http://www.nabble.com/What-already-redirecting-error--tp24530668p24538774.html
>>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [email protected]
>>>>>> For additional commands, e-mail: [email protected]
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [email protected]
>>>>> For additional commands, e-mail: [email protected]
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>> _________________________________________________________________
>> Windows Live™ Hotmail®: Search, add, and share the web’s latest sports 
>> videos. Check it out.
>> http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_videos_072009&cat=sports
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to