You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Rüdiger Schulz <ru...@googlemail.com> on 2007/10/18 10:45:11 UTC

ClassCastException with MetaDataEntry

Hello everybody,

after upgrading to the latest trunk, none of my pages render anymore.
The Exception I get is below. Before upgrading, everything worked
fine, so I don't think it's in my code (but you never know).

I'll get back to beta4 for now I guess...

2007-10-18 09:22:40 ERROR: RequestCycle.logRuntimeException -
Exception in rendering component: [MarkupContainer [Component id =
bodyContainer, page =
de.indyphone.logokits.wicket.LogoKitOverviewPage, path =
0:bodyContainer.IndyPage$3, isVisible = true, isVersioned = true]]
org.apache.wicket.WicketRuntimeException: Exception in rendering
component: [MarkupContainer [Component id = bodyContainer, page =
de.indyphone.logokits.wicket.LogoKitOverviewPage, path =
0:bodyContainer.IndyPage$3, isVisible = true, isVersioned = true]]
	at org.apache.wicket.Component.renderComponent(Component.java:2301)
	at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1348)
	at org.apache.wicket.Component.render(Component.java:2113)
	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1234)
	at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1364)
	at org.apache.wicket.Page.onRender(Page.java:1362)
	at org.apache.wicket.Component.render(Component.java:2113)
	at org.apache.wicket.Page.renderPage(Page.java:858)
	at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
	at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
	at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1097)
	at org.apache.wicket.RequestCycle.step(RequestCycle.java:1166)
	at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
	at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
	at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:325)
	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:175)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
	at org.mortbay.jetty.Server.handle(Server.java:313)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.lang.ClassCastException:
org.apache.wicket.MetaDataEntry cannot be cast to
org.apache.wicket.behavior.IBehavior
	at org.apache.wicket.Component.render(Component.java:2130)
	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1234)
	at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1401)
	at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1338)
	at org.apache.wicket.Component.renderComponent(Component.java:2267)
	... 35 more




-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de

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


Re: ClassCastException with MetaDataEntry

Posted by Rüdiger Schulz <ru...@googlemail.com>.
2007/10/18, Johan Compagner <jc...@gmail.com>:
> But everybody that can give us a test case that fails now
> That would be great!
> Because all wicket tests are running fine with the current code
> So our test do have a few holes in this area which we should fix also!

Can't promise anything, these days are so packed already. But maybe
I'll find some time this evening to make a quickstart and/or testcase.


-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de

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


Re: ClassCastException with MetaDataEntry

Posted by Matej Knopp <ma...@gmail.com>.
This should be fixed already in the latest trunk.

-Matej

On 10/18/07, Rüdiger Schulz <ru...@googlemail.com> wrote:
> Hello Johan,
>
> yes, this worked for me. Thanks a lot for such a quick fix!
>
> However, I had to build with maven tests disabled. And there was an
> error on some of my pages, where I use BookmarkablePageLinks with
> parameters:
>
> Caused by: java.lang.NullPointerException
>         at org.apache.wicket.markup.html.link.BookmarkablePageLink.setParameter(BookmarkablePageLink.java:219)
>
> Most probably one of the test cases already caught this; the debugger
> showed that parameters was indeed null. Sorry, can't go anymore into
> this at the moment. And for me, beta4 is working fine for the moment.
>
> --
> greetings from Berlin,
>
> Rüdiger Schulz
>
> www.2rue.de
>
> 2007/10/18, Johan Compagner <jc...@gmail.com>:
> > thx, i fixed it.
> > Please let me know if this first works for you
> >
> > johan
> >
> >
> >
> > On 10/18/07, Rüdiger Schulz <ru...@googlemail.com> wrote:
> > >
> > > 2007/10/18, Johan Compagner <jc...@gmail.com>:
> > > > But everybody that can give us a test case that fails now
> > > > That would be great!
> > > > Because all wicket tests are running fine with the current code
> > > > So our test do have a few holes in this area which we should fix also!
> > >
> > > Ok, a simple test failed very early, I feared I had to reproduce a lot
> > > of my application.
> > >
> > > I created https://issues.apache.org/jira/browse/WICKET-1081 where I
> > > attached a TestCase.
> > >
> > >
> > > --
> > > greetings from Berlin,
> > >
> > > Rüdiger Schulz
> > >
> > > www.2rue.de
> > >
> > > ---------------------------------------------------------------------
> > > 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
>
>

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


Re: ClassCastException with MetaDataEntry

Posted by Rüdiger Schulz <ru...@googlemail.com>.
Hello Johan,

yes, this worked for me. Thanks a lot for such a quick fix!

However, I had to build with maven tests disabled. And there was an
error on some of my pages, where I use BookmarkablePageLinks with
parameters:

Caused by: java.lang.NullPointerException
	at org.apache.wicket.markup.html.link.BookmarkablePageLink.setParameter(BookmarkablePageLink.java:219)

Most probably one of the test cases already caught this; the debugger
showed that parameters was indeed null. Sorry, can't go anymore into
this at the moment. And for me, beta4 is working fine for the moment.

-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de

2007/10/18, Johan Compagner <jc...@gmail.com>:
> thx, i fixed it.
> Please let me know if this first works for you
>
> johan
>
>
>
> On 10/18/07, Rüdiger Schulz <ru...@googlemail.com> wrote:
> >
> > 2007/10/18, Johan Compagner <jc...@gmail.com>:
> > > But everybody that can give us a test case that fails now
> > > That would be great!
> > > Because all wicket tests are running fine with the current code
> > > So our test do have a few holes in this area which we should fix also!
> >
> > Ok, a simple test failed very early, I feared I had to reproduce a lot
> > of my application.
> >
> > I created https://issues.apache.org/jira/browse/WICKET-1081 where I
> > attached a TestCase.
> >
> >
> > --
> > greetings from Berlin,
> >
> > Rüdiger Schulz
> >
> > www.2rue.de
> >
> > ---------------------------------------------------------------------
> > 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: ClassCastException with MetaDataEntry

Posted by Johan Compagner <jc...@gmail.com>.
thx, i fixed it.
Please let me know if this first works for you

johan



On 10/18/07, Rüdiger Schulz <ru...@googlemail.com> wrote:
>
> 2007/10/18, Johan Compagner <jc...@gmail.com>:
> > But everybody that can give us a test case that fails now
> > That would be great!
> > Because all wicket tests are running fine with the current code
> > So our test do have a few holes in this area which we should fix also!
>
> Ok, a simple test failed very early, I feared I had to reproduce a lot
> of my application.
>
> I created https://issues.apache.org/jira/browse/WICKET-1081 where I
> attached a TestCase.
>
>
> --
> greetings from Berlin,
>
> Rüdiger Schulz
>
> www.2rue.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: ClassCastException with MetaDataEntry

Posted by Rüdiger Schulz <ru...@googlemail.com>.
2007/10/18, Johan Compagner <jc...@gmail.com>:
> But everybody that can give us a test case that fails now
> That would be great!
> Because all wicket tests are running fine with the current code
> So our test do have a few holes in this area which we should fix also!

Ok, a simple test failed very early, I feared I had to reproduce a lot
of my application.

I created https://issues.apache.org/jira/browse/WICKET-1081 where I
attached a TestCase.


-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de

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


Re: ClassCastException with MetaDataEntry

Posted by Johan Compagner <jc...@gmail.com>.
But everybody that can give us a test case that fails now
That would be great!
Because all wicket tests are running fine with the current code
So our test do have a few holes in this area which we should fix also!

johan



On 10/18/07, Matej Knopp <ma...@gmail.com> wrote:
>
> Hi, we are experimenting a little with component data representation
> right now in order to improve memory consumption, so the trunk might
> be a little unstable though. But so far I am unable to reproduce your
> exception.
>
> Sorry for inconvenience.
>
> -Matej
>
> On 10/18/07, Rüdiger Schulz <ru...@googlemail.com> wrote:
> > A little more detail:
> >
> > the component having the MetaDataEntry is a Webmarkupcontainer which
> > also has a WicketAjaxIndicatorAppender. Not sure if this is related.
> >
> > --
> > greetings from Berlin,
> >
> > Rüdiger Schulz
> >
> > www.2rue.de
> >
> > ---------------------------------------------------------------------
> > 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: ClassCastException with MetaDataEntry

Posted by Rüdiger Schulz <ru...@googlemail.com>.
Hello Matej,

2007/10/18, Matej Knopp <ma...@gmail.com>:
> Hi, we are experimenting a little with component data representation
> right now in order to improve memory consumption, so the trunk might
> be a little unstable though. But so far I am unable to reproduce your
> exception.
>
> Sorry for inconvenience.

Ok, I'll stay with beta4 for now, no problem. Thanks to maven this is
an easy switch. Trunk not being stable all the time is what it's for
after all. Just a little nerve-wracking when this happens mere hours
before launching a site (more on that later) *laughs manically*

-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de

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


Re: ClassCastException with MetaDataEntry

Posted by Matej Knopp <ma...@gmail.com>.
Hi, we are experimenting a little with component data representation
right now in order to improve memory consumption, so the trunk might
be a little unstable though. But so far I am unable to reproduce your
exception.

Sorry for inconvenience.

-Matej

On 10/18/07, Rüdiger Schulz <ru...@googlemail.com> wrote:
> A little more detail:
>
> the component having the MetaDataEntry is a Webmarkupcontainer which
> also has a WicketAjaxIndicatorAppender. Not sure if this is related.
>
> --
> greetings from Berlin,
>
> Rüdiger Schulz
>
> www.2rue.de
>
> ---------------------------------------------------------------------
> 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: ClassCastException with MetaDataEntry

Posted by Rüdiger Schulz <ru...@googlemail.com>.
A little more detail:

the component having the MetaDataEntry is a Webmarkupcontainer which
also has a WicketAjaxIndicatorAppender. Not sure if this is related.

-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de

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