1

[编辑于 18 年 7 月 25 日]

我在使用 XPages 时遇到了一个问题,这让我不得不抓狂。我不断收到一个 500 错误,然后是一个看似随机的 404 错误,并且无法重现该错误,但它经常发生。我确信大多数人都在 Web 上运行他们的 XPage,所以没有人遇到这个问题,但我的应用程序只在 notes 客户端中运行,因为出于安全原因,服务器无法通过 Web 访问。我很想只在笔记客户端中使用 XPages,但我不能在生产数据库上发生这种行为。我已经尝试在下面包含尽可能多的细节,但如果我能澄清任何有助于解决此问题的内容,请告诉我。

  1. Notes 客户端和服务器都运行 v9
  2. 服务器无法通过网络访问
  3. 应用程序只能在 XPiNC 中运行
  4. 该应用程序有时会工作,然后无缘无故停止工作。
  5. 这个问题发生在任何数据库上,即使是空白的 XPage,所以它与代码无关。
  6. 干净的构建没有影响。
  7. 如果我只是在设计器中打开应用程序,它会完美运行。我不需要进行页面预览或任何操作,只需在设计器中打开应用程序即可使其工作。
  8. 最近一次发生这种情况的事件顺序是:打开应用程序,做了一些工作,等待了一段时间(可能是 30 分钟到 1 小时),尝试导航到另一个页面,给出错误 500,关闭应用程序,重新打开应用程序,给出 404,又等了一段时间(可能 30 分钟),重新打开应用程序,工作正常。有关更多详细信息,请参见下面的跟踪结果。
  9. 在其他情况下,该应用程序刚以 500/404 开始。
  10. 我尝试使用保持会话活动代码运行但没有效果。
  11. 我在不同的服务器上有其他 XPage 应用程序,可以通过 Web 访问,并且可以在 Web 浏览器上完美运行。
  12. 自 v8.5.2 以来一直存在问题

痕迹:

10:59:48.547 229 SEVERE com.ibm.designer.runtime.domino.adapter.LCDEnvironment doService

CLFAD0211E: Exception thrown

javax.servlet.ServletException: java.util.concurrent.ExecutionException: java.lang.StackOverflowError
        at com.ibm.domino.xsp.module.nsf.NSFService.doService(Unknown Source)
        at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(Unknown Source)
        at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(Unknown Source)
        at com.ibm.domino.xsp.bridge.websrv.servlets.DispatcherServlet.service(Unknown Source)
        at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(Unknown Source)
        at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(Unknown Source)
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(Unknown Source)
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(Unknown Source)
        at com.ibm.pvc.webhttpservice.BridgeServlet.service(Unknown Source)
        at com.ibm.pvc.internal.webcontainer.VirtualHost.handleRequest(Unknown Source)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(Unknown Source)
        at com.ibm.wsspi.webcontainer.WebContainer.handleRequest(Unknown Source)
        at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Unknown Source)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(Unknown Source)
        at com.ibm.ws.http.HttpConnection.run(Unknown Source)
        at com.ibm.ws.util.ThreadPool$Worker.run(Unknown Source)

___________

10:59:48.720 229 SEVERE CLFAD0256E: Dispatcher Servlet Problem - java.util.concurrent.ExecutionException: java.lang.StackOverflowError
    javax.servlet.ServletException: java.util.concurrent.ExecutionException: java.lang.StackOverflowError
            at com.ibm.domino.xsp.module.nsf.NSFService.doService(Unknown Source)
            at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(Unknown Source)
            at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(Unknown Source)
            at com.ibm.domino.xsp.bridge.websrv.servlets.DispatcherServlet.service(Unknown Source)
            at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(Unknown Source)
            at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(Unknown Source)
            at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(Unknown Source)
            at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(Unknown Source)
            at javax.servlet.http.HttpServlet.service(Unknown Source)
            at com.ibm.pvc.webhttpservice.BridgeServlet.service(Unknown Source)
            at com.ibm.pvc.internal.webcontainer.VirtualHost.handleRequest(Unknown Source)
            at com.ibm.ws.webcontainer.WebContainer.handleRequest(Unknown Source)
            at com.ibm.wsspi.webcontainer.WebContainer.handleRequest(Unknown Source)
            at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Unknown Source)
            at com.ibm.ws.http.HttpConnection.readAndHandleRequest(Unknown Source)
            at com.ibm.ws.http.HttpConnection.run(Unknown Source)
            at com.ibm.ws.util.ThreadPool$Worker.run(Unknown Source)

___________

11:00:30.327 226 SEVERE com.ibm.domino.xsp.bridge.websrv.servlets.DispatcherServlet service CLFAD0256E: Dispatcher Servlet Problem - Error opening the database 'server!!database.nsf'

com.ibm.designer.runtime.domino.adapter.util.PageNotFoundException: Error opening the database 'server!!database.nsf'

at com.ibm.domino.xsp.module.nsf.NSFService.doService(Unknown Source)
        at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(Unknown Source)
        at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(Unknown Source)
        at com.ibm.domino.xsp.bridge.websrv.servlets.DispatcherServlet.service(Unknown Source)
        at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(Unknown Source)
        at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(Unknown Source)
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(Unknown Source)
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(Unknown Source)
        at com.ibm.pvc.webhttpservice.BridgeServlet.service(Unknown Source)
        at com.ibm.pvc.internal.webcontainer.VirtualHost.handleRequest(Unknown Source)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(Unknown Source)
        at com.ibm.wsspi.webcontainer.WebContainer.handleRequest(Unknown Source)
        at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Unknown Source)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(Unknown Source)
        at com.ibm.ws.http.HttpConnection.run(Unknown Source)
        at com.ibm.ws.util.ThreadPool$Worker.run(Unknown Source)
4

1 回答 1

1

如果这是一个超时问题,在 xsp 属性窗口中有关于应用程序和会话超时的选项。默认为 30 分钟(即使为空白)

您可以将其设置为更大的值(我使用的是 300 分钟)

于 2018-07-25T08:46:06.433 回答