增加“1 分钟后Pagemap null 仍被锁定"的锁定时间;例外

编程入门 行业动态 更新时间:2024-10-24 04:50:02
本文介绍了增加“1 分钟后Pagemap null 仍被锁定"的锁定时间;例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..
org.apache.wicket.protocol.http.request.InvalidUrlException:
org.apache.wicket.WicketRuntimeException: 
After 1 minute the Pagemap null is still locked by:
Thread[http-8443-3,5,main], giving up trying to get the page for path: 3:timer

这 1 分钟在哪里?是检票口设置,还是tomcat?或者 ...?我该如何修改?

Where is this 1 minute set? Is a wicket setting, or a tomcat? or ...? How can I modify this?

推荐答案

虽然我同意 Martijn 的回答(你不应该让用户等待超过一分钟),但是可以通过调用 WebApplication.getRequestCycleSettings().setTimeout() 在您的应用程序对象上.

Although I agree with Martijn's answer (you shouldn't keep users waiting for more than a minute), the timeout can be set by calling WebApplication.getRequestCycleSettings().setTimeout() on your application object.

将其设置为 3 分钟的示例:

Example to set it to 3 Minutes:

WebApplication.get().getRequestCycleSettings().setTimeout(Duration.minutes(3));

这篇关于增加“1 分钟后Pagemap null 仍被锁定"的锁定时间;例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 03:13:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1128561.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时间   分钟后   null   Pagemap   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!