You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2010/09/28 12:17:24 UTC

Rendering at constructor?

Hi!

How is it possible that this error occurs at page constructor?

Caused by: org.apache.wicket.WicketRuntimeException: Cannot modify
component hierarchy after render phase has started (page version cant
change then anymore)
        at org.apache.wicket.Component.checkHierarchyChange(Component.java:3512)
        at org.apache.wicket.MarkupContainer.remove(MarkupContainer.java:525)
        at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:936)
        at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:142)
        at com.view.AbstractStylePage.addStyleContainer(AbstractStylePage.java:111)
        at com.view.AbstractStylePage.<init>(AbstractStylePage.java:104)
        at com.view.AbstractStylePage.<init>(AbstractStylePage.java:96)
        at wicket.quickstart.AbstractAuthenticationPage.<init>(AbstractAuthenticationPage.java:29)
        at wicket.quickstart.LoginPage.<init>(LoginPage.java:82)


**
Martin

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


Re: Rendering at constructor?

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

Here is the rest of the stacktrace:

     at wicket.quickstart.AbstractAuthenticationPage.<init>(AbstractAuthenticationPage.java:29)
       at wicket.quickstart.LoginPage.<init>(LoginPage.java:82)
       at wicket.quickstart.TakpApplication.getEffectiveLoginPage(TakpApplication.java:2573)
       at com.view.TakpAuthorizationStrategy.onUnauthorizedInstantiation(TakpAuthorizationStrategy.java:144)
       at org.apache.wicket.Application$1.onInstantiation(Application.java:292)
       at org.apache.wicket.Application.notifyComponentInstantiationListeners(Application.java:1039)
       at org.apache.wicket.Component.<init>(Component.java:920)
       at org.apache.wicket.MarkupContainer.<init>(MarkupContainer.java:113)
       at org.apache.wicket.MarkupContainer.<init>(MarkupContainer.java:105)
       at org.apache.wicket.Page.<init>(Page.java:297)
       at org.apache.wicket.markup.html.WebPage.<init>(WebPage.java:233)
       at com.view.TakpWebPage.<init>(TakpWebPage.java:64)
       at com.view.AbstractStylePage.<init>(AbstractStylePage.java:103)
       at com.view.AbstractStylePage.<init>(AbstractStylePage.java:96)
       at com.view.application.MainPage.<init>(MainPage.java:92)
       ... 36 more

**
Martin

2010/9/28 Martin Makundi <ma...@koodaripalvelut.com>:
> Hi!
>
> 1.4.8.
>
> Unfortunately I don't quite know how to reproduce, but it is somehow
> related to redirectrespose/intercept exceptions and possibly also some
> other exceptions.... I will post more info when I get some.
>
> **
> Martin
>
> 2010/9/28 Martin Grigorov <mg...@apache.org>:
>> Which version of Wicket ?
>> Many apps/tests/examples use this and this is first time I see such problem.
>> Can you create a ticket with a quickstart, please.
>>
>> On Tue, Sep 28, 2010 at 12:17 PM, Martin Makundi <
>> martin.makundi@koodaripalvelut.com> wrote:
>>
>>> Hi!
>>>
>>> How is it possible that this error occurs at page constructor?
>>>
>>> Caused by: org.apache.wicket.WicketRuntimeException: Cannot modify
>>> component hierarchy after render phase has started (page version cant
>>> change then anymore)
>>>        at
>>> org.apache.wicket.Component.checkHierarchyChange(Component.java:3512)
>>>        at
>>> org.apache.wicket.MarkupContainer.remove(MarkupContainer.java:525)
>>>        at
>>> org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:936)
>>>        at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:142)
>>>        at
>>> com.view.AbstractStylePage.addStyleContainer(AbstractStylePage.java:111)
>>>        at com.view.AbstractStylePage.<init>(AbstractStylePage.java:104)
>>>        at com.view.AbstractStylePage.<init>(AbstractStylePage.java:96)
>>>        at
>>> wicket.quickstart.AbstractAuthenticationPage.<init>(AbstractAuthenticationPage.java:29)
>>>        at wicket.quickstart.LoginPage.<init>(LoginPage.java:82)
>>>
>>>
>>> **
>>> Martin
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>

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


Re: Rendering at constructor?

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

1.4.8.

Unfortunately I don't quite know how to reproduce, but it is somehow
related to redirectrespose/intercept exceptions and possibly also some
other exceptions.... I will post more info when I get some.

**
Martin

2010/9/28 Martin Grigorov <mg...@apache.org>:
> Which version of Wicket ?
> Many apps/tests/examples use this and this is first time I see such problem.
> Can you create a ticket with a quickstart, please.
>
> On Tue, Sep 28, 2010 at 12:17 PM, Martin Makundi <
> martin.makundi@koodaripalvelut.com> wrote:
>
>> Hi!
>>
>> How is it possible that this error occurs at page constructor?
>>
>> Caused by: org.apache.wicket.WicketRuntimeException: Cannot modify
>> component hierarchy after render phase has started (page version cant
>> change then anymore)
>>        at
>> org.apache.wicket.Component.checkHierarchyChange(Component.java:3512)
>>        at
>> org.apache.wicket.MarkupContainer.remove(MarkupContainer.java:525)
>>        at
>> org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:936)
>>        at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:142)
>>        at
>> com.view.AbstractStylePage.addStyleContainer(AbstractStylePage.java:111)
>>        at com.view.AbstractStylePage.<init>(AbstractStylePage.java:104)
>>        at com.view.AbstractStylePage.<init>(AbstractStylePage.java:96)
>>        at
>> wicket.quickstart.AbstractAuthenticationPage.<init>(AbstractAuthenticationPage.java:29)
>>        at wicket.quickstart.LoginPage.<init>(LoginPage.java:82)
>>
>>
>> **
>> Martin
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

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


Re: Rendering at constructor?

Posted by Martin Grigorov <mg...@apache.org>.
Which version of Wicket ?
Many apps/tests/examples use this and this is first time I see such problem.
Can you create a ticket with a quickstart, please.

On Tue, Sep 28, 2010 at 12:17 PM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:

> Hi!
>
> How is it possible that this error occurs at page constructor?
>
> Caused by: org.apache.wicket.WicketRuntimeException: Cannot modify
> component hierarchy after render phase has started (page version cant
> change then anymore)
>        at
> org.apache.wicket.Component.checkHierarchyChange(Component.java:3512)
>        at
> org.apache.wicket.MarkupContainer.remove(MarkupContainer.java:525)
>        at
> org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:936)
>        at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:142)
>        at
> com.view.AbstractStylePage.addStyleContainer(AbstractStylePage.java:111)
>        at com.view.AbstractStylePage.<init>(AbstractStylePage.java:104)
>        at com.view.AbstractStylePage.<init>(AbstractStylePage.java:96)
>        at
> wicket.quickstart.AbstractAuthenticationPage.<init>(AbstractAuthenticationPage.java:29)
>        at wicket.quickstart.LoginPage.<init>(LoginPage.java:82)
>
>
> **
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>