You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Thomas (JIRA)" <ji...@apache.org> on 2007/06/22 19:46:26 UTC

[jira] Created: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

ReloadingWicketFilter not working with markup inheritance
---------------------------------------------------------

                 Key: WICKET-685
                 URL: https://issues.apache.org/jira/browse/WICKET-685
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.0-beta1
            Reporter: Peter Thomas


This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.

Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.

My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:

=========

2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
[Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
[Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
	at org.apache.wicket.Component.beforeRender(Component.java:846)
	at org.apache.wicket.Page.renderPage(Page.java:885)
	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)

============

Root cause:

org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
at org.apache.wicket.Component.beforeRender(Component.java:846)
at org.apache.wicket.Page.renderPage(Page.java:885)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)

===========

Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.

Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.

If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

Posted by "Peter Thomas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Thomas closed WICKET-685.
-------------------------------


Thanks for all the help.  I use this feature and it is one of the main reasons I am not switching to groovy or the like for the time being.  Huge time saver :)  Thanks again.

> ReloadingWicketFilter not working with markup inheritance
> ---------------------------------------------------------
>
>                 Key: WICKET-685
>                 URL: https://issues.apache.org/jira/browse/WICKET-685
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Peter Thomas
>            Assignee: Jean-Baptiste Quenot
>
> This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.
> Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.
> My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:
> =========
> 2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> 	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
> 	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> 	at org.apache.wicket.Component.beforeRender(Component.java:846)
> 	at org.apache.wicket.Page.renderPage(Page.java:885)
> 	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ============
> Root cause:
> org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
> at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
> at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
> at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
> at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
> at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> at org.apache.wicket.Component.beforeRender(Component.java:846)
> at org.apache.wicket.Page.renderPage(Page.java:885)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ===========
> Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.
> Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.
> If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507667 ] 

Alastair Maw commented on WICKET-685:
-------------------------------------

JBQ: should we make this happen by default?
ReloadingClassLoader.excludePattern("org.springframework.*");

> ReloadingWicketFilter not working with markup inheritance
> ---------------------------------------------------------
>
>                 Key: WICKET-685
>                 URL: https://issues.apache.org/jira/browse/WICKET-685
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Peter Thomas
>            Assignee: Jean-Baptiste Quenot
>
> This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.
> Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.
> My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:
> =========
> 2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> 	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
> 	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> 	at org.apache.wicket.Component.beforeRender(Component.java:846)
> 	at org.apache.wicket.Page.renderPage(Page.java:885)
> 	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ============
> Root cause:
> org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
> at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
> at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
> at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
> at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
> at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> at org.apache.wicket.Component.beforeRender(Component.java:846)
> at org.apache.wicket.Page.renderPage(Page.java:885)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ===========
> Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.
> Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.
> If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

Posted by "Peter Thomas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507462 ] 

Peter Thomas commented on WICKET-685:
-------------------------------------

In the onSubmit of the login page I just tried setResponsePage(DashboardPage.class) instead of continueToOriginalDestination() - still the same problem.

> ReloadingWicketFilter not working with markup inheritance
> ---------------------------------------------------------
>
>                 Key: WICKET-685
>                 URL: https://issues.apache.org/jira/browse/WICKET-685
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Peter Thomas
>
> This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.
> Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.
> My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:
> =========
> 2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> 	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
> 	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> 	at org.apache.wicket.Component.beforeRender(Component.java:846)
> 	at org.apache.wicket.Page.renderPage(Page.java:885)
> 	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ============
> Root cause:
> org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
> at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
> at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
> at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
> at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
> at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> at org.apache.wicket.Component.beforeRender(Component.java:846)
> at org.apache.wicket.Page.renderPage(Page.java:885)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ===========
> Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.
> Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.
> If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

Posted by "Peter Thomas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507569 ] 

Peter Thomas commented on WICKET-685:
-------------------------------------

Ok, updated to latest snapshot.  Here is the wicket error page snip:

============

WicketMessage: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
[Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]

Root cause:

org.apache.wicket.WicketRuntimeException: Parameter clazz must be an instance of info.jtrac.wicket.DashboardPage, but is a info.jtrac.wicket.BasePage
at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:242)
at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:387)
at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:460)
at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:280)
at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
at org.apache.wicket.Component.beforeRender(Component.java:846)
at org.apache.wicket.Page.renderPage(Page.java:885)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)

============ log4j log with DEBUG on for org.apache.wicket ==================

2007-06-23 12:36:46,140 [btpool0-7] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
2007-06-23 12:36:46,171 [btpool0-7] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
2007-06-23 12:36:46,171 [btpool0-7] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
2007-06-23 12:36:46,171 [btpool0-7] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
2007-06-23 12:36:46,171 [btpool0-7] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
[Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
[Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
	at org.apache.wicket.Component.beforeRender(Component.java:846)
	at org.apache.wicket.Page.renderPage(Page.java:885)
	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)

=============

Here is the source code of my ReloadingWicketFilter:

http://fisheye3.cenqua.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/JtracReloadingWicketFilter.java?r=1017

Just now, I tried one more thing, I removed the 2 excludes for my custom Application and Session, then everything works fine until somehere something tries to cast getApplication() and there it fails with a classcast exception which is why I had added these two lines in the first place.

Things have been working with the filter as given for the last 2 or 3 months now.

> ReloadingWicketFilter not working with markup inheritance
> ---------------------------------------------------------
>
>                 Key: WICKET-685
>                 URL: https://issues.apache.org/jira/browse/WICKET-685
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Peter Thomas
>            Assignee: Jean-Baptiste Quenot
>
> This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.
> Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.
> My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:
> =========
> 2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> 	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
> 	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> 	at org.apache.wicket.Component.beforeRender(Component.java:846)
> 	at org.apache.wicket.Page.renderPage(Page.java:885)
> 	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ============
> Root cause:
> org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
> at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
> at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
> at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
> at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
> at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> at org.apache.wicket.Component.beforeRender(Component.java:846)
> at org.apache.wicket.Page.renderPage(Page.java:885)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ===========
> Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.
> Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.
> If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Quenot reassigned WICKET-685:
-------------------------------------------

    Assignee: Jean-Baptiste Quenot

> ReloadingWicketFilter not working with markup inheritance
> ---------------------------------------------------------
>
>                 Key: WICKET-685
>                 URL: https://issues.apache.org/jira/browse/WICKET-685
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Peter Thomas
>            Assignee: Jean-Baptiste Quenot
>
> This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.
> Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.
> My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:
> =========
> 2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> 	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
> 	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> 	at org.apache.wicket.Component.beforeRender(Component.java:846)
> 	at org.apache.wicket.Page.renderPage(Page.java:885)
> 	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ============
> Root cause:
> org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
> at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
> at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
> at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
> at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
> at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> at org.apache.wicket.Component.beforeRender(Component.java:846)
> at org.apache.wicket.Page.renderPage(Page.java:885)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ===========
> Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.
> Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.
> If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507497 ] 

Jean-Baptiste Quenot commented on WICKET-685:
---------------------------------------------

Can you please update your Wicket snapshot as it should have better error reporting, and provide the full stacktrace?  Do you use a component manager like Spring?  Can you include the code of your custom ReloadingWicketFilter with the included/excluded patterns?

Thanks in advance.

> ReloadingWicketFilter not working with markup inheritance
> ---------------------------------------------------------
>
>                 Key: WICKET-685
>                 URL: https://issues.apache.org/jira/browse/WICKET-685
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Peter Thomas
>
> This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.
> Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.
> My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:
> =========
> 2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> 	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
> 	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> 	at org.apache.wicket.Component.beforeRender(Component.java:846)
> 	at org.apache.wicket.Page.renderPage(Page.java:885)
> 	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ============
> Root cause:
> org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
> at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
> at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
> at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
> at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
> at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> at org.apache.wicket.Component.beforeRender(Component.java:846)
> at org.apache.wicket.Page.renderPage(Page.java:885)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ===========
> Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.
> Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.
> If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

Posted by "Peter Thomas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507571 ] 

Peter Thomas commented on WICKET-685:
-------------------------------------

Ok great, now things are working fine with this, I switched on the Spring exclude:

        ReloadingClassLoader.includePattern("info.jtrac.wicket.*");
        ReloadingClassLoader.includePattern("info.jtrac.wicket.yui.*");
        // ReloadingClassLoader.excludePattern("info.jtrac.wicket.JtracApplication");
        // ReloadingClassLoader.excludePattern("info.jtrac.wicket.JtracSession");
        ReloadingClassLoader.excludePattern("org.springframework.*"); 

So apologies, yes I have a couple of Spring managed objects in my Application and Session.  What threw me off was that my earlier config was working for a long time

Obviously I had experimented with various exclude settings and was aware of the documentation saying you should exclude Spring, but things were working without having to do that so I didn't.  Until now.  

I guess you can close this issue?  But curious to know what changed.

> ReloadingWicketFilter not working with markup inheritance
> ---------------------------------------------------------
>
>                 Key: WICKET-685
>                 URL: https://issues.apache.org/jira/browse/WICKET-685
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Peter Thomas
>            Assignee: Jean-Baptiste Quenot
>
> This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.
> Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.
> My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:
> =========
> 2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> 	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
> 	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> 	at org.apache.wicket.Component.beforeRender(Component.java:846)
> 	at org.apache.wicket.Page.renderPage(Page.java:885)
> 	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ============
> Root cause:
> org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
> at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
> at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
> at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
> at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
> at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> at org.apache.wicket.Component.beforeRender(Component.java:846)
> at org.apache.wicket.Page.renderPage(Page.java:885)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ===========
> Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.
> Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.
> If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507674 ] 

Jean-Baptiste Quenot commented on WICKET-685:
---------------------------------------------

As I said in the reply to Peter, excluding org.springframework.* does not make sense as it is never supposed to be included in the first place.

> ReloadingWicketFilter not working with markup inheritance
> ---------------------------------------------------------
>
>                 Key: WICKET-685
>                 URL: https://issues.apache.org/jira/browse/WICKET-685
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Peter Thomas
>            Assignee: Jean-Baptiste Quenot
>
> This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.
> Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.
> My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:
> =========
> 2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> 	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
> 	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> 	at org.apache.wicket.Component.beforeRender(Component.java:846)
> 	at org.apache.wicket.Page.renderPage(Page.java:885)
> 	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ============
> Root cause:
> org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
> at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
> at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
> at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
> at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
> at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> at org.apache.wicket.Component.beforeRender(Component.java:846)
> at org.apache.wicket.Page.renderPage(Page.java:885)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ===========
> Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.
> Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.
> If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-685) ReloadingWicketFilter not working with markup inheritance

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Quenot resolved WICKET-685.
-----------------------------------------

    Resolution: Invalid

It's a bit tricky to make the reloading work with Spring.  You have to define class naming conventions and enforce them.  The main idea behind all of this, is that you will come across problems if the same class is loaded in two different classloaders, one is the parent classloader, and the other is the reloading classloader.

In your include/exclude patterns, I don't see the point of excluding "org.springframework.*", this should not be needed.  But of course JtracApplication and JtracSession *must* be included, otherwise you won't be able to use them successfully in the Wicket components, as you will have two copies of the class in two different classloaders.

And about Wicket making your usecase fail suddenly is because the internal handling of classes has slightly changed recently, but what you encounter is just a side effect of the misconfigured include/exclude patterns in the first place.

Glad it works now and that you use this feature successfully.

> ReloadingWicketFilter not working with markup inheritance
> ---------------------------------------------------------
>
>                 Key: WICKET-685
>                 URL: https://issues.apache.org/jira/browse/WICKET-685
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>            Reporter: Peter Thomas
>            Assignee: Jean-Baptiste Quenot
>
> This is happening for latest snapshot (2007-06-22).  Last time I refreshed from Maven was 2007-06-06 when things were working fine.
> Problem occurs when I use the ReloadingWicketFilter, does not matter if in Wicket development mode or not.
> My login page is not using markup inheritance, it works fine.  But after login success, next page (home page) causes this error:
> =========
> 2007-06-22 22:46:15,531 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\BasePage.class
> 2007-06-22 22:46:15,562 [btpool0-6] DEBUG [org.apache.wicket.application.ReloadingClassLoader] - clzLocation=/E:/peter/jtrac-trunk/jtrac/target/jtrac/WEB-INF/classes/info/jtrac/wicket/DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] INFO [org.apache.wicket.application.ReloadingClassLoader] - Watching changes of class E:\peter\jtrac-trunk\jtrac\target\jtrac\WEB-INF\classes\info\jtrac\wicket\DashboardPage.class
> 2007-06-22 22:46:15,562 [btpool0-6] ERROR [org.apache.wicket.RequestCycle] - Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried:
> [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
> 	at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
> 	at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> 	at org.apache.wicket.Component.beforeRender(Component.java:846)
> 	at org.apache.wicket.Page.renderPage(Page.java:885)
> 	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ============
> Root cause:
> org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
> at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
> at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
> at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
> at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
> at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
> at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
> at org.apache.wicket.Component.beforeRender(Component.java:846)
> at org.apache.wicket.Page.renderPage(Page.java:885)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
> ===========
> Couple of other points, if I now type in the URL of another page which is bookmarkable, that works and from there if I go to the home page things are fine.  Looks like now the class + markup gets cached etc.
> Another thing is if in my extension of ReloadingWicketFilter I exclude the class that is the base page for markup inheritance, things start working but I get a different class conflict error somewhere deep in the navigation and component hierarchy, let me know if you need me to send the lof for this also.
> If this is of any relevance, I am using a custom AuthorizationStrategy - so that is how the login page comes up in the first place: throw new RestartResponseAtInterceptPageException(LoginPage.class) - and then from Login page I do continueToOriginalDestination() - maybe this has something to do with it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.