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

NPE in browser when accessing Notifications RSS Feed if an event was performed by a guest user on a watched page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.8-rc-1, 14.10.17, 15.5.3
    • 14.10.7
    • Notifications
    • None
    • Windows 11 Pro, Edge 114, using a local instance of XWiki 14.10.12 Jetty, HSQLDB
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Login with Admin
      2. Create a page with Edit right for Unregistered users
      3. Ensure that Admin watches that page (has a 'Notify' filter created for it)
      4. Logout
      5. Edit the page with a Guest user and Save
      6. Login with Admin
      7. Click on Notifications Bell > RSS Feed

      Expected results

      The RSS feed containing the edit event is displayed.

      Actual results

      The following NPE is displayed in browser (nothing displayed in XWiki console):

      Failed to execute the [velocity] macro. Cause: [null]. Click on this message for details.23org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [#set ($feedContent = $services.notification.notifiers.getFeed(20))4#if ($xcontext.action == 'get' && "$request.outputSyntax" == 'plain')5  #set ($characterEncoding = 'utf-8')6  #set ($discard = $response.setContentType('application/xml'))7  ## Make sure the Character Encoding response header matches the character encoding used to write the response and8  ## compute its length.9  #set ($discard = $response.setCharacterEncoding($characterEncoding))10  ## We write the output directly to the response to avoid the execution of the Rendering Transformations.11  #set ($discard = $response.writer.print($feedContent))12  ## The content length is measured in bytes and one character can use more than one byte.13  #set ($discard = $response.setContentLength($feedContent.getBytes($characterEncoding).size()))14  ## Make sure the entire content is send back to the client.15  #set ($discard = $response.flushBuffer())16  ## Make sure XWiki doesn't write any more content to the response.17  #set ($discard = $xcontext.setFinished(true))18#else19  {{code language="xml" source="script:feedContent" /}}20#end]2122 at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:135)2324 at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:51)2526 at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:279)2728 at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)2930 at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)3132 at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:309)3334 at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)3536 at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:88)3738 at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:395)3940 at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:268)4142 at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:112)4344 at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)4546 at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)4748 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:290)4950 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267)5152 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)5354 at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)5556 at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)5758 at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)5960 at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)6162 at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)6364 at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)6566 at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)6768 at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)6970 at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1355)7172 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1492)7374 at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1441)7576 at com.xpn.xwiki.api.Document.displayDocument(Document.java:767)7778 at jdk.internal.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)7980 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)8182 at java.base/java.lang.reflect.Method.invoke(Method.java:566)8384 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)8586 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)8788 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)8990 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)9192 at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)9394 at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)9596 at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)9798 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)99100 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)101102 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)103104 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)105106 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)107108 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)109110 at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)111112 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)113114 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)115116 at org.apache.velocity.Template.merge(Template.java:358)117118 at org.apache.velocity.Template.merge(Template.java:262)119120 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)121122 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)123124 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)125126 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)127128 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)129130 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)131132 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)133134 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:284)135136 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)137138 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:284)139140 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267)141142 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)143144 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:843)145146 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:805)147148 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:792)149150 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderNoException(InternalTemplateManager.java:747)151152 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderNoException(InternalTemplateManager.java:739)153154 at com.xpn.xwiki.internal.template.DefaultTemplateManager.renderNoException(DefaultTemplateManager.java:79)155156 at com.xpn.xwiki.internal.template.DefaultTemplateManager.renderNoException(DefaultTemplateManager.java:73)157158 at org.xwiki.template.script.TemplateScriptService.render(TemplateScriptService.java:54)159160 at jdk.internal.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)161162 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)163164 at java.base/java.lang.reflect.Method.invoke(Method.java:566)165166 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)167168 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)169170 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)171172 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)173174 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)175176 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)177178 at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)179180 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)181182 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)183184 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)185186 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)187188 at org.apache.velocity.Template.merge(Template.java:358)189190 at org.apache.velocity.Template.merge(Template.java:262)191192 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)193194 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)195196 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)197198 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)199200 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)201202 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)203204 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)205206 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:284)207208 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)209210 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:284)211212 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267)213214 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)215216 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:843)217218 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:805)219220 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:792)221222 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderNoException(InternalTemplateManager.java:747)223224 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderNoException(InternalTemplateManager.java:739)225226 at com.xpn.xwiki.internal.template.DefaultTemplateManager.renderNoException(DefaultTemplateManager.java:79)227228 at com.xpn.xwiki.internal.template.DefaultTemplateManager.renderNoException(DefaultTemplateManager.java:73)229230 at org.xwiki.template.script.TemplateScriptService.render(TemplateScriptService.java:54)231232 at jdk.internal.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)233234 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)235236 at java.base/java.lang.reflect.Method.invoke(Method.java:566)237238 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)239240 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)241242 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)243244 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)245246 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)247248 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)249250 at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)251252 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)253254 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)255256 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)257258 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)259260 at org.apache.velocity.Template.merge(Template.java:358)261262 at org.apache.velocity.Template.merge(Template.java:262)263264 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)265266 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)267268 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)269270 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)271272 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)273274 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)275276 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)277278 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:284)279280 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)281282 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:284)283284 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267)285286 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)287288 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:843)289290 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:805)291292 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:792)293294 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderNoException(InternalTemplateManager.java:747)295296 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderNoException(InternalTemplateManager.java:739)297298 at com.xpn.xwiki.internal.template.DefaultTemplateManager.renderNoException(DefaultTemplateManager.java:79)299300 at com.xpn.xwiki.internal.template.DefaultTemplateManager.renderNoException(DefaultTemplateManager.java:73)301302 at org.xwiki.template.script.TemplateScriptService.render(TemplateScriptService.java:54)303304 at jdk.internal.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)305306 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)307308 at java.base/java.lang.reflect.Method.invoke(Method.java:566)309310 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)311312 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)313314 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)315316 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)317318 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)319320 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)321322 at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)323324 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)325326 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)327328 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)329330 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)331332 at org.apache.velocity.Template.merge(Template.java:358)333334 at org.apache.velocity.Template.merge(Template.java:262)335336 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)337338 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)339340 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)341342 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)343344 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)345346 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)347348 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)349350 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:284)351352 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)353354 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:284)355356 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267)357358 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)359360 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:843)361362 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:805)363364 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:785)365366 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:771)367368 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)369370 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)371372 at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2563)373374 at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180)375376 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:651)377378 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:339)379380 at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:114)381382 at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)383384 at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1419)385386 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)387388 at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1624)389390 at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)391392 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)393394 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)395396 at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)397398 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)399400 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)401402 at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)403404 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)405406 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)407408 at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)409410 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)411412 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)413414 at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)415416 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)417418 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)419420 at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)421422 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210)423424 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)425426 at org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:164)427428 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)429430 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)431432 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:506)433434 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)435436 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)437438 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)439440 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)441442 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1571)443444 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)445446 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1378)447448 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)449450 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463)451452 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1544)453454 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)455456 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1300)457458 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)459460 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:192)461462 at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51)463464 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)465466 at org.eclipse.jetty.server.Server.handle(Server.java:562)467468 at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:418)469470 at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:675)471472 at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:410)473474 at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)475476 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319)477478 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)479480 at org.eclipse.jetty.io.SocketChannelEndPoint$1.run(SocketChannelEndPoint.java:101)481482 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412)483484 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:381)485486 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:268)487488 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:138)489490 at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:407)491492 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894)493494 at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)495496 at java.base/java.lang.Thread.run(Thread.java:834)497498Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with namespace [xwiki:XWiki.Notifications.Code.NotificationRSSService]499500 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:289)501502 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)503504 at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:127)505506 ... 237 more507508Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getFeed' in  class org.xwiki.notifications.notifiers.script.NotificationNotifiersScriptService threw exception org.xwiki.notifications.NotificationException: Unable to render RSS feed at xwiki:XWiki.Notifications.Code.NotificationRSSService[line 1, column 55]509510 at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:308)511512 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:235)513514 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)515516 at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)517518 at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)519520 at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)521522 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)523524 at org.apache.velocity.Template.merge(Template.java:358)525526 at org.apache.velocity.Template.merge(Template.java:262)527528 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)529530 ... 239 more531532Caused by: org.xwiki.notifications.NotificationException: Unable to render RSS feed533534 at org.xwiki.notifications.notifiers.script.NotificationNotifiersScriptService.getFeed(NotificationNotifiersScriptService.java:129)535536 at org.xwiki.notifications.notifiers.script.NotificationNotifiersScriptService.getFeed(NotificationNotifiersScriptService.java:109)537538 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)539540 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)541542 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)543544 at java.base/java.lang.reflect.Method.invoke(Method.java:566)545546 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)547548 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)549550 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)551552 ... 247 more553554Caused by: java.lang.NullPointerException555556 at org.xwiki.notifications.notifiers.internal.rss.DefaultNotificationRSSRenderer.renderNotification(DefaultNotificationRSSRenderer.java:93)557558 at org.xwiki.notifications.notifiers.internal.rss.DefaultNotificationRSSManager.renderFeed(DefaultNotificationRSSManager.java:103)559560 at org.xwiki.notifications.notifiers.script.NotificationNotifiersScriptService.getFeed(NotificationNotifiersScriptService.java:126)561562 ... 255 more 

      Attachments

        1. Error_14_7.png
          10 kB
          Ilie Andriuta
        2. Filters_Used.png
          61 kB
          Ilie Andriuta

        Activity

          People

            surli Simon Urli
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: