Re: Random exception at ResourceListenerInterface

2009-04-23 Thread Daniel Fernandez
Hello Francisco, I don't think the issue is exactly the same, as I am always getting "interface" URLs, the "good" ones... but it might be related, as I am also having component + resource listener on the same page (though I have no header contributor). Regards, Daniel. 2009/4/23 francisco treac

Re: Random exception at ResourceListenerInterface

2009-04-23 Thread francisco treacy
I don't think it's the same issue, but I had some trouble with loading a Flash stream and IResourceListener https://issues.apache.org/jira/browse/WICKET-2204 Francisco 2009/4/23 Daniel Fernandez : > By the way, in case this gives you more information, my "DataPanel" is > very similar to the "Ope

Re: Random exception at ResourceListenerInterface

2009-04-23 Thread Daniel Fernandez
By the way, in case this gives you more information, my "DataPanel" is very similar to the "OpenFlashChart" Panel class defined in http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html, as in fact my flash object is Open Flash Chart (I am loading many charts in the same page in an asynchr

Re: Random exception at ResourceListenerInterface

2009-04-23 Thread Daniel Fernandez
Thank you again for your time, Igor. Your explanation makes sense by itself, but it is not my problem, I'm afraid... this thing can happen to me even the first time I load the page, without reloading at all. I investigated deeper and I realised that what was happening was that, when the server re

Re: Random exception at ResourceListenerInterface

2009-04-22 Thread Igor Vaynberg
browsers are asynchronous, so you might have a race codition. eg browser requests the data url and you press the refresh button, so now there are two urls in the queue: the data and the page. if page is processed first then the data url will fail because when the page is first constructed you have

Re: Random exception at ResourceListenerInterface

2009-04-22 Thread Daniel Fernandez
Thanks for your answer, Igor. Now I know what is happening more in detail. It is not easy to explain, sorry for the long text: I have: - DataPanel: a panel with data I want to show. - LoadingPanel: a panel which just shows a "loading..." image. - PanelLoader: a Panel with an inner panel

Re: Random exception at ResourceListenerInterface

2009-04-22 Thread Igor Vaynberg
why dont you set a breakpoint for classcastexception and see what it is trying to cast to what. -igor On Wed, Apr 22, 2009 at 3:52 AM, Daniel Fernandez wrote: > Hello, > > I have a page which makes quite a heavy use of an > AbstractAjaxTimerBehavior for retrieving the content of some Panels > (a

Random exception at ResourceListenerInterface

2009-04-22 Thread Daniel Fernandez
Hello, I have a page which makes quite a heavy use of an AbstractAjaxTimerBehavior for retrieving the content of some Panels (and stops itself after the content is ready, like a sort of "polling") and I am getting a very strange exception which only seems to appear randomly: - 2009-