You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/11/21 08:37:35 UTC

[jira] [Resolved] (WICKET-5421) Wicket sometimes throws ComponentNotFoundException

     [ https://issues.apache.org/jira/browse/WICKET-5421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-5421.
-------------------------------------

    Resolution: Incomplete

The exception is thrown when a component is not found in the page. Usually it is an error in the application itself.
If you are able to provide a quickstart app that demonstrates the problem then please attach it and we will debug it.

> Wicket sometimes throws ComponentNotFoundException
> --------------------------------------------------
>
>                 Key: WICKET-5421
>                 URL: https://issues.apache.org/jira/browse/WICKET-5421
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.7.0
>         Environment: OS: Linux
> Development tools: Eclipse, Glassfish, Java 7, Spring, MyBatis.
>            Reporter: Yukako Takahashi
>
> While moving between pages, sometime I get the ComponentNotFoundException.
> The error message is like this:
> org.apache.wicket.core.request.handler.ComponentNotFoundException: Could not find component 'form1:dataViewScanManagementProjectDetail:3:lnkScanManagementPackageDetail' on page 'class jp.ne.hoge.hogehoge.player.companymanagement.CompanyManagementPage
> In this case, I was about to move from a page named "CompanyManagementPage" to a page named "ScanManagementPackageDetailPage."
> Of course a Link component named "lnkScanManagementPackageDetail" exists on the "ScanManagementPackageDetailPage," but the Wicket framework sometimes refers to the previous page; the Link component does not exist on the "CompanyManagementPage" and that is why the ComponentNotFoundException occurred.
> I really am not sure why the Wicket framework sometimes behaves like that, and if you have any idea, please let me know. Any suggestions will be appreciated. Thank you.
> For your information, here is the full error message I got:
> org.apache.wicket.core.request.handler.ComponentNotFoundException: Could not find component 'form1:dataViewScanManagementProjectDetail:3:lnkScanManagementPackageDetail' on page 'class jp.ne.hoge.hogehoge.player.companymanagement.CompanyManagementPage
>      at org.apache.wicket.core.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:182)
>      at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:90)
>      at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:231)
>      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:854)
>      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>      at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:254)
>      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:211)
>      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)
>      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:256)
>      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
>      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
>      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
>      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
>      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
>      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
>      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
>      at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
>      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
>      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
>      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
>      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
>      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
>      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
>      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
>      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
>      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
>      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
>      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
>      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
>      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
>      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
>      at java.lang.Thread.run(Unknown Source)



--
This message was sent by Atlassian JIRA
(v6.1#6144)