Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6852

CouldNotLockPageException when clicking AjaxButton in ModalDialog

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 9.1.0
    • None
    • wicket
    • None
    • CentOS 8, 4.18.0-193.28.1.el8_2.x86_64
      httpd that comes with CentOS 8
      apache tomcat 9.0.38

    Description

      I have a ModalDialog with a form for changing my password and an AjaxButton to submit the request. The application is running with https, I am using Apache https and Apache Tomcat. This works fine with Wicket 9.0.0.

      I changed to Wicket 9.1.0 and there I am getting an Exception:

      org.apache.wicket.util.lang.Threads$ThreadDump
      at java.base@11.0.9/jdk.internal.misc.Unsafe.park(Native Method)
      at java.base@11.0.9/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
      at java.base@11.0.9/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2081)
      at java.base@11.0.9/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:433)
      at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:108)
      at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33)
      at java.base@11.0.9/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
      at java.base@11.0.9/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
      at java.base@11.0.9/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.base@11.0.9/java.lang.Thread.run(Thread.java:834)
      2020-11-12 12:55:56 ERROR DefaultExceptionMapper:170 - Unexpected error occurred
      org.apache.wicket.page.CouldNotLockPageException: Could not lock page 3. Attempt lasted PT1M
      at org.apache.wicket.page.DefaultPageLockManager.lockPage(DefaultPageLockManager.java:170)
      at org.apache.wicket.page.PageAccessSynchronizer.lockPage(PageAccessSynchronizer.java:72)
      at org.apache.wicket.page.PageAccessSynchronizer$1.getPage(PageAccessSynchronizer.java:116)
      at org.apache.wicket.DefaultMapperContext.getPageInstance(DefaultMapperContext.java:101)
      at org.apache.wicket.core.request.handler.PageProvider$Provision.resolve(PageProvider.java:401)
      at org.apache.wicket.core.request.handler.PageProvider.getProvision(PageProvider.java:162)
      at org.apache.wicket.core.request.handler.PageProvider.wasExpired(PageProvider.java:234)
      at org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.checkExpiration(AbstractBookmarkableMapper.java:312)
      at org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.processHybrid(AbstractBookmarkableMapper.java:258)
      at org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:341)
      at org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:147)
      at org.apache.wicket.protocol.https.HttpsMapper.mapRequest(HttpsMapper.java:101)
      at org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:194)
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:244)
      at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:276)
      at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:207)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:306)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
      at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:432)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.base/java.lang.Thread.run(Thread.java:834)

       

      In Chrome I see a 502 error.

       

      Did I miss to make any changes to switch from Wicket 9.0.0 to 9.1.0 or is this a bug?

      Attachments

        1. config.zip
          3 kB
          Gert Ehing

        Activity

          People

            Unassigned Unassigned
            gehing Gert Ehing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: