Wicket-无法运行“图书馆应用程序”示例

时间:2018-11-17 22:29:32

标签: java wicket

我正在尝试从Wicket示例页面运行示例“ Library Application”,并且已经在Eclipse项目中复制了所有必需的class / html文件。

问题是由于以下错误,我无法运行该应用程序:

  

意外的RuntimeException最终原因:   org.apache.wicket.AttributeModifier。(Ljava / lang / String; ZLorg / apache / wicket / model / IModel;)V   WicketMessage:无法使用构造函数'public实例化页面   com.interamerican.SignIn()”。在此期间引发了异常   施工!

     

Stacktrace根本原因:

     

java.lang.NoSuchMethodError:   org.apache.wicket.AttributeModifier。(Ljava / lang / String; ZLorg / apache / wicket / model / IModel;)V        在org.apache.wicket.devutils.debugbar.DebugBar。(DebugBar.java:72)        在com.interamerican.WicketExampleHeader(WicketExampleHeader.java:33)        在com.interamerican.WicketExamplePage.buildHeader(WicketExamplePage.java:57)        在com.interamerican.WicketExamplePage。(WicketExamplePage.java:47)        在com.interamerican.SignIn。(SignIn.java:27)        在com.interamerican.SignIn。(SignIn.java:17)        在java.lang.reflect.Constructor.newInstance(Constructor.java:423)        在org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:175)        在org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:67)        在org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:90)        在org.apache.wicket.core.request.handler.PageProvider $ Provision.getPage(PageProvider.java:380)        在org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:171)        在org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)        在org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:102)        在org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:195)        在org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202)        在org.apache.wicket.request.cycle.RequestCycle $ HandlerExecutor.respond(RequestCycle.java:912)        在org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)        在org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:283)        在org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)        在org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)        在org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:262)        在org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:204)        在org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:286)        在org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1634)        在org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)        在org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)        在org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)        在org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)        在org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)        在org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)        在org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)        在org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)        在org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)        在org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)        在org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)        在org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)        在org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242)        在org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)        在org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)        在org.eclipse.jetty.server.Server.handle(Server.java:503)        在org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)        在org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)        在org.eclipse.jetty.io.AbstractConnection $ ReadCallback.succeeded(AbstractConnection.java:305)        在org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)        在org.eclipse.jetty.io.ssl.SslConnection $ DecryptedEndPoint.onFillable(SslConnection.java:411)        在org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:305)        在org.eclipse.jetty.io.ssl.SslConnection $ 2.succeeded(SslConnection.java:159)        在org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)        在org.eclipse.jetty.io.ChannelEndPoint $ 2.run(ChannelEndPoint.java:118)        在org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)        在org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)        在org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)        在org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)        在org.eclipse.jetty.util.thread.ReservedThreadExecutor $ ReservedThread.run(ReservedThreadExecutor.java:366)        在org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)        在org.eclipse.jetty.util.thread.QueuedThreadPool $ 2.run(QueuedThreadPool.java:683)        在java.lang.Thread.run(Thread.java:748)

     

完整的堆栈:

     

org.apache.wicket.WicketRuntimeException:无法使用实例化页面   构造函数“ public com.interamerican.SignIn()”。有一个例外   在施工过程中抛出!        在org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:194)        在org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:67)        在org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:90)        在org.apache.wicket.core.request.handler.PageProvider $ Provision.getPage(PageProvider.java:380)        在org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:171)        在org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)        在org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:102)        在org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:195)        在org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202)        在org.apache.wicket.request.cycle.RequestCycle $ HandlerExecutor.respond(RequestCycle.java:912)        在org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)        在org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:283)        在org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)        在org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)        在org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:262)

     

java.lang.reflect.InvocationTargetException        在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)处        在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)        在java.lang.reflect.Constructor.newInstance(Constructor.java:423)        在org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:175)        在org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:67)        在org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:90)        在org.apache.wicket.core.request.handler.PageProvider $ Provision.getPage(PageProvider.java:380)        在org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:171)        在org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)        在org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:102)        在org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:195)        在org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202)        在org.apache.wicket.request.cycle.RequestCycle $ HandlerExecutor.respond(RequestCycle.java:912)        在org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)        在org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:283)        在org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)        在org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)        在org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:262)

1 个答案:

答案 0 :(得分:1)

请确保对所有模块使用相同版本的Wicket-wicket-core,wicket-devutils,wicket-util,wicket-request和您可能使用的任何其他模块。

还使用一些新版本,例如8.2.0或7.10.0。从软件包名称中,我感觉到您使用的版本早于6.0。