Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
15.4, 14.10.12
-
None
-
Unknown
-
Description
Reproduction steps:
- send a targetable event notification with a data with is not a document (e.g., a long)
Expect - the notification is shown to the user
Actual - an error is displayed in the notification pane, with the following stacktrace
java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147) at org.apache.velocity.runtime.directive.Block.render(Block.java:94) at org.apache.velocity.runtime.directive.Block$Reference.render(Block.java:181) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:539) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439) at org.apache.velocity.Template.merge(Template.java:358) at org.apache.velocity.Template.merge(Template.java:262) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280) at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321) at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95) at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222) at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177) at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138) at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54) at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:284) at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98) at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:284) at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267) at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125) at com.xpn.xwiki.internal.template.InternalTemplateManager.execute(InternalTemplateManager.java:928) at com.xpn.xwiki.internal.template.InternalTemplateManager.execute(InternalTemplateManager.java:909) at com.xpn.xwiki.internal.template.DefaultTemplateManager.execute(DefaultTemplateManager.java:211) at com.xpn.xwiki.internal.template.DefaultTemplateManager.execute(DefaultTemplateManager.java:205) at org.xwiki.notifications.notifiers.internal.DefaultNotificationDisplayer.renderNotification(DefaultNotificationDisplayer.java:66) at org.xwiki.notifications.notifiers.internal.DefaultNotificationRenderer.renderCompositeEvent(DefaultNotificationRenderer.java:76) at org.xwiki.notifications.notifiers.internal.DefaultNotificationRenderer.render(DefaultNotificationRenderer.java:67) at org.xwiki.notifications.notifiers.internal.InternalHtmlNotificationRenderer.renderCompositeEvent(InternalHtmlNotificationRenderer.java:111) at org.xwiki.notifications.notifiers.internal.InternalHtmlNotificationRenderer.render(InternalHtmlNotificationRenderer.java:104) at org.xwiki.notifications.notifiers.internal.InternalHtmlNotificationRenderer.render(InternalHtmlNotificationRenderer.java:174) at org.xwiki.notifications.notifiers.internal.DefaultAsyncNotificationRenderer.render(DefaultAsyncNotificationRenderer.java:152) at org.xwiki.rendering.async.internal.AsyncRendererJob.runInternal(AsyncRendererJob.java:101) at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246) at org.xwiki.job.AbstractJob.run(AbstractJob.java:223) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.lang.NullPointerException: Null keys are not supported! at java.base/java.util.Objects.requireNonNull(Objects.java:246) at org.infinispan.cache.impl.CacheImpl.assertKeyNotNull(CacheImpl.java:202) at org.infinispan.cache.impl.CacheImpl.get(CacheImpl.java:541) at org.infinispan.cache.impl.CacheImpl.get(CacheImpl.java:537) at org.infinispan.cache.impl.EncoderCache.get(EncoderCache.java:762) at org.xwiki.cache.infinispan.internal.InfinispanCache.get(InfinispanCache.java:103) at org.xwiki.wiki.internal.manager.WikiDescriptorCache.getFromId(WikiDescriptorCache.java:143) at org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getById(DefaultWikiDescriptorManager.java:166) at org.xwiki.wiki.script.WikiManagerScriptService.getById(WikiManagerScriptService.java:301) ... 57 more
Attachments
Issue Links
- relates to
-
XWIKI-17055 Allow to create Notification events not related to document
- Open