freemarker.core._MiscTemplateException: When calling macro "commentBlock", required parameter "avatar" (parameter #1) was specified, but had null/missing value. ---- Tip: If the parameter value expression on the caller side is known to be legally null/missing, you may want to specify a default value for it with the "!" operator, like paramValue!defaultValue. ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #macro commentBlock avatar displayNam... [in template "macroTextBlock.ftl" in macro "commentBlock" at line 18, column 1] - Reached through: @lib.commentBlock avatar=commentItem... [in template "mailProjectItemCommentNotifier.ftl" at line 22, column 17] ----

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by mchubby
, 1 year ago
When calling macro "commentBlock", required parameter "avatar" (parameter #1) was specified, but had null/missing value. ---- Tip: If the parameter value expression on the caller side is known to be legally null/missing, you may want to specify a
freemarker.core._MiscTemplateException: When calling macro "commentBlock", required parameter "avatar" (parameter #1) was specified, but had null/missing value. ---- Tip: If the parameter value expression on the caller side is known to be legally null/missing, you may want to specify a default value for it with the "!" operator, like paramValue!defaultValue. ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #macro commentBlock avatar displayNam... [in template "macroTextBlock.ftl" in macro "commentBlock" at line 18, column 1] - Reached through: @lib.commentBlock avatar=commentItem... [in template "mailProjectItemCommentNotifier.ftl" at line 22, column 17] ----
at freemarker.core.Macro$Context.sanityCheck(Macro.java:219)
at freemarker.core.Environment.invoke(Environment.java:714)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
at freemarker.core.Environment.visit(Environment.java:363)
at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:316)
at freemarker.core.IteratorBlock$IterationContext.executeNestedContent(IteratorBlock.java:272)
at freemarker.core.IteratorBlock$IterationContext.accept(IteratorBlock.java:243)
at freemarker.core.Environment.visitIteratorBlock(Environment.java:596)
at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:108)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:94)
at freemarker.core.Environment.visit(Environment.java:327)
at freemarker.core.Environment.visit(Environment.java:333)
at freemarker.core.Environment.visit(Environment.java:333)
at freemarker.core.Environment.process(Environment.java:306)
at com.mycollab.module.mail.service.ContentGenerator.parseFile(ContentGenerator.scala:61)
at com.mycollab.module.project.schedule.email.service.SendMailToFollowersAction$$anonfun$sendNotificationForCommentAction$1.apply(SendMailToFollowersAction.scala:132)
at com.mycollab.module.project.schedule.email.service.SendMailToFollowersAction$$anonfun$sendNotificationForCommentAction$1.apply(SendMailToFollowersAction.scala:123)
at com.mycollab.module.project.schedule.email.service.SendMailToFollowersAction.sendNotificationForCommentAction(SendMailToFollowersAction.scala:123)
at com.mycollab.schedule.jobs.ProjectSendingRelayEmailNotificationJob$$anonfun$executeJob$1.apply(ProjectSendingRelayEmailNotificationJob.scala:58)
at com.mycollab.schedule.jobs.ProjectSendingRelayEmailNotificationJob$$anonfun$executeJob$1.apply(ProjectSendingRelayEmailNotificationJob.scala:49)
at com.mycollab.schedule.jobs.ProjectSendingRelayEmailNotificationJob.executeJob(ProjectSendingRelayEmailNotificationJob.scala:49)
at com.mycollab.schedule.jobs.GenericQuartzJobBean.executeInternal(GenericQuartzJobBean.scala:34)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.