Notification issue on xwiki 9.11.4

Hello,

Notifications feature doesn’t work at all on my xwiki 9.11.4.

Notifications are not displayed and when i click on “RSS feed” link, I have this error:

XML Parsing Error: syntax error
Location: https://xxxxxxx.fr/bin/get/XWiki/Notifications/Code/NotificationRSSService?outputSyntax=plain
Line Number 1, Column 1:Failed to execute the [velocity] macro. Cause: [null]. Click on this message for details.org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [#if ($xcontext.action == 'get' && "$request.outputSyntax" == 'plain')
^

In view mode the page https://xxxxxxx.fr/bin/view/XWiki/Notifications/Code/NotificationRSSService displayed a StackOverflowError :

Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getFeed' in  class org.xwiki.notifications.notifiers.script.NotificationNotifiersScriptService threw exception java.lang.StackOverflowError at 89:xwiki:XWiki.Notifications.Code.NotificationRSSService[line 6, column 34]
	at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:261)
	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:259)
	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
	... 166 more
Caused by: java.lang.StackOverflowError
	at org.hibernate.hql.antlr.HqlBaseParser.atom(HqlBaseParser.java:3668)
	at org.hibernate.hql.antlr.HqlBaseParser.unaryExpression(HqlBaseParser.java:3442)

If I paste this in a page, I have same error:

{{velocity}}
$services.notification.notifiers.getFeed(20)
{{/velocity}}

Thxs for any help.

Pascal B

Notification working well:

  • on FF 57.2.3 ESR

Notification doesn’t work on:

  • on FF 59.0.b6 developper edition
  • Chromium 64.0.3282.119

Hum it seem it is fixed now on both browser…
Strange issue.
Sorry about the noise.

Browser cache issue maybe.

I don’t know. It wasn’t only js problem, it was $services.notification.notifiers.getFeed issue too.

As soon I restart tomcat, I have this issue (with Admin user) :-/
It seem this issue disappear after 5 mn…

Would be great if you could create a jira issue with all the details you can think of.

https://jira.xwiki.org/browse/XWIKI-15179

Thanks !

Hum, actually impossible to make notification work (after I restarted)
I don’t know how my previous issue was fixed :frowning:
May be this issue linked at admin user?

Similar issue for me with 9.11.7

https://jira.xwiki.org/browse/XWIKI-15436