0

私はウィケットが初めてで、いくつかの例を通してそれを学ぼうとしています。
私は wicket 6.18.0 バージョンと Eclipse IDE を使用していますが、コードの実行中にエラー
Last cause: null
WicketMessage: Exception in rendering component: [OrderByBorder [Component id = header]] が表示されます

スタックトレースは次のとおりです。

java.lang.NullPointerException
at org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByLink$CssProvider.getClassAttributeValue(OrderByLink.java:257)
at org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByLink$CssModifier.onComponentTag(OrderByLink.java:189)
at org.apache.wicket.Component.renderComponentTag(Component.java:3952)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2520)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.markup.repeater.AbstractRepeater.renderChild(AbstractRepeater.java:114)
at org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:101)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.markup.repeater.AbstractRepeater.renderChild(AbstractRepeater.java:114)
at org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:101)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.Page.onRender(Page.java:887)
at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.Page.renderPage(Page.java:1024)
at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:139)
at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:284)
at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:146)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:277)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

Complete stack:

org.apache.wicket.WicketRuntimeException: Exception in rendering component: [OrderByBorder [Component id = header]]
at org.apache.wicket.Component.internalRenderComponent(Component.java:2553)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.markup.repeater.AbstractRepeater.renderChild(AbstractRepeater.java:114)
at org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:101)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.markup.repeater.AbstractRepeater.renderChild(AbstractRepeater.java:114)
at org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:101)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
at org.apache.wicket.Page.onRender(Page.java:887)
at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142)
at org.apache.wicket.Component.internalRender(Component.java:2359)
at org.apache.wicket.Component.render(Component.java:2287)
at org.apache.wicket.Page.renderPage(Page.java:1024)
at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:139)
at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:284)
at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at org.apache.wicket.protocol.http.

WicketFilter.processRequestCycle(WicketFilter.java:259)

4

1 に答える 1

0

コードを含めると、これを実際に診断するのが簡単になる可能性がありますが、ソースを検索することで少しはできます。

OrderByLinkスタック トレースは、次の行を含む の257 行目の NullPointerException を指しています。

SortOrder dir = state.getPropertySortOrder(sortProperty);

stateこれは、呼び出しで渡されたパラメーターが であることを意味する可能性が最も高いgetClassAttributeValueですnull

コード内で を設定した場所までさかのぼるとSortState、問題の根本原因が明らかになる可能性があります。

于 2014-12-12T13:48:16.513 に答える