My Oracle Support Banner

Items Shipped Email Not Sent Due to freemarker.core.InvalidReferenceException (Doc ID 2068562.1)

Last updated on MAY 26, 2017

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.


You may see that the items shipped email is not sent. You may see the following error in the logs:

**** Error      Mon Oct 19 15:11:03 UTC 2015    1445267463431   /atg/cloud/notifications/email/SmtpNotificationService  
Error running Freemarker template.      freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> variant.optionValue  [in template "items_shipped_v1/html_body.ftl" at line 823, column 76]

**** Error      Mon Oct 19 15:11:03 UTC 2015    1445267463431   /atg/cloud/notifications/email/SmtpNotificationService
Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (!myDefault, (

**** Error      Mon Oct 19 15:11:03 UTC 2015    1445267463431   /atg/cloud/notifications/email/SmtpNotificationService
The failing instruction:
==> ${variant.optionValue}  [in template "items_shipped_v1/html_body.ftl" at line 823, column 74]
        at freemarker.core.InvalidReferenceException.getInstance(
        at freemarker.core.EvalUtil.coerceModelToString(
        at freemarker.core.Expression.evalAndCoerceToString(
        at freemarker.core.DollarVariable.accept(
        at freemarker.core.Environment.visit(
        at freemarker.core.MixedContent.accept(



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.