Unexpected RuntimeException when trying a project with a DataTable

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Unexpected RuntimeException when trying a project with a DataTable

aabfattah
Hello , I copied some code from a tutorial about creating a simple datatable from here
https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html

Also , I tried the example in repeaters section in wicketstuff website

But I get the same exact exception in the 2 projects . Can anybody help as I am new to wicket ?

Last cause: org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
WicketMessage: Can't instantiate page using constructor public foo.DataTablePage()

StackTrace:

Root cause:

java.lang.NoSuchMethodError: org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
     at org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
     at org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
     at org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
     at org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
     at org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
     at org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
     at foo.DataTablePage.<init>(DataTablePage.java:22)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
     at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
     at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
     at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
     at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
     at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
     at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
     at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
     at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
     at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
     at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
     at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
     at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
     at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
     at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
     at org.eclipse.jetty.server.Server.handle(Server.java:346)
     at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
     at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
     at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
     at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
     at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
     at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
     at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
     at java.lang.Thread.run(Unknown Source)

Complete stack:

org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public foo.DataTablePage()
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
     at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
     at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
     at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
     at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
     at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
     at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
     at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
     at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
     at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
     at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
     at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
     at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)

java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
     at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
     at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
     at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
     at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
     at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
     at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
     at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
     at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
     at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
     at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
     at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
     at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
Reply | Threaded
Open this post in threaded view
|

Re: Unexpected RuntimeException when trying a project with a DataTable

Dan Retzlaff
It looks like you have multiple versions of the Wicket JARs on your
classpath. Since that function was removed in
https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that your
extensions JAR is older than your main wicket JAR.

Hope that helps,
Dan

On Thu, Aug 18, 2011 at 5:47 PM, aabfattah <
[hidden email]> wrote:

> Hello , I copied some code from a tutorial about creating a simple
> datatable
> from here
> https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
>
> Also , I tried the example in repeaters section in wicketstuff website
>
> But I get the same exact exception in the 2 projects . Can anybody help as
> I
> am new to wicket ?
>
> Last cause:
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> WicketMessage: Can't instantiate page using constructor public
> foo.DataTablePage()
>
> StackTrace:
>
> Root cause:
>
> java.lang.NoSuchMethodError:
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
>     at foo.DataTablePage.<init>(DataTablePage.java:22)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>     at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>     at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
>     at
>
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
>     at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>     at org.eclipse.jetty.server.Server.handle(Server.java:346)
>     at
>
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
>     at
>
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
>     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
>     at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
>     at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
>     at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
>     at java.lang.Thread.run(Unknown Source)
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Can't instantiate page using
> constructor public foo.DataTablePage()
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754012.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Unexpected RuntimeException when trying a project with a DataTable

aabfattah
They both have the same version 1.5RC-1

On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] <[hidden email]> wrote:
It looks like you have multiple versions of the Wicket JARs on your
classpath. Since that function was removed in
https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that your
extensions JAR is older than your main wicket JAR.

Hope that helps,
Dan

On Thu, Aug 18, 2011 at 5:47 PM, aabfattah <
[hidden email]> wrote:

> Hello , I copied some code from a tutorial about creating a simple
> datatable
> from here
> https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
>
> Also , I tried the example in repeaters section in wicketstuff website
>
> But I get the same exact exception in the 2 projects . Can anybody help as
> I
> am new to wicket ?
>
> Last cause:
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> WicketMessage: Can't instantiate page using constructor public
> foo.DataTablePage()
>
> StackTrace:
>
> Root cause:
>
> java.lang.NoSuchMethodError:
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
>     at foo.DataTablePage.<init>(DataTablePage.java:22)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>     at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>     at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
>     at
>
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
>     at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>     at org.eclipse.jetty.server.Server.handle(Server.java:346)
>     at
>
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
>     at
>
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
>     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
>     at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
>     at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
>     at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
>     at java.lang.Thread.run(Unknown Source)
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Can't instantiate page using
> constructor public foo.DataTablePage()
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754012.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



To unsubscribe from Unexpected RuntimeException when trying a project with a DataTable, click here.



--
Ahmed Abdelfattah


Reply | Threaded
Open this post in threaded view
|

Re: Unexpected RuntimeException when trying a project with a DataTable

aabfattah
In reply to this post by Dan Retzlaff
Hmm.... wait they are different versions . I fixed that but now I get a compile error !

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project mainpage2: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.

On 19 August 2011 09:30, Ahmed Abdelfattah <[hidden email]> wrote:
They both have the same version 1.5RC-1

On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] <[hidden email]> wrote:
It looks like you have multiple versions of the Wicket JARs on your
classpath. Since that function was removed in
https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that your
extensions JAR is older than your main wicket JAR.

Hope that helps,
Dan

On Thu, Aug 18, 2011 at 5:47 PM, aabfattah <
[hidden email]> wrote:

> Hello , I copied some code from a tutorial about creating a simple
> datatable
> from here
> https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
>
> Also , I tried the example in repeaters section in wicketstuff website
>
> But I get the same exact exception in the 2 projects . Can anybody help as
> I
> am new to wicket ?
>
> Last cause:
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> WicketMessage: Can't instantiate page using constructor public
> foo.DataTablePage()
>
> StackTrace:
>
> Root cause:
>
> java.lang.NoSuchMethodError:
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
>     at foo.DataTablePage.<init>(DataTablePage.java:22)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>     at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>     at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
>     at
>
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
>     at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>     at org.eclipse.jetty.server.Server.handle(Server.java:346)
>     at
>
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
>     at
>
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
>     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
>     at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
>     at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
>     at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
>     at java.lang.Thread.run(Unknown Source)
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Can't instantiate page using
> constructor public foo.DataTablePage()
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754012.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



To unsubscribe from Unexpected RuntimeException when trying a project with a DataTable, click here.



--
Ahmed Abdelfattah





--
Ahmed Abdelfattah


Reply | Threaded
Open this post in threaded view
|

Re: Unexpected RuntimeException when trying a project with a DataTable

aabfattah
In reply to this post by Dan Retzlaff
Sorry for posting a lot , I just made a new project to work around the problem but now I get an exception and that's seem a bug from the code

Unexpected RuntimeException

Last cause: null
WicketMessage: Error attaching this container for rendering: [WebMarkupContainer [Component id = body]]

Stacktrace

Root cause:

java.lang.NullPointerException
at com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:21)
at com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:1)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at com.ahmed.task.main3.UserProvider.iterator(UserProvider.java:57)
at org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.<init>(DataViewBase.java:109)
at org.apache.wicket.markup.repeater.data.DataViewBase.getItemModels(DataViewBase.java:76)
at org.apache.wicket.markup.repeater.AbstractPageableView.getItemModels(AbstractPageableView.java:101)
at org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:93)
at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
at org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:115)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
at org.apache.wicket.Component.beforeRender(Component.java:1097)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
at org.apache.wicket.Component.beforeRender(Component.java:1097)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
at org.apache.wicket.Component.beforeRender(Component.java:1097)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
at org.apache.wicket.Page.onBeforeRender(Page.java:848)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
at org.apache.wicket.Component.beforeRender(Component.java:1097)
at org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
at org.apache.wicket.Component.render(Component.java:2338)
at org.apache.wicket.Page.renderPage(Page.java:1060)
at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
at java.lang.Thread.run(Unknown Source)

Complete stack:

org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [WebMarkupContainer [Component id = body]]
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1758)
at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
at org.apache.wicket.Component.beforeRender(Component.java:1097)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
at org.apache.wicket.Component.beforeRender(Component.java:1097)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
at org.apache.wicket.Page.onBeforeRender(Page.java:848)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
at org.apache.wicket.Component.beforeRender(Component.java:1097)
at org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
at org.apache.wicket.Component.render(Component.java:2338)
at org.apache.wicket.Page.renderPage(Page.java:1060)
at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)



On 19 August 2011 09:55, Ahmed Abdelfattah <[hidden email]> wrote:
Hmm.... wait they are different versions . I fixed that but now I get a compile error !

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project mainpage2: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.

On 19 August 2011 09:30, Ahmed Abdelfattah <[hidden email]> wrote:
They both have the same version 1.5RC-1

On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] <[hidden email]> wrote:
It looks like you have multiple versions of the Wicket JARs on your
classpath. Since that function was removed in
https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that your
extensions JAR is older than your main wicket JAR.

Hope that helps,
Dan

On Thu, Aug 18, 2011 at 5:47 PM, aabfattah <
[hidden email]> wrote:

> Hello , I copied some code from a tutorial about creating a simple
> datatable
> from here
> https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
>
> Also , I tried the example in repeaters section in wicketstuff website
>
> But I get the same exact exception in the 2 projects . Can anybody help as
> I
> am new to wicket ?
>
> Last cause:
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> WicketMessage: Can't instantiate page using constructor public
> foo.DataTablePage()
>
> StackTrace:
>
> Root cause:
>
> java.lang.NoSuchMethodError:
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
>     at
>
> org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
>     at foo.DataTablePage.<init>(DataTablePage.java:22)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>     at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>     at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
>     at
>
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
>     at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>     at org.eclipse.jetty.server.Server.handle(Server.java:346)
>     at
>
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
>     at
>
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
>     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
>     at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
>     at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
>     at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
>     at java.lang.Thread.run(Unknown Source)
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Can't instantiate page using
> constructor public foo.DataTablePage()
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>     at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>     at
>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>     at
>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>     at
>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754012.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



To unsubscribe from Unexpected RuntimeException when trying a project with a DataTable, click here.



--
Ahmed Abdelfattah





--
Ahmed Abdelfattah





--
Ahmed Abdelfattah


Reply | Threaded
Open this post in threaded view
|

Re: Unexpected RuntimeException when trying a project with a DataTable

Dan Retzlaff
Hi Ahmed,

I recommend running Wicket in an IDE with a debugger and stepping through
your code. Personally I deploy my Wicket applications into an Apache Tomcat
server set up within Eclipse. There are many other servlet containers and
IDEs that will work though.

Dan

On Fri, Aug 19, 2011 at 1:16 AM, aabfattah <
[hidden email]> wrote:

> Sorry for posting a lot , I just made a new project to work around the
> problem but now I get an exception and that's seem a *bug from the code*
>
> Unexpected RuntimeException
>
> Last cause: null
> WicketMessage: Error attaching this container for rendering:
> [WebMarkupContainer [Component id = body]]
>
> Stacktrace
>
> Root cause:
>
> java.lang.NullPointerException
>     at
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:21)
>     at
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:1)
>     at java.util.Arrays.mergeSort(Unknown Source)
>     at java.util.Arrays.sort(Unknown Source)
>     at java.util.Collections.sort(Unknown Source)
>     at com.ahmed.task.main3.UserProvider.iterator(UserProvider.java:57)
>     at
> org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.<init>(DataViewBase.java:109)
>     at
> org.apache.wicket.markup.repeater.data.DataViewBase.getItemModels(DataViewBase.java:76)
>     at
> org.apache.wicket.markup.repeater.AbstractPageableView.getItemModels(AbstractPageableView.java:101)
>     at
> org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:93)
>     at
> org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
>     at
> org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:115)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
>     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
>     at org.apache.wicket.Component.render(Component.java:2338)
>     at org.apache.wicket.Page.renderPage(Page.java:1060)
>      at
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>     at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>     at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
>     at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>     at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
>     at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
>     at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
>     at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
>     at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
>     at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>     at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
>     at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
>     at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>     at org.eclipse.jetty.server.Server.handle(Server.java:346)
>     at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
>     at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
>     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
>     at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
>     at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
>     at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
>     at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
>     at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
>     at java.lang.Thread.run(Unknown Source)
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Error attaching this
> container for rendering: [WebMarkupContainer [Component id = body]]
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1758)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
>     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
>     at org.apache.wicket.Component.render(Component.java:2338)
>     at org.apache.wicket.Page.renderPage(Page.java:1060)
>      at
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
>
>
> On 19 August 2011 09:55, Ahmed Abdelfattah <
> [hidden email]> wrote:
>
> > Hmm.... wait they are different versions . I fixed that but now I get a
> > compile error !
> >
> > Failed to execute goal
> > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> > (default-compile) on project mainpage2: Compilation failure
> > [ERROR] Unable to locate the Javac Compiler in:
> > [ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
> > [ERROR] Please ensure you are using JDK 1.4 or above and
> > [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
> > [ERROR] In most cases you can change the location of your Java
> > [ERROR] installation by setting the JAVA_HOME environment variable.
> >
> > On 19 August 2011 09:30, Ahmed Abdelfattah <
> > [hidden email]> wrote:
> >
> >> They both have the same version 1.5RC-1
> >>
> >> On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] <
> >> [hidden email]> wrote:
> >>
> >>> It looks like you have multiple versions of the Wicket JARs on your
> >>> classpath. Since that function was removed in
> >>> https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that your
> >>> extensions JAR is older than your main wicket JAR.
> >>>
> >>> Hope that helps,
> >>> Dan
> >>>
> >>> On Thu, Aug 18, 2011 at 5:47 PM, aabfattah <
> >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=3754040&i=0>>
> >>> wrote:
> >>>
> >>> > Hello , I copied some code from a tutorial about creating a simple
> >>> > datatable
> >>> > from here
> >>> >
> https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
> >>> >
> >>> > Also , I tried the example in repeaters section in wicketstuff
> website
> >>> >
> >>> > But I get the same exact exception in the 2 projects . Can anybody
> help
> >>> as
> >>> > I
> >>> > am new to wicket ?
> >>> >
> >>> > Last cause:
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> >>>
> >>> > WicketMessage: Can't instantiate page using constructor public
> >>> > foo.DataTablePage()
> >>> >
> >>> > StackTrace:
> >>> >
> >>> > Root cause:
> >>> >
> >>> > java.lang.NoSuchMethodError:
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
> >>>
> >>> >     at foo.DataTablePage.<init>(DataTablePage.java:22)
> >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
> >>>
> >>> >     at
> >>> >
> >>>
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> >>>
> >>> >     at
> >>> >
> >>>
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
> >>>
> >>> >     at
> >>> >
> >>>
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> >>>
> >>> >     at org.eclipse.jetty.server.Server.handle(Server.java:346)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
> >>>
> >>> >     at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
> >>>
> >>> >     at
> >>> > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
> >>> >     at
> >>> >
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
> >>>
> >>> >     at java.lang.Thread.run(Unknown Source)
> >>> >
> >>> > Complete stack:
> >>> >
> >>> > org.apache.wicket.WicketRuntimeException: Can't instantiate page
> using
> >>> > constructor public foo.DataTablePage()
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >>>
> >>> >
> >>> > java.lang.reflect.InvocationTargetException
> >>> >     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> >>> > Method)
> >>> >     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> >>> > Source)
> >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >>>
> >>> >
> >>> > --
> >>> > View this message in context:
> >>> >
> >>>
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754012.html
> >>> > Sent from the Users forum mailing list archive at Nabble.com.
> >>> >
> >>> > ---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3754040&i=1>
> >>> > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3754040&i=2>
> >>> >
> >>> >
> >>>
> >>>
> >>> ------------------------------
> >>>  If you reply to this email, your message will be added to the
> >>> discussion below:
> >>>
> >>>
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754040.html
> >>>  To unsubscribe from Unexpected RuntimeException when trying a project
> >>> with a DataTable, click here<
> >.
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> Ahmed Abdelfattah
> >>
> >>
> >>
> >
> >
> > --
> > Ahmed Abdelfattah
> >
> >
> >
>
>
> --
> Ahmed Abdelfattah
>
>
> --
> View this message in context:
>
http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754584.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Unexpected RuntimeException when trying a project with a DataTable

aabfattah
I did so but it's a bit confusing . Is there any book or a tutorial that describes the sequence of calls of the framework ? And how should my code flow ?

On 19 August 2011 17:04, Dan Retzlaff [via Apache Wicket] <[hidden email]> wrote:
Hi Ahmed,

I recommend running Wicket in an IDE with a debugger and stepping through
your code. Personally I deploy my Wicket applications into an Apache Tomcat
server set up within Eclipse. There are many other servlet containers and
IDEs that will work though.

Dan

On Fri, Aug 19, 2011 at 1:16 AM, aabfattah <
[hidden email]> wrote:

> Sorry for posting a lot , I just made a new project to work around the
> problem but now I get an exception and that's seem a *bug from the code*
>
> Unexpected RuntimeException
>
> Last cause: null
> WicketMessage: Error attaching this container for rendering:
> [WebMarkupContainer [Component id = body]]
>
> Stacktrace
>
> Root cause:
>
> java.lang.NullPointerException
>     at
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:21)
>     at
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:1)
>     at java.util.Arrays.mergeSort(Unknown Source)
>     at java.util.Arrays.sort(Unknown Source)
>     at java.util.Collections.sort(Unknown Source)
>     at com.ahmed.task.main3.UserProvider.iterator(UserProvider.java:57)
>     at
> org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.<init>(DataViewBase.java:109)
>     at
> org.apache.wicket.markup.repeater.data.DataViewBase.getItemModels(DataViewBase.java:76)
>     at
> org.apache.wicket.markup.repeater.AbstractPageableView.getItemModels(AbstractPageableView.java:101)
>     at
> org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:93)
>     at
> org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
>     at
> org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:115)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
>     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
>     at org.apache.wicket.Component.render(Component.java:2338)
>     at org.apache.wicket.Page.renderPage(Page.java:1060)
>      at
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>     at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>     at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
>     at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>     at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
>     at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
>     at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
>     at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
>     at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
>     at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>     at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
>     at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
>     at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>     at org.eclipse.jetty.server.Server.handle(Server.java:346)
>     at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
>     at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
>     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
>     at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
>     at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
>     at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
>     at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
>     at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
>     at java.lang.Thread.run(Unknown Source)
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Error attaching this
> container for rendering: [WebMarkupContainer [Component id = body]]
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1758)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
>     at
> org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>     at
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
>     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
>     at org.apache.wicket.Component.render(Component.java:2338)
>     at org.apache.wicket.Page.renderPage(Page.java:1060)
>      at
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>     at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>     at
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>     at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>     at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>     at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>     at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>
>
>
> On 19 August 2011 09:55, Ahmed Abdelfattah <
> [hidden email]> wrote:

>
> > Hmm.... wait they are different versions . I fixed that but now I get a
> > compile error !
> >
> > Failed to execute goal
> > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> > (default-compile) on project mainpage2: Compilation failure
> > [ERROR] Unable to locate the Javac Compiler in:
> > [ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
> > [ERROR] Please ensure you are using JDK 1.4 or above and
> > [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
> > [ERROR] In most cases you can change the location of your Java
> > [ERROR] installation by setting the JAVA_HOME environment variable.
> >
> > On 19 August 2011 09:30, Ahmed Abdelfattah <
> > [hidden email]> wrote:
> >
> >> They both have the same version 1.5RC-1
> >>
> >> On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] <
> >> [hidden email]> wrote:

> >>
> >>> It looks like you have multiple versions of the Wicket JARs on your
> >>> classpath. Since that function was removed in
> >>> https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that your
> >>> extensions JAR is older than your main wicket JAR.
> >>>
> >>> Hope that helps,
> >>> Dan
> >>>
> >>> On Thu, Aug 18, 2011 at 5:47 PM, aabfattah <
> >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=3754040&i=0>>
> >>> wrote:

> >>>
> >>> > Hello , I copied some code from a tutorial about creating a simple
> >>> > datatable
> >>> > from here
> >>> >
> https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
> >>> >
> >>> > Also , I tried the example in repeaters section in wicketstuff
> website
> >>> >
> >>> > But I get the same exact exception in the 2 projects . Can anybody
> help
> >>> as
> >>> > I
> >>> > am new to wicket ?
> >>> >
> >>> > Last cause:
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> >>>
> >>> > WicketMessage: Can't instantiate page using constructor public
> >>> > foo.DataTablePage()
> >>> >
> >>> > StackTrace:
> >>> >
> >>> > Root cause:
> >>> >
> >>> > java.lang.NoSuchMethodError:
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
> >>>
> >>> >     at foo.DataTablePage.<init>(DataTablePage.java:22)
> >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
> >>>
> >>> >     at
> >>> >
> >>>
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> >>>
> >>> >     at
> >>> >
> >>>
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
> >>>
> >>> >     at
> >>> >
> >>>
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> >>>
> >>> >     at org.eclipse.jetty.server.Server.handle(Server.java:346)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
> >>>
> >>> >     at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
> >>>
> >>> >     at
> >>> > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
> >>> >     at
> >>> >
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
> >>>
> >>> >     at java.lang.Thread.run(Unknown Source)
> >>> >
> >>> > Complete stack:
> >>> >
> >>> > org.apache.wicket.WicketRuntimeException: Can't instantiate page
> using
> >>> > constructor public foo.DataTablePage()
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >>>
> >>> >
> >>> > java.lang.reflect.InvocationTargetException
> >>> >     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> >>> > Method)
> >>> >     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> >>> > Source)
> >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >>>
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >>>
> >>> >
> >>> > --
> >>> > View this message in context:
> >>> >
> >>>
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754012.html
> >>> > Sent from the Users forum mailing list archive at Nabble.com.
> >>> >
> >>> > ---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3754040&i=1>
> >>> > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3754040&i=2>
> >>> >
> >>> >
> >>>
> >>>
> >>> ------------------------------
> >>>  If you reply to this email, your message will be added to the
> >>> discussion below:
> >>>
> >>>
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754040.html
> >>>  To unsubscribe from Unexpected RuntimeException when trying a project
> >>> with a DataTable, click here<
>
>.
> >>>

> >>>
> >>
> >>
> >>
> >> --
> >> Ahmed Abdelfattah
> >>
> >>
> >>
> >
> >
> > --
> > Ahmed Abdelfattah
> >
> >
> >
>
>
> --
> Ahmed Abdelfattah
>
>
> --
> View this message in context:
>
http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754584.html

> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



To unsubscribe from Unexpected RuntimeException when trying a project with a DataTable, click here.



--
Ahmed Abdelfattah


Reply | Threaded
Open this post in threaded view
|

Re: Unexpected RuntimeException when trying a project with a DataTable

Martin Grigorov-4
The problem is clear:

java.lang.NullPointerException
    at com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:21)
    at com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:1)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at java.util.Collections.sort(Unknown Source)
    at com.ahmed.task.main3.UserProvider.iterator(UserProvider.java:57)
    at org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.<init>(DataViewBase.java:109)

Wicket asks your DataProvider for data and your UserProvider fails
with NPE at line 21.

On Fri, Aug 19, 2011 at 6:37 PM, aabfattah
<[hidden email]> wrote:

> I did so but it's a bit confusing . Is there any book or a tutorial that
> describes the sequence of calls of the framework ? And how should my code
> flow ?
>
> On 19 August 2011 17:04, Dan Retzlaff [via Apache Wicket] <
> [hidden email]> wrote:
>
>> Hi Ahmed,
>>
>> I recommend running Wicket in an IDE with a debugger and stepping through
>> your code. Personally I deploy my Wicket applications into an Apache Tomcat
>>
>> server set up within Eclipse. There are many other servlet containers and
>> IDEs that will work though.
>>
>> Dan
>>
>> On Fri, Aug 19, 2011 at 1:16 AM, aabfattah <
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=0>>
>> wrote:
>>
>> > Sorry for posting a lot , I just made a new project to work around the
>> > problem but now I get an exception and that's seem a *bug from the code*
>> >
>> > Unexpected RuntimeException
>> >
>> > Last cause: null
>> > WicketMessage: Error attaching this container for rendering:
>> > [WebMarkupContainer [Component id = body]]
>> >
>> > Stacktrace
>> >
>> > Root cause:
>> >
>> > java.lang.NullPointerException
>> >     at
>> >
>> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:21)
>>
>> >     at
>> >
>> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:1)
>>
>> >     at java.util.Arrays.mergeSort(Unknown Source)
>> >     at java.util.Arrays.sort(Unknown Source)
>> >     at java.util.Collections.sort(Unknown Source)
>> >     at com.ahmed.task.main3.UserProvider.iterator(UserProvider.java:57)
>> >     at
>> >
>> org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.<init>(DataViewBase.java:109)
>>
>> >     at
>> >
>> org.apache.wicket.markup.repeater.data.DataViewBase.getItemModels(DataViewBase.java:76)
>>
>> >     at
>> >
>> org.apache.wicket.markup.repeater.AbstractPageableView.getItemModels(AbstractPageableView.java:101)
>>
>> >     at
>> >
>> org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:93)
>>
>> >     at
>> >
>> org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
>>
>> >     at
>> >
>> org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:115)
>>
>> >     at
>> > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>> >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>> >     at
>> >
>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>>
>> >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>> >     at
>> > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>> >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>> >     at
>> >
>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>>
>> >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>> >     at
>> > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>> >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>> >     at
>> >
>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>>
>> >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>> >     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
>> >     at
>> > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>> >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>> >     at
>> > org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
>>
>> >     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
>> >     at org.apache.wicket.Component.render(Component.java:2338)
>> >     at org.apache.wicket.Page.renderPage(Page.java:1060)
>> >      at
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>>
>> >     at
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>>
>> >     at
>> >
>> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>>
>> >     at
>> >
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>>
>> >     at
>> >
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>>
>> >     at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>>
>> >     at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>>
>> >     at
>> >
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>>
>> >     at
>> >
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>>
>> >     at
>> >
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
>>
>> >     at
>> >
>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
>> >     at
>> >
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>>
>> >     at
>> >
>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
>> >     at
>> >
>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
>>
>> >     at
>> >
>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
>>
>> >     at
>> > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
>>
>> >     at
>> >
>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
>>
>> >     at
>> >
>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
>>
>> >     at
>> >
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>>
>> >     at
>> >
>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
>>
>> >     at
>> >
>> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
>>
>> >     at
>> >
>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>>
>> >     at org.eclipse.jetty.server.Server.handle(Server.java:346)
>> >     at
>> >
>> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
>>
>> >     at
>> >
>> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
>>
>> >     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
>> >     at
>> > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
>> >     at
>> > org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
>> >     at
>> >
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
>>
>> >     at
>> >
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
>>
>> >     at
>> >
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
>>
>> >     at java.lang.Thread.run(Unknown Source)
>> >
>> > Complete stack:
>> >
>> > org.apache.wicket.WicketRuntimeException: Error attaching this
>> > container for rendering: [WebMarkupContainer [Component id = body]]
>> >     at
>> >
>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1758)
>>
>> >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>> >     at
>> > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>> >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>> >     at
>> >
>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>>
>> >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>> >     at
>> > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>> >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>> >     at
>> >
>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>>
>> >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
>> >     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
>> >     at
>> > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>> >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
>> >     at
>> > org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
>>
>> >     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
>> >     at org.apache.wicket.Component.render(Component.java:2338)
>> >     at org.apache.wicket.Page.renderPage(Page.java:1060)
>> >      at
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>>
>> >     at
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>>
>> >     at
>> >
>> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>>
>> >     at
>> >
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>>
>> >     at
>> >
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>>
>> >     at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>>
>> >     at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>>
>> >     at
>> >
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>>
>> >
>> >
>> >
>> > On 19 August 2011 09:55, Ahmed Abdelfattah <
>> > [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=1>>
>> wrote:
>> >
>> > > Hmm.... wait they are different versions . I fixed that but now I get a
>>
>> > > compile error !
>> > >
>> > > Failed to execute goal
>> > > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
>> > > (default-compile) on project mainpage2: Compilation failure
>> > > [ERROR] Unable to locate the Javac Compiler in:
>> > > [ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
>> > > [ERROR] Please ensure you are using JDK 1.4 or above and
>> > > [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
>> > > [ERROR] In most cases you can change the location of your Java
>> > > [ERROR] installation by setting the JAVA_HOME environment variable.
>> > >
>> > > On 19 August 2011 09:30, Ahmed Abdelfattah <
>> > > [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=2>>
>> wrote:
>> > >
>> > >> They both have the same version 1.5RC-1
>> > >>
>> > >> On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] <
>> > >> [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=3>>
>> wrote:
>> > >>
>> > >>> It looks like you have multiple versions of the Wicket JARs on your
>> > >>> classpath. Since that function was removed in
>> > >>> https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that
>> your
>> > >>> extensions JAR is older than your main wicket JAR.
>> > >>>
>> > >>> Hope that helps,
>> > >>> Dan
>> > >>>
>> > >>> On Thu, Aug 18, 2011 at 5:47 PM, aabfattah <
>> > >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=3754040&i=0>>
>>
>> > >>> wrote:
>> > >>>
>> > >>> > Hello , I copied some code from a tutorial about creating a simple
>> > >>> > datatable
>> > >>> > from here
>> > >>> >
>> > https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
>> > >>> >
>> > >>> > Also , I tried the example in repeaters section in wicketstuff
>> > website
>> > >>> >
>> > >>> > But I get the same exact exception in the 2 projects . Can anybody
>> > help
>> > >>> as
>> > >>> > I
>> > >>> > am new to wicket ?
>> > >>> >
>> > >>> > Last cause:
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
>>
>> > >>>
>> > >>> > WicketMessage: Can't instantiate page using constructor public
>> > >>> > foo.DataTablePage()
>> > >>> >
>> > >>> > StackTrace:
>> > >>> >
>> > >>> > Root cause:
>> > >>> >
>> > >>> > java.lang.NoSuchMethodError:
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
>>
>> > >>>
>> > >>> >     at foo.DataTablePage.<init>(DataTablePage.java:22)
>> > >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>>
>> > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>>
>> > >>>
>> > >>> >     at org.eclipse.jetty.server.Server.handle(Server.java:346)
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
>>
>> > >>>
>> > >>> >     at
>> > org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
>> > >>>
>> > >>> >     at
>> > >>> >
>> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
>> > >>> >     at
>> > >>> >
>> > org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
>>
>> > >>>
>> > >>> >     at java.lang.Thread.run(Unknown Source)
>> > >>> >
>> > >>> > Complete stack:
>> > >>> >
>> > >>> > org.apache.wicket.WicketRuntimeException: Can't instantiate page
>> > using
>> > >>> > constructor public foo.DataTablePage()
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>>
>> > >>>
>> > >>> >
>> > >>> > java.lang.reflect.InvocationTargetException
>> > >>> >     at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> > >>> > Method)
>> > >>> >     at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
>> > >>> > Source)
>> > >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>>
>> > >>>
>> > >>> >     at
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>>
>> > >>>
>> > >>> >
>> > >>> > --
>> > >>> > View this message in context:
>> > >>> >
>> > >>>
>> >
>> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754012.html
>> > >>> > Sent from the Users forum mailing list archive at Nabble.com.
>> > >>> >
>> > >>> >
>> ---------------------------------------------------------------------
>> > >>> > To unsubscribe, e-mail: [hidden email]<
>> > http://user/SendEmail.jtp?type=node&node=3754040&i=1>
>> > >>> > For additional commands, e-mail: [hidden email]<
>> > http://user/SendEmail.jtp?type=node&node=3754040&i=2>
>> > >>> >
>> > >>> >
>> > >>>
>> > >>>
>> > >>> ------------------------------
>> > >>>  If you reply to this email, your message will be added to the
>> > >>> discussion below:
>> > >>>
>> > >>>
>> >
>> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754040.html
>> > >>>  To unsubscribe from Unexpected RuntimeException when trying a
>> project
>> > >>> with a DataTable, click here<
>> >
>> >.
>> > >>>
>> > >>>
>> > >>
>> > >>
>> > >>
>> > >> --
>> > >> Ahmed Abdelfattah
>> > >>
>> > >>
>> > >>
>> > >
>> > >
>> > > --
>> > > Ahmed Abdelfattah
>> > >
>> > >
>> > >
>> >
>> >
>> > --
>> > Ahmed Abdelfattah
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754584.html
>>
>> > Sent from the Users forum mailing list archive at Nabble.com.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=3755408&i=4>
>> > For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=3755408&i=5>
>> >
>> >
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3755408.html
>>  To unsubscribe from Unexpected RuntimeException when trying a project with
>> a DataTable, click here<
>>
>>
>
>
>
> --
> Ahmed Abdelfattah
>
>
> --
> View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3755486.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Unexpected RuntimeException when trying a project with a DataTable

Dan Retzlaff
In reply to this post by aabfattah
If you put a breakpoint where the NullPointerException is thrown, your
debugger should show you the call stack which tells you the sequence of
calls that got you there. In your particular case, the crux is the
"Collections.sort(newList, comparator)" call which sorts newList using your
custom comparator. I'd guess that newList contains an object that is missing
a property required by your comparator.

On Fri, Aug 19, 2011 at 8:37 AM, aabfattah <
[hidden email]> wrote:

> I did so but it's a bit confusing . Is there any book or a tutorial that
> describes the sequence of calls of the framework ? And how should my code
> flow ?
>
> On 19 August 2011 17:04, Dan Retzlaff [via Apache Wicket] <
> [hidden email]> wrote:
>
> > Hi Ahmed,
> >
> > I recommend running Wicket in an IDE with a debugger and stepping through
> > your code. Personally I deploy my Wicket applications into an Apache
> Tomcat
> >
> > server set up within Eclipse. There are many other servlet containers and
> > IDEs that will work though.
> >
> > Dan
> >
> > On Fri, Aug 19, 2011 at 1:16 AM, aabfattah <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=0>>
> > wrote:
> >
> > > Sorry for posting a lot , I just made a new project to work around the
> > > problem but now I get an exception and that's seem a *bug from the
> code*
> > >
> > > Unexpected RuntimeException
> > >
> > > Last cause: null
> > > WicketMessage: Error attaching this container for rendering:
> > > [WebMarkupContainer [Component id = body]]
> > >
> > > Stacktrace
> > >
> > > Root cause:
> > >
> > > java.lang.NullPointerException
> > >     at
> > >
> >
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:21)
> >
> > >     at
> > >
> >
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:1)
> >
> > >     at java.util.Arrays.mergeSort(Unknown Source)
> > >     at java.util.Arrays.sort(Unknown Source)
> > >     at java.util.Collections.sort(Unknown Source)
> > >     at com.ahmed.task.main3.UserProvider.iterator(UserProvider.java:57)
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.<init>(DataViewBase.java:109)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.data.DataViewBase.getItemModels(DataViewBase.java:76)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.AbstractPageableView.getItemModels(AbstractPageableView.java:101)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:93)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:115)
> >
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
> >
> > >     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
> > >     at org.apache.wicket.Component.render(Component.java:2338)
> > >     at org.apache.wicket.Page.renderPage(Page.java:1060)
> > >      at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > >     at
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > >     at
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
> > >     at
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
> >
> > >     at
> > >
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> >
> > >     at org.eclipse.jetty.server.Server.handle(Server.java:346)
> > >     at
> > >
> >
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
> >
> > >     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
> > >     at
> > > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
> > >     at
> > > org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
> > >     at
> > >
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
> >
> > >     at java.lang.Thread.run(Unknown Source)
> > >
> > > Complete stack:
> > >
> > > org.apache.wicket.WicketRuntimeException: Error attaching this
> > > container for rendering: [WebMarkupContainer [Component id = body]]
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1758)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
> >
> > >     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
> > >     at org.apache.wicket.Component.render(Component.java:2338)
> > >     at org.apache.wicket.Page.renderPage(Page.java:1060)
> > >      at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > >     at
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > >
> > >
> > >
> > > On 19 August 2011 09:55, Ahmed Abdelfattah <
> > > [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=1>>
> > wrote:
> > >
> > > > Hmm.... wait they are different versions . I fixed that but now I get
> a
> >
> > > > compile error !
> > > >
> > > > Failed to execute goal
> > > > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> > > > (default-compile) on project mainpage2: Compilation failure
> > > > [ERROR] Unable to locate the Javac Compiler in:
> > > > [ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
> > > > [ERROR] Please ensure you are using JDK 1.4 or above and
> > > > [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
> > > > [ERROR] In most cases you can change the location of your Java
> > > > [ERROR] installation by setting the JAVA_HOME environment variable.
> > > >
> > > > On 19 August 2011 09:30, Ahmed Abdelfattah <
> > > > [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=2
> >>
> > wrote:
> > > >
> > > >> They both have the same version 1.5RC-1
> > > >>
> > > >> On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] <
> > > >> [hidden email] <
> http://user/SendEmail.jtp?type=node&node=3755408&i=3>>
> > wrote:
> > > >>
> > > >>> It looks like you have multiple versions of the Wicket JARs on your
> > > >>> classpath. Since that function was removed in
> > > >>> https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that
> > your
> > > >>> extensions JAR is older than your main wicket JAR.
> > > >>>
> > > >>> Hope that helps,
> > > >>> Dan
> > > >>>
> > > >>> On Thu, Aug 18, 2011 at 5:47 PM, aabfattah <
> > > >>> [hidden email] <
> http://user/SendEmail.jtp?type=node&node=3754040&i=0>>
> >
> > > >>> wrote:
> > > >>>
> > > >>> > Hello , I copied some code from a tutorial about creating a
> simple
> > > >>> > datatable
> > > >>> > from here
> > > >>> >
> > > https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
> > > >>> >
> > > >>> > Also , I tried the example in repeaters section in wicketstuff
> > > website
> > > >>> >
> > > >>> > But I get the same exact exception in the 2 projects . Can
> anybody
> > > help
> > > >>> as
> > > >>> > I
> > > >>> > am new to wicket ?
> > > >>> >
> > > >>> > Last cause:
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> >
> > > >>>
> > > >>> > WicketMessage: Can't instantiate page using constructor public
> > > >>> > foo.DataTablePage()
> > > >>> >
> > > >>> > StackTrace:
> > > >>> >
> > > >>> > Root cause:
> > > >>> >
> > > >>> > java.lang.NoSuchMethodError:
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
> >
> > > >>>
> > > >>> >     at foo.DataTablePage.<init>(DataTablePage.java:22)
> > > >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>>
> > >
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
> >
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> >
> > > >>>
> > > >>> >     at org.eclipse.jetty.server.Server.handle(Server.java:346)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
> >
> > > >>>
> > > >>> >     at
> > > org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
> > > >>>
> > > >>> >     at
> > > >>> >
> > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
> > > >>> >     at
> > > >>> >
> > > org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
> >
> > > >>>
> > > >>> >     at java.lang.Thread.run(Unknown Source)
> > > >>> >
> > > >>> > Complete stack:
> > > >>> >
> > > >>> > org.apache.wicket.WicketRuntimeException: Can't instantiate page
> > > using
> > > >>> > constructor public foo.DataTablePage()
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > > >>>
> > > >>> >
> > > >>> > java.lang.reflect.InvocationTargetException
> > > >>> >     at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > >>> > Method)
> > > >>> >     at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> > > >>> > Source)
> > > >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > > >>>
> > > >>> >
> > > >>> > --
> > > >>> > View this message in context:
> > > >>> >
> > > >>>
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754012.html
> > > >>> > Sent from the Users forum mailing list archive at Nabble.com.
> > > >>> >
> > > >>> >
> > ---------------------------------------------------------------------
> > > >>> > To unsubscribe, e-mail: [hidden email]<
> > > http://user/SendEmail.jtp?type=node&node=3754040&i=1>
> > > >>> > For additional commands, e-mail: [hidden email]<
> > > http://user/SendEmail.jtp?type=node&node=3754040&i=2>
> > > >>> >
> > > >>> >
> > > >>>
> > > >>>
> > > >>> ------------------------------
> > > >>>  If you reply to this email, your message will be added to the
> > > >>> discussion below:
> > > >>>
> > > >>>
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754040.html
> > > >>>  To unsubscribe from Unexpected RuntimeException when trying a
> > project
> > > >>> with a DataTable, click here<
> > >
> > >.
> > > >>>
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Ahmed Abdelfattah
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > Ahmed Abdelfattah
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Ahmed Abdelfattah
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754584.html
> >
> > > Sent from the Users forum mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3755408&i=4>
> > > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3755408&i=5>
> > >
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3755408.html
> >  To unsubscribe from Unexpected RuntimeException when trying a project
> with
> > a DataTable, click here<
> >.
> >
> >
>
>
>
> --
> Ahmed Abdelfattah
>
>
> --
> View this message in context:
>
http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3755486.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Unexpected RuntimeException when trying a project with a DataTable

aabfattah
I didn't solve the problem , I just used a  normal DataTable .

On 19 August 2011 17:44, Dan Retzlaff [via Apache Wicket] <[hidden email]> wrote:
If you put a breakpoint where the NullPointerException is thrown, your
debugger should show you the call stack which tells you the sequence of
calls that got you there. In your particular case, the crux is the
"Collections.sort(newList, comparator)" call which sorts newList using your
custom comparator. I'd guess that newList contains an object that is missing
a property required by your comparator.

On Fri, Aug 19, 2011 at 8:37 AM, aabfattah <
[hidden email]> wrote:

> I did so but it's a bit confusing . Is there any book or a tutorial that
> describes the sequence of calls of the framework ? And how should my code
> flow ?
>
> On 19 August 2011 17:04, Dan Retzlaff [via Apache Wicket] <
> [hidden email]> wrote:

>
> > Hi Ahmed,
> >
> > I recommend running Wicket in an IDE with a debugger and stepping through
> > your code. Personally I deploy my Wicket applications into an Apache
> Tomcat
> >
> > server set up within Eclipse. There are many other servlet containers and
> > IDEs that will work though.
> >
> > Dan
> >
> > On Fri, Aug 19, 2011 at 1:16 AM, aabfattah <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=0>>
> > wrote:

> >
> > > Sorry for posting a lot , I just made a new project to work around the
> > > problem but now I get an exception and that's seem a *bug from the
> code*
> > >
> > > Unexpected RuntimeException
> > >
> > > Last cause: null
> > > WicketMessage: Error attaching this container for rendering:
> > > [WebMarkupContainer [Component id = body]]
> > >
> > > Stacktrace
> > >
> > > Root cause:
> > >
> > > java.lang.NullPointerException
> > >     at
> > >
> >
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:21)
> >
> > >     at
> > >
> >
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:1)
> >
> > >     at java.util.Arrays.mergeSort(Unknown Source)
> > >     at java.util.Arrays.sort(Unknown Source)
> > >     at java.util.Collections.sort(Unknown Source)
> > >     at com.ahmed.task.main3.UserProvider.iterator(UserProvider.java:57)
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.<init>(DataViewBase.java:109)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.data.DataViewBase.getItemModels(DataViewBase.java:76)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.AbstractPageableView.getItemModels(AbstractPageableView.java:101)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:93)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
> >
> > >     at
> > >
> >
> org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:115)
> >
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
> >
> > >     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
> > >     at org.apache.wicket.Component.render(Component.java:2338)
> > >     at org.apache.wicket.Page.renderPage(Page.java:1060)
> > >      at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > >     at
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > >     at
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
> > >     at
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
> >
> > >     at
> > >
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> >
> > >     at org.eclipse.jetty.server.Server.handle(Server.java:346)
> > >     at
> > >
> >
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
> >
> > >     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
> > >     at
> > > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
> > >     at
> > > org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
> > >     at
> > >
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> >
> > >     at
> > >
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
> >
> > >     at java.lang.Thread.run(Unknown Source)
> > >
> > > Complete stack:
> > >
> > > org.apache.wicket.WicketRuntimeException: Error attaching this
> > > container for rendering: [WebMarkupContainer [Component id = body]]
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1758)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
> >
> > >     at org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > >     at org.apache.wicket.Page.onBeforeRender(Page.java:848)
> > >     at
> > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
> > >     at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > >     at
> > >
> org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
> >
> > >     at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
> > >     at org.apache.wicket.Component.render(Component.java:2338)
> > >     at org.apache.wicket.Page.renderPage(Page.java:1060)
> > >      at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > >     at
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > >     at
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > >
> > >
> > >
> > > On 19 August 2011 09:55, Ahmed Abdelfattah <
> > > [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=1>>
> > wrote:

> > >
> > > > Hmm.... wait they are different versions . I fixed that but now I get
> a
> >
> > > > compile error !
> > > >
> > > > Failed to execute goal
> > > > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> > > > (default-compile) on project mainpage2: Compilation failure
> > > > [ERROR] Unable to locate the Javac Compiler in:
> > > > [ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
> > > > [ERROR] Please ensure you are using JDK 1.4 or above and
> > > > [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
> > > > [ERROR] In most cases you can change the location of your Java
> > > > [ERROR] installation by setting the JAVA_HOME environment variable.
> > > >
> > > > On 19 August 2011 09:30, Ahmed Abdelfattah <
> > > > [hidden email] <http://user/SendEmail.jtp?type=node&node=3755408&i=2

> >>
> > wrote:
> > > >
> > > >> They both have the same version 1.5RC-1
> > > >>
> > > >> On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] <
> > > >> [hidden email] <
> http://user/SendEmail.jtp?type=node&node=3755408&i=3>>
> > wrote:

> > > >>
> > > >>> It looks like you have multiple versions of the Wicket JARs on your
> > > >>> classpath. Since that function was removed in
> > > >>> https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that
> > your
> > > >>> extensions JAR is older than your main wicket JAR.
> > > >>>
> > > >>> Hope that helps,
> > > >>> Dan
> > > >>>
> > > >>> On Thu, Aug 18, 2011 at 5:47 PM, aabfattah <
> > > >>> [hidden email] <
> http://user/SendEmail.jtp?type=node&node=3754040&i=0>>
> >
> > > >>> wrote:
> > > >>>
> > > >>> > Hello , I copied some code from a tutorial about creating a
> simple
> > > >>> > datatable
> > > >>> > from here
> > > >>> >
> > > https://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
> > > >>> >

> > > >>> > Also , I tried the example in repeaters section in wicketstuff
> > > website
> > > >>> >
> > > >>> > But I get the same exact exception in the 2 projects . Can
> anybody
> > > help
> > > >>> as
> > > >>> > I
> > > >>> > am new to wicket ?
> > > >>> >
> > > >>> > Last cause:
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> >
> > > >>>
> > > >>> > WicketMessage: Can't instantiate page using constructor public
> > > >>> > foo.DataTablePage()
> > > >>> >
> > > >>> > StackTrace:
> > > >>> >
> > > >>> > Root cause:
> > > >>> >
> > > >>> > java.lang.NoSuchMethodError:
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.addToBorder([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer;
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:58)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder.<init>(OrderByBorder.java:106)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$2.<init>(HeadersToolbar.java:115)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.newSortableHeader(HeadersToolbar.java:110)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar.<init>(HeadersToolbar.java:67)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable.<init>(DefaultDataTable.java:64)
> >
> > > >>>
> > > >>> >     at foo.DataTablePage.<init>(DataTablePage.java:22)
> > > >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>>
> > >
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
> >
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> >
> > > >>>
> > > >>> >     at org.eclipse.jetty.server.Server.handle(Server.java:346)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
> >
> > > >>>
> > > >>> >     at
> > > org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)
> > > >>>
> > > >>> >     at
> > > >>> >
> > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
> > > >>> >     at
> > > >>> >
> > > org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
> >
> > > >>>
> > > >>> >     at java.lang.Thread.run(Unknown Source)
> > > >>> >
> > > >>> > Complete stack:
> > > >>> >
> > > >>> > org.apache.wicket.WicketRuntimeException: Can't instantiate page
> > > using
> > > >>> > constructor public foo.DataTablePage()
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > > >>>
> > > >>> >
> > > >>> > java.lang.reflect.InvocationTargetException
> > > >>> >     at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > >>> > Method)
> > > >>> >     at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> > > >>> > Source)
> > > >>> >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:155)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:59)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:266)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:160)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> >
> > > >>>
> > > >>> >     at
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
> >
> > > >>>
> > > >>> >
> > > >>> > --
> > > >>> > View this message in context:
> > > >>> >
> > > >>>
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754012.html
> > > >>> > Sent from the Users forum mailing list archive at Nabble.com.

> > > >>> >
> > > >>> >
> > ---------------------------------------------------------------------
> > > >>> > To unsubscribe, e-mail: [hidden email]<
> > > http://user/SendEmail.jtp?type=node&node=3754040&i=1>
> > > >>> > For additional commands, e-mail: [hidden email]<
> > > http://user/SendEmail.jtp?type=node&node=3754040&i=2>
> > > >>> >
> > > >>> >
> > > >>>
> > > >>>
> > > >>> ------------------------------
> > > >>>  If you reply to this email, your message will be added to the
> > > >>> discussion below:
> > > >>>
> > > >>>
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754040.html
> > > >>>  To unsubscribe from Unexpected RuntimeException when trying a

> > project
> > > >>> with a DataTable, click here<
> > >
> > >.
> > > >>>
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Ahmed Abdelfattah
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > Ahmed Abdelfattah
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Ahmed Abdelfattah
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3754584.html
> >
> > > Sent from the Users forum mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3755408&i=4>
> > > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3755408&i=5>
> > >
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3755408.html
> >  To unsubscribe from Unexpected RuntimeException when trying a project

> with
> > a DataTable, click here<
>
>.
> >
> >
>
>
>
> --
> Ahmed Abdelfattah
>
>
> http://apache-wicket.1842946.n4.nabble.com/Unexpected-RuntimeException-when-trying-a-project-with-a-DataTable-tp3754012p3755486.html

> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



To unsubscribe from Unexpected RuntimeException when trying a project with a DataTable, click here.



--
Ahmed Abdelfattah