Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19478

Notifications async renderer 500 Server Error in JS console when first editing the Dashboard

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 12.10.11, 13.10.3, 14.1-rc-1
    • Notifications
    • None
    • Windows 11 Pro 64 bit, Chrome 98, using a local instance of XWiki 14.1 RC1 on MariaDB 10.6, Tomcat 9.0.58 and Jetty+HSQLDB
    • Unknown

    Description

      STEPS TO REPRODUCE

      1. Go to Dashboard (from Applications Panel)
      2. Click 'Edit'
      3. Observe the browser and XWiki console

      EXPECTED RESULTS

      No errors are displayed.

      ACTUAL RESULTS

      In browser's console, the following error is displayed:

      GET http://localhost:1115/xwiki/asyncrenderer/notifications/display/5ALERT_16xwiki%253AXWiki.ILIE_10_null_-1644936348/locale/en/request.wiki/xwiki/user/xwiki%253AXWiki.ILIE/25?clientId=25&timeout=500&wiki=xwiki 500
      send	@	jquery.min.js?r=1:2
      ajax	@	jquery.min.js?r=1:2
      s.ajax.s.ajax	@	jquery-migrate.min.js?r=1:2
      S.<computed>	@	jquery.min.js?r=1:2
      f	@	async.js:24
      g	@	async.js:92
      (anonymous)	@	async.js:120
      each	@	jquery.min.js?r=1:2
      each	@	jquery.min.js?r=1:2
      (anonymous)	@	async.js:119
      execCb	@	require.min.js?r=1:5
      check	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      each	@	require.min.js?r=1:5
      emit	@	require.min.js?r=1:5
      check	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      each	@	require.min.js?r=1:5
      emit	@	require.min.js?r=1:5
      check	@	require.min.js?r=1:5
      enable	@	require.min.js?r=1:5
      init	@	require.min.js?r=1:5
      a	@	require.min.js?r=1:5
      completeLoad	@	require.min.js?r=1:5
      onScriptLoad	@	require.min.js?r=1:5
      load (async)		
      req.load	@	require.min.js?r=1:5
      load	@	require.min.js?r=1:5
      load	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      execCb	@	require.min.js?r=1:5
      check	@	require.min.js?r=1:5
      enable	@	require.min.js?r=1:5
      init	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      setTimeout (async)		
      req.nextTick	@	require.min.js?r=1:5
      s	@	require.min.js?r=1:5
      fetch	@	require.min.js?r=1:5
      check	@	require.min.js?r=1:5
      enable	@	require.min.js?r=1:5
      enable	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      each	@	require.min.js?r=1:5
      enable	@	require.min.js?r=1:5
      init	@	require.min.js?r=1:5
      a	@	require.min.js?r=1:5
      completeLoad	@	require.min.js?r=1:5
      onScriptLoad	@	require.min.js?r=1:5
      load (async)		
      req.load	@	require.min.js?r=1:5
      load	@	require.min.js?r=1:5
      load	@	require.min.js?r=1:5
      fetch	@	require.min.js?r=1:5
      check	@	require.min.js?r=1:5
      enable	@	require.min.js?r=1:5
      enable	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      each	@	require.min.js?r=1:5
      enable	@	require.min.js?r=1:5
      init	@	require.min.js?r=1:5
      (anonymous)	@	require.min.js?r=1:5
      setTimeout (async)		
      req.nextTick	@	require.min.js?r=1:5
      s	@	require.min.js?r=1:5
      requirejs	@	require.min.js?r=1:5
      (anonymous)	@	async.js:20

      and in XWiki console the following warning is encountered (reproducible only Jetty+HSQLDB it seems):

      2022-02-28 18:11:06.418:WARN :oejs.HttpChannel:qtp2012846597-661: /xwiki/asyncrenderer/notifications/display/5ALERT_17xwiki%253AXWiki.Admin_10_null_1568589773/locale/en/request.wiki/xwiki/user/xwiki%253AXWiki.Admin/19
      javax.servlet.ServletException: Failed to handle Resource Reference [[notifications, display, 5ALERT_17xwiki:XWiki.Admin_10_null_1568589773, locale, en, request.wiki, xwiki, user, xwiki:XWiki.Admin, 19]]
              at org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.handleResourceReference(ResourceReferenceHandlerServlet.java:161)
              at org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.service(ResourceReferenceHandlerServlet.java:87)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
              ...
              at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)
              at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by:
      org.xwiki.resource.ResourceReferenceHandlerException: Cannot find any status for id [[notifications, display, 5ALERT_17xwiki:XWiki.Admin_10_null_1568589773, locale, en, request.wiki, xwiki, user, xwiki:XWiki.Admin, 19]]
              at org.xwiki.rendering.async.internal.service.AsyncRendererResourceReferenceHandler.handle(AsyncRendererResourceReferenceHandler.java:128)
              at org.xwiki.resource.internal.DefaultResourceReferenceHandlerChain.handleNext(DefaultResourceReferenceHandlerChain.java:79)
              at org.xwiki.resource.internal.AbstractResourceReferenceHandlerManager.handle(AbstractResourceReferenceHandlerManager.java:82)
              ...
              at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)
              at java.base/java.lang.Thread.run(Thread.java:833)

      The issue was reproduced also on XWiki 14.0, 13.10.3 and 12.10.11.
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: