You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ernesto Reinaldo Barreiro <re...@gmail.com> on 2016/05/04 10:27:54 UTC

weird "Unable to find component with id"

Hi,

Or a customers production server this happens sometimes..

===================================================
2016-05-03 19:36:15,936 ERROR
org.apache.wicket.DefaultExceptionMapper: 170 [req:
I7Ax7LCI5L9 p: XwklMo8cZ3X][acc: anonymous] - Unexpected error occurred
Unable to find component with id 'main' in
[TransparentWebMarkupContainer [Component
id = wicket_extend8]]
Expected: 'wicket_child7:wicket_extend8:main'.
Found with similar names: 'header:loginForm:loginForm:email'
MarkupStream: [markup =
file:/var/lib/tomcat8/webapps/.../WEB-INF/classes/...../ReplyToProjectRequestPage.html
<file:///var/lib/tomcat8/webapps/gulp2/WEB-INF/classes/de/gulp/ui/pages/profile/token/ReplyToProjectRequestPage.html>

<wicket:extend>
<div class="row">
<div class="small-0 xlarge-3 column">
</div>
<div class="small-12 xlarge-9 column">
<div wicket:id="main"></div>
</div>
</div>
</wicket:extend>,  index = 2, current = '<div wicket:id="main">' (line 0,
column 0)]
at
org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:526)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1438)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at
org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2536)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2366)
at org.apache.wicket.Component.render(Component.java:2294)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
=====================================

I have tried to reproduce this locally in "development" and "production"
modes with no success. Are there any known issues that can cause this? Any
leads would be appreciated.


-- 
Regards - Ernesto Reinaldo Barreiro

Re: weird "Unable to find component with id"

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi Martin,

Thanks for your answer.

On Thu, May 5, 2016 at 8:36 AM, Martin Grigorov <mg...@apache.org>
wrote:

> Hi Ernesto,
>
> Does this page use variations/style, e.g.
> ReplyToProjectRequestPage_custom.html
> ?
>

No there is only ReplyToProjectRequestPage.html: that was one of the first
things I checked. It's weird because:

1- There is no business related exception and I looked at wicket code and
nothing seems to be catching/swallowing any exceptions. It looks as if for
some weird reason wicket is at that moment not able find "main" on the
markup associated to page.
2- This page is called around 500/600 times per day and in two week this
happened 16 times. So it must be some extreme edge case... (e.g. first time
after a redeployment?)

Additional info:

1- On March 14th we jumped from 6.20.0 to 6.22.0. This feature was "there"
but was not activated.
2- On May 4th those errors started to happen (and around the same time
feature was activated).

So we don't know for sure if this is 6.22.0 related or not. I was looking
at changes from 6.20.0 to 6.22.0 and at first sight I could no spot
anything suspicious.

Anyway, we have migrated project to 7.3 and we probably will start using it
next week. I will report back any issues I find :-)

Thanks again!

-- 
Regards - Ernesto Reinaldo Barreiro

Re: weird "Unable to find component with id"

Posted by Martin Grigorov <mg...@apache.org>.
Hi Ernesto,

Does this page use variations/style, e.g. ReplyToProjectRequestPage_custom.html
?
It could be that some user uses this custom variation and you test with the
default version.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, May 4, 2016 at 12:27 PM, Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> Hi,
>
> Or a customers production server this happens sometimes..
>
> ===================================================
> 2016-05-03 19:36:15,936 ERROR
> org.apache.wicket.DefaultExceptionMapper: 170 [req:
> I7Ax7LCI5L9 p: XwklMo8cZ3X][acc: anonymous] - Unexpected error occurred
> Unable to find component with id 'main' in
> [TransparentWebMarkupContainer [Component
> id = wicket_extend8]]
> Expected: 'wicket_child7:wicket_extend8:main'.
> Found with similar names: 'header:loginForm:loginForm:email'
> MarkupStream: [markup =
>
> file:/var/lib/tomcat8/webapps/.../WEB-INF/classes/...../ReplyToProjectRequestPage.html
>
> <file:///var/lib/tomcat8/webapps/gulp2/WEB-INF/classes/de/gulp/ui/pages/profile/token/ReplyToProjectRequestPage.html>
>
> <wicket:extend>
> <div class="row">
> <div class="small-0 xlarge-3 column">
> </div>
> <div class="small-12 xlarge-9 column">
> <div wicket:id="main"></div>
> </div>
> </div>
> </wicket:extend>,  index = 2, current = '<div wicket:id="main">' (line 0,
> column 0)]
> at
>
> org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:526)
> at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1438)
> at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
> at
>
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
> at
>
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
> at
>
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2536)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
> at org.apache.wicket.Component.internalRender(Component.java:2366)
> at org.apache.wicket.Component.render(Component.java:2294)
> at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
> at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
> =====================================
>
> I have tried to reproduce this locally in "development" and "production"
> modes with no success. Are there any known issues that can cause this? Any
> leads would be appreciated.
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>

Re: weird "Unable to find component with id"

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi Thorsten,

Thanks for your comments. Weird thing is it only happens rarely in
production. I have tried to reproduce this locally simulating random user
access with no success.

On Wed, May 4, 2016 at 7:11 PM, Thorsten Schöning <ts...@am-soft.de>
wrote:

> Guten Tag Ernesto Reinaldo Barreiro,
> am Mittwoch, 4. Mai 2016 um 12:27 schrieben Sie:
>
> > I have tried to reproduce this locally in "development" and "production"
> > modes with no success. Are there any known issues that can cause this?
> Any
> > leads would be appreciated.
>
> I often have problems with an error message like yours, not with the
> strange ids though, during development, if I e.g. change markup and
> just reload a formerly working page in the browser instead of
> requesting a new and/or restarting Tomcat.
>
> So if your customer is not changing markup, he maybe has customers
> accessing old versions of pages referencing things in markup which
> don't exist anymore because of upgrades and such.
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: Thorsten.Schoening@AM-SoFT.de
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro

Re: weird "Unable to find component with id"

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Ernesto Reinaldo Barreiro,
am Mittwoch, 4. Mai 2016 um 12:27 schrieben Sie:

> I have tried to reproduce this locally in "development" and "production"
> modes with no success. Are there any known issues that can cause this? Any
> leads would be appreciated.

I often have problems with an error message like yours, not with the
strange ids though, during development, if I e.g. change markup and
just reload a formerly working page in the browser instead of
requesting a new and/or restarting Tomcat.

So if your customer is not changing markup, he maybe has customers
accessing old versions of pages referencing things in markup which
don't exist anymore because of upgrades and such.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


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